@font-face {
  font-family: "Space Grotesk";
  src: url("/media/spacegrotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/media/manrope.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("/media/caveat.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Portfolio Bangla";
  src: url("/media/bengali.woff2") format("woff2");
  font-display: swap;
  font-weight: 100 900;
  unicode-range: U+0964-0965, U+0980-09FF, U+200C-200D, U+20B9, U+25CC, U+A8F1;
}

:root {
  color-scheme: dark;
  --theme-background: #100c18;
  --theme-surface: #1c1528;
  --theme-raised: #2b203d;
  --theme-field: #251a35;
  --theme-text: #fbf6ff;
  --theme-muted: #c2b3d0;
  --theme-accent: #c6a0ff;
  --theme-accent-strong: #9b62ee;
  --theme-accent-on-light: #6a35a9;
  --theme-paper: #f2eaf7;
  --theme-paper-text: #291e34;
  --theme-error: #ffc0cf;
  --theme-available: #74d8aa;
  --theme-unavailable: #e5b781;
  --tinted-surface: color-mix(in srgb, var(--theme-accent-strong) 12%, var(--theme-surface));
  --highlight: color-mix(in srgb, var(--theme-accent) 23%, var(--theme-raised));
  --light-muted: color-mix(in srgb, var(--theme-paper-text) 77%, var(--theme-paper));
  --soft-accent: color-mix(in srgb, var(--theme-accent) 78%, var(--theme-text));
  --shell: min(1140px, calc(100% - 14vw));
  --header: 68px;
  --safe-top: env(safe-area-inset-top, 0px);
  --display: "Space Grotesk", "Segoe UI", sans-serif;
  --sans: "Manrope", "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
button, input, select, textarea, dialog, iframe { border: 0; }
.icon { display: inline-block; width: 1em; height: 1em; flex: none; fill: currentColor; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--theme-background); color: var(--theme-text); font: 1rem/1.58 var(--sans); }
body:has(.video-dialog[open]) { overflow: hidden; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
h1, h2, h3, p, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
:focus-visible { outline: 2px solid var(--theme-accent); outline-offset: 4px; }
.paper :focus-visible { outline-color: var(--theme-accent-on-light); }
main:focus { outline: none; }
[id] { scroll-margin-top: calc(var(--header) + var(--safe-top) + 25px); }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: .8rem; left: .8rem; z-index: 20; padding: .7rem 1rem; background: var(--theme-background); color: var(--theme-text); }
.site-header { position: sticky; top: 0; z-index: 10; padding-block-start: var(--safe-top); background: color-mix(in srgb, var(--theme-background) 90%, transparent); backdrop-filter: blur(16px); }
.header-inner { min-height: var(--header); display: flex; align-items: center; justify-content: space-between; gap: 1.35rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; flex-shrink: 0; color: var(--theme-text); font-weight: 700; line-height: 1.15; }
.brand-mark { display: block; flex: none; width: 34px; aspect-ratio: 1; background: var(--theme-accent); mask: url("/media/mark.svg") center/contain no-repeat; }
.brand-name { font-size: .95rem; }
.primary-nav, .header-actions, .language { display: flex; align-items: center; }
.primary-nav { gap: clamp(.65rem, 1.4vw, 1.4rem); margin-inline-start: auto; }
.primary-nav a { display: flex; align-items: center; min-height: 44px; color: var(--theme-muted); font-size: .85rem; white-space: nowrap; }
.primary-nav a:hover, .primary-nav [aria-current] { color: var(--theme-accent); }
.primary-nav [aria-current] { text-decoration: underline; text-underline-offset: .4em; }
.header-actions { gap: .65rem; }
.language { padding: 2px; background: var(--theme-surface); border-radius: 99px; }
.language button { min-height: 36px; padding: .25rem .58rem; color: var(--theme-muted); border-radius: 99px; background: transparent; font-size: .82rem; }
.language button[aria-pressed="true"] { background: var(--highlight); color: var(--theme-text); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; place-items: center; background: var(--theme-surface); border-radius: 50%; }
.menu-toggle i { position: relative; display: block; width: 16px; height: 1px; background: currentColor; box-shadow: 0 -5px currentColor, 0 5px currentColor; }
.menu-open .menu-toggle i { transform: rotate(45deg); box-shadow: none; }
.menu-open .menu-toggle i::after { content: ""; position: absolute; inset: 0; background: currentColor; transform: rotate(90deg); }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: .55rem; border-radius: 99px; padding: .55rem 1rem; background: var(--theme-raised); color: var(--theme-text); font-size: .875rem; font-weight: 650; text-align: center; line-height: 1.3; transition: background .2s; }
.button:hover { background: var(--highlight); }
.header-cta { white-space: nowrap; padding-inline: .85rem; font-size: .82rem; }
.eyebrow { color: var(--soft-accent); font-size: .85rem; font-weight: 600; letter-spacing: .045em; margin-block-end: .7rem; }
h2, .interior h1 { font: 560 clamp(2.2rem, 4.15vw, 4.1rem)/1.03 var(--display); letter-spacing: -.055em; text-wrap: balance; }
em { color: var(--theme-accent); font-family: var(--display); font-style: normal; font-weight: inherit; }
.accent { color: var(--theme-accent); }
.text-link { display: inline-flex; align-items: center; min-height: 36px; color: var(--soft-accent); text-decoration: underline; text-underline-offset: .2em; font-size: .88rem; line-height: 1.35; }
.text-link:hover { color: var(--theme-text); }
:lang(bn) { --sans: "Portfolio Bangla", "Nirmala UI", "Noto Sans Bengali", sans-serif; --display: var(--sans); }
:lang(bn) h1, :lang(bn) h2 { letter-spacing: -.015em; line-height: 1.19; }
:lang(bn) .eyebrow { letter-spacing: 0; font-size: .88rem; }
:lang(bn) em { font-style: normal; font-weight: 550; }

.hero { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(48px, 7vw, 96px); background: radial-gradient(ellipse at 76% 40%, var(--tinted-surface) 0, var(--theme-background) 60%); }
.hero-grid { position: relative; display: grid; grid-template-columns: .91fr 1.09fr; align-items: center; gap: clamp(24px, 5vw, 72px); }
.hero-copy { max-width: 580px; animation: enter .65s ease-out both; }
.hero h1 { font-family: var(--display); font-size: clamp(2.7rem, 5.35vw, 5.8rem); line-height: 1; font-weight: 650; letter-spacing: -.075em; }
.hero h1 em { color: var(--theme-text); }
:lang(en) .hero h1 em { font: 650 1.14em/.88 "Caveat", cursive; letter-spacing: -.04em; white-space: nowrap; }
.hero-copy > p:not(.eyebrow, .availability) { max-width: 40ch; margin: 1.25rem 0 1.5rem; color: var(--theme-muted); }
.hero-copy .button { background: var(--theme-text); color: var(--theme-background); }
.hero-copy .button:hover { background: var(--soft-accent); }
.hero-copy .availability { display: flex; gap: .5rem; align-items: center; margin-top: .85rem; color: var(--theme-muted); font-size: .82rem; line-height: 1.35; }
.hero-visual { min-width: 0; animation: enter .7s .08s ease-out both; }
@keyframes enter { from { opacity: .55; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.paper { --wave: clamp(40px, 8vw, 110px); position: relative; z-index: 2; isolation: isolate; color-scheme: light; color: var(--theme-paper-text); background: var(--theme-paper); }
.paper::before, .paper::after { content: ""; position: absolute; z-index: -1; left: 0; width: 100%; height: var(--wave); pointer-events: none; }
.paper::before { top: calc(1px - var(--wave)); background: var(--theme-paper); border-radius: 50% 55% 0 0 / 100% 100% 0 0; clip-path: shape(from 0 0, curve to 29% 56% with 8% 82% / 14% 63%, curve to 59% 79% with 40% 49% / 41% 86%, curve to 100% 39% with 83% 71% / 86% 114%, line to 100% 100%, line to 0 100%, close); }
.paper::after { bottom: calc(1px - var(--wave)); background: var(--theme-paper); border-radius: 0 0 48% 48% / 0 0 100% 100%; clip-path: shape(from 0 0, line to 100% 0, line to 100% 20%, curve to 66% 32% with 88% 11% / 85% 83%, curve to 30% 70% with 54% 9% / 46% 99%, curve to 0 29% with 15% 40% / 13% 92%, close); }
@supports (clip-path: shape(from 0 0, line to 100% 100%, close)) {
  .paper::before, .paper::after { border-radius: 0; }
}
.paper em, .paper .text-link, .paper .eyebrow { color: var(--theme-accent-on-light); }
.paper p:not(.eyebrow) { color: var(--light-muted); }
.about { padding-block: 0 1rem; }
.about-grid { display: grid; grid-template-columns: .84fr 1.16fr; align-items: center; gap: 8%; min-width: 0; }
.portrait { align-self: center; justify-self: center; position: relative; width: min(94%, 385px); aspect-ratio: 1; margin-top: calc(var(--wave) * -.40); border-radius: 50%; overflow: hidden; background: var(--theme-surface); }
.portrait img { filter: saturate(.7); }
.about h2 { max-width: 13ch; }
#bio { margin: .9rem 0 1rem; max-width: 52ch; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; margin-block: .85rem .5rem; }
.stats > div { display: flex; flex-direction: column-reverse; justify-content: start; }
.stats dd { font: 400 clamp(1.35rem, 3vw, 2.65rem)/1.16 var(--display); letter-spacing: -.055em; }
.stats dt { color: var(--light-muted); font-size: .78rem; line-height: 1.3; }

.dark-middle { position: relative; background: radial-gradient(ellipse at 68% 25%, var(--tinted-surface), transparent 47%), var(--theme-background); overflow: clip; }
.skills { position: relative; padding-block: clamp(85px, 11vw, 150px) clamp(35px, 6vw, 75px); }
.skills-grid { display: grid; grid-template-columns: .76fr 1.24fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.skills h2 { max-width: 11ch; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chips li { background: var(--theme-surface); border-radius: 99px; padding: .18rem .52rem; color: var(--theme-muted); font-size: .76rem; line-height: 1.45; }
.techniques { margin-block-start: 1.25rem; }
.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.5rem, 1.1vw, 1rem); }
.tool-card { display: grid; grid-template-columns: 1fr auto; align-content: center; min-width: 0; gap: .21rem .28rem; padding: clamp(.52rem, 1.2vw, .95rem); background: var(--theme-surface); border-radius: 12px; }
.tool-primary { background: var(--tinted-surface); }
.tool-mark { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: .42rem; margin-bottom: .3rem; color: var(--soft-accent); background: var(--theme-raised); font: 700 .9rem/1 var(--sans); }
.tool-card strong { grid-column: 1 / -1; font-size: .8rem; line-height: 1.25; overflow-wrap: anywhere; }
.tool-level, .tool-percent { color: var(--theme-muted); font-size: .75rem; line-height: 1.2; }
.tool-level { grid-column: 1 / -1; }
.tool-card progress { align-self: center; display: block; width: 100%; height: 3px; margin-block: .2rem; border-radius: 9px; background: var(--theme-raised); color: var(--theme-accent); }
.tool-card progress::-webkit-progress-bar { border-radius: 9px; background: var(--theme-raised); }
.tool-card progress::-webkit-progress-value { border-radius: 9px; background: var(--theme-accent); }
.tool-card progress::-moz-progress-bar { border-radius: 9px; background: var(--theme-accent); }
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.8rem, 2vw, 2rem); margin-block-start: clamp(1.4rem, 4vw, 3rem); }
.services li { padding-top: .8rem; }
.services h3, .timeline h3 { font-size: 1rem; line-height: 1.25; }
.services p, .experience-description { margin-top: .4rem; color: var(--theme-muted); font-size: .875rem; }
.project-card { color: var(--theme-text); min-width: 0; overflow: hidden; border-radius: 16px; background: var(--theme-surface); }
.project-media { aspect-ratio: 16 / 9; overflow: hidden; position: relative; background: radial-gradient(ellipse at 50% 80%, var(--tinted-surface), var(--theme-background) 72%); }
.vertical-media img { object-position: center 43%; }
.project-body { display: flex; flex-direction: column; min-width: 0; align-items: start; padding: clamp(.9rem, 2vw, 1.45rem); overflow-wrap: anywhere; }
.project-body .eyebrow { margin-block-end: .4rem; }
.project-body h3 { font-size: clamp(1.04rem, 1.65vw, 1.38rem); line-height: 1.22; }
.project-description { margin-block: .55rem .75rem; color: var(--theme-muted); font-size: .92rem; }
.project-play { position: absolute; inset: 0; display: grid; place-items: center; padding: .75rem; background: color-mix(in srgb, var(--theme-background) 20%, transparent); transition: background .2s; }
.project-play:hover { background: color-mix(in srgb, var(--theme-background) 52%, transparent); }
.project-play:focus-visible { outline-offset: -5px; }
.play-badge { padding: .55rem .9rem; min-height: 44px; display: flex; align-items: center; gap: .55rem; border-radius: 99px; background: var(--theme-raised); color: var(--theme-text); font-size: .85rem; font-weight: 650; }
.project-play:hover .play-badge, .filter-button:hover { background: var(--highlight); }
.project-actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .75rem; }
.project-chips { margin-bottom: 1rem; }
.experience { padding-block: .25rem 1.65rem; }
.experience-grid { display: grid; grid-template-columns: .68fr 1.32fr; gap: 9%; align-items: start; }
.timeline { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 1.25rem; }
.timeline::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 1px; background: color-mix(in srgb, var(--theme-paper-text) 24%, var(--theme-paper)); }
.timeline li { position: relative; padding-top: 2.05rem; }
.timeline li::before { content: ""; position: absolute; top: 0; left: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--theme-accent-on-light); }
.timeline .period { color: var(--theme-accent-on-light); font-size: .79rem; margin-bottom: .25rem; font-weight: 650; }
.organization { font-size: .83rem; margin-top: .25rem; }
.contact-band { padding-block: .6rem 1.2rem; }
.contact-band::after { clip-path: shape(from 0 0, line to 100% 0, line to 100% 17%, curve to 61% 45% with 84% 82% / 72% 22%, curve to 29% 52% with 47% 68% / 39% 66%, curve to 0 77% with 14% 29% / 9% 35%, close); }
.enquiry-grid { display: grid; grid-template-columns: 1fr .95fr .9fr; gap: 6%; align-items: center; }
.enquiry-grid .button { margin-top: .8rem; }
.dark-button { background: var(--theme-background); color: var(--theme-text); }
.play-motif { position: relative; aspect-ratio: 1.5; min-width: 0; display: grid; place-items: center; }
.play-motif i, .play-motif b { width: 45%; aspect-ratio: 1.1; position: absolute; top: 15%; left: 33%; background: var(--theme-accent-strong); clip-path: polygon(0 0, 100% 50%, 0 100%); transform: rotate(-16deg) skewY(-8deg); }
.play-motif b { top: 29%; left: 39%; background: color-mix(in srgb, var(--theme-accent-on-light) 56%, transparent); }
.site-footer { padding-block: 2.1rem 2.4rem; background: var(--theme-background); }
body[data-page="home"] .site-footer { padding-top: clamp(55px, 8vw, 112px); }
.footer-grid { display: grid; grid-template-columns: 1fr auto 1.15fr; gap: 6%; align-items: start; }
#footer-role { color: var(--theme-muted); margin: .4rem 0 0; font-size: .85rem; }
#footer-nav, .socials { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .8rem; }
#footer-nav a { display: inline-flex; align-items: center; min-height: 36px; color: var(--theme-muted); font-size: .85rem; }
#footer-nav a:hover, .socials a:hover, .footer-email:hover { color: var(--theme-accent); }
.footer-email { font-size: .92rem; overflow-wrap: anywhere; }

body:not([data-page="home"]) { min-height: 100vh; display: flex; flex-direction: column; }
body:not([data-page="home"]) main { flex: 1; background: radial-gradient(ellipse at 73% 0, var(--tinted-surface), transparent 58%), var(--theme-background); }
.interior { padding-block: clamp(3.25rem, 9vw, 8rem) clamp(4rem, 10vw, 8rem); }
.interior-heading { margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.interior h1 { font-size: clamp(3rem, 7vw, 6.6rem); }
#page-intro, .centered .interior-heading > p:not(.eyebrow) { max-width: 52ch; color: var(--theme-muted); margin-top: 1rem; }
.centered { text-align: center; min-height: 55vh; }
.centered .interior-heading > p:not(.eyebrow) { margin-inline: auto; }
.action-row { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; }
.filter-button { border-radius: 99px; padding: .45rem 1rem; background: var(--theme-surface); min-height: 44px; color: var(--theme-muted); }
.filter-button[aria-pressed="true"] { background: var(--highlight); color: var(--theme-text); }
.work-grid { gap: clamp(.9rem, 2vw, 1.5rem); }
.gallery-card { position: relative; isolation: isolate; aspect-ratio: 16 / 9; }
.video-dialog { width: min(890px, calc(100% - 2rem)); max-height: calc(100% - 2rem); margin: auto; padding: clamp(.85rem, 2.3vw, 1.55rem); border-radius: 17px; background: var(--theme-surface); color: var(--theme-text); }
.video-dialog::backdrop { background: color-mix(in srgb, var(--theme-background) 68%, transparent); backdrop-filter: blur(12px); }
.dialog-heading { display: flex; justify-content: space-between; align-items: start; gap: 1rem; margin-bottom: .8rem; }
.dialog-heading h2 { font: 600 clamp(1.15rem, 3vw, 1.65rem)/1.25 var(--sans); letter-spacing: 0; overflow-wrap: anywhere; }
.dialog-heading .button { flex: none; }
.player-frame { aspect-ratio: 16 / 9; background: var(--theme-background); max-height: 65dvh; margin-inline: auto; }
@media (orientation: landscape) {
  .player-frame { width: min(100%, calc(65dvh * 16 / 9)); }
}
.player-error { margin-top: .35rem; color: var(--theme-error); font-size: .85rem; }
.video-dialog > a { margin-top: .45rem; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .9fr); gap: clamp(1rem, 3vw, 2.5rem); align-items: start; }
.panel { border-radius: 16px; padding: clamp(1rem, 3vw, 2rem); background: var(--theme-surface); }
.panel h2 { font: 650 clamp(1.2rem, 2.5vw, 1.65rem)/1.25 var(--sans); letter-spacing: -.02em; text-wrap: initial; }
#form-note { margin: .55rem 0 1.3rem; color: var(--theme-muted); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; margin-bottom: 1.3rem; }
.fields label { display: grid; gap: .32rem; align-content: start; color: var(--theme-text); font-size: .92rem; min-width: 0; }
.fields .full { grid-column: 1 / -1; }
.fields input, .fields select, .fields textarea { width: 100%; min-height: 44px; min-width: 0; padding: .55rem .65rem; border-radius: 8px; color: var(--theme-text); background: var(--theme-field); }
.fields textarea { resize: vertical; }
.fields select { appearance: none; padding-inline-end: 2rem; background: linear-gradient(45deg, transparent 50%, var(--theme-muted) 50%) calc(100% - 17px) 50% / 5px 5px no-repeat, linear-gradient(135deg, var(--theme-muted) 50%, transparent 50%) calc(100% - 12px) 50% / 5px 5px no-repeat, var(--theme-field); }
.fields [aria-invalid="true"] { background-color: color-mix(in srgb, var(--theme-error) 14%, var(--theme-field)); }
.field-error { color: var(--theme-error); font-size: .85rem; }
#form-status { color: var(--soft-accent); margin-block-start: .7rem; font-size: .9rem; }
#form-status:empty, #form-note:empty { display: none; }
.contact-details li { display: grid; justify-items: start; gap: .2rem; overflow-wrap: anywhere; padding: .75rem 0; }
.contact-details li:last-child { padding-bottom: 0; }
.contact-label { color: var(--theme-muted); font-size: .82rem; }
.contact-details a:hover { color: var(--theme-accent); }
.copy-button { background: transparent; padding: 0; }
.empty-state { color: var(--theme-muted); }

@media (max-width: 1080px) {
  :root { --shell: calc(100% - 12vw); --header: 62px; }
  .header-inner { gap: .8rem; }
  .primary-nav { gap: .65rem; }
}
@media (max-width: 820px) {
  .site-header { background: var(--theme-background); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .header-inner {
    width: 100%;
    padding-inline-start: max(.85rem, env(safe-area-inset-left, 0px));
    padding-inline-end: max(.85rem, env(safe-area-inset-right, 0px));
    gap: .45rem;
  }
  .primary-nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    margin: 0;
    padding: .7rem max(6vw, env(safe-area-inset-right, 0px)) max(1rem, env(safe-area-inset-bottom, 0px)) max(6vw, env(safe-area-inset-left, 0px));
    max-block-size: calc(100vh - var(--header) - var(--safe-top));
    max-block-size: calc(100dvh - var(--header) - var(--safe-top));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--theme-surface);
    box-shadow: 0 12px 24px #0007;
  }
  .menu-open .primary-nav { display: grid; grid-template-columns: 1fr 1fr; }
  .primary-nav a { padding: .45rem .75rem; border-radius: 7px; }
  .primary-nav a:hover, .primary-nav [aria-current] { background: var(--highlight); }
  .menu-toggle { display: grid; }

}
@media (max-width: 650px) {
  :root { --shell: calc(100% - 10vw); --header: 60px; }
  .brand-mark { width: 30px; }
  .hero { padding-block: 3rem 2rem; }
  .hero-grid, .about-grid, .skills-grid, .experience-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .hero-copy { max-width: 410px; }
  .hero h1 { text-wrap: initial; font-size: clamp(2.65rem, 10vw, 4.3rem); }
  .hero-copy > p:not(.eyebrow, .availability) { margin-block: 1rem 1.2rem; }
  .hero-visual { width: min(100%, 470px); }
  .paper { --wave: 48px; }
  .about { padding-bottom: 1.4rem; }
  .portrait { width: min(65%, 245px); margin-top: -.4rem; }
  #bio { max-width: 58ch; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 1rem; }
  .stats dd { font-size: 1.95rem; }
  .skills { padding-block: 4rem 2.65rem; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-card { min-height: 108px; }
  .experience { padding-bottom: 1rem; }
  .timeline { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr; }
  .timeline::before { inset: 10px auto 0 9px; height: auto; width: 1px; }
  .timeline li { padding: 0 0 .7rem 2.05rem; }
  .enquiry-grid { grid-template-columns: 1.4fr .6fr; gap: .7rem; }
  .enquiry-grid > div:nth-child(2) { grid-row: 2; }
  .play-motif { grid-area: 1 / 2 / span 2; }
  .footer-grid { grid-template-columns: 1fr; gap: .75rem; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 440px) {
  .header-inner { gap: .35rem; }
  .header-inner .brand-name { max-width: 8ch; }
  .header-actions { gap: .35rem; }
  .header-cta { display: none; }
  .fields { grid-template-columns: 1fr; }
  .enquiry-grid { grid-template-columns: minmax(0, 1fr) 25%; }
  .project-body { padding: 1rem; }
  .dialog-heading { gap: .55rem; }
  .dialog-heading .button { padding-inline: .65rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Keep the reference composition visible at its original, compact desktop width. */
@media (min-width: 821px) and (max-width: 1000px) {
  .site-header .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .primary-nav, .menu-open .primary-nav { display: flex; position: static; gap: clamp(.55rem, 1.1vw, .95rem); padding: 0; margin-inline-start: auto; background: transparent; box-shadow: none; }
  .primary-nav a { padding: 0; font-size: .8rem; }
  .primary-nav a:hover, .primary-nav [aria-current] { background: transparent; }
  .menu-toggle { display: none; }
}
@media (min-width: 651px) and (max-width: 900px) {
  :root { --shell: calc(100% - 16vw); --header: 54px; }
  .hero { padding-block: 36px 40px; }
  .hero-grid { grid-template-columns: .9fr 1.1fr; }
  .hero h1 { font-family: var(--display); font-size: clamp(2.25rem, 5.45vw, 3.05rem); text-wrap: initial; }
  .hero-copy > p:not(.eyebrow, .availability) { font-size: .875rem; margin-block: .85rem .9rem; max-width: 33ch; }
  .about { --wave: 96px; padding-block: .1rem .45rem; }
  .about-grid { grid-template-columns: .9fr 1.1fr; gap: 7%; }
  .about h2 { font-size: 2.05rem; }
  .portrait { width: 100%; }
  #bio { font-size: .875rem; margin-block: .7rem .65rem; }
  .stats { margin-block: .55rem .2rem; }
  .stats dt { font-size: .72rem; }
  .skills { padding-block: 4.45rem 2.4rem; }
  .skills-grid { grid-template-columns: .72fr 1.28fr; gap: 5%; }
  .tool-card { padding: .48rem; }
  .techniques li { font-size: .72rem; }
  .services { margin-block-start: 1.2rem; }
  .services p { font-size: .8rem; line-height: 1.45; }
  .project-description { font-size: .825rem; line-height: 1.45; }
  .experience { padding-block: .1rem .75rem; }
  .experience-description { font-size: .82rem; line-height: 1.45; }
}

/* The grain canvas uses the same palette as the editing timeline. */
.edit-board { min-width: 0; }
.edit-monitor {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1.48;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  cursor: crosshair;
  background: transparent;
}
.edit-monitor:disabled { cursor: default; opacity: 1; }
#edit-grain { position: absolute; inset: -8%; display: block; width: 116%; height: 116%; pointer-events: none; }
.edit-timeline { position: relative; display: grid; grid-template-rows: 5px 16px 10px; gap: 4px; width: 82%; margin: .55rem auto 0; overflow: hidden; }
.edit-ruler { background: repeating-linear-gradient(90deg, var(--theme-muted) 0 1px, transparent 1px 5%); opacity: .5; }
.edit-strip { display: grid; grid-template-columns: 34fr 31fr 35fr; gap: 3px; }
.edit-strip i { border-radius: 3px; background: var(--theme-raised); }
.edit-strip i:nth-child(2) { background: var(--highlight); }
.edit-wave { background: var(--theme-accent); opacity: .75; clip-path: polygon(0 47%, 3% 34%, 5% 55%, 7% 20%, 10% 45%, 12% 30%, 15% 44%, 18% 10%, 20% 45%, 22% 37%, 24% 5%, 26% 37%, 28% 30%, 30% 49%, 33% 22%, 37% 36%, 39% 6%, 42% 45%, 46% 28%, 49% 50%, 52% 22%, 56% 44%, 60% 14%, 63% 38%, 67% 24%, 70% 45%, 73% 8%, 76% 47%, 79% 30%, 81% 44%, 83% 10%, 86% 39%, 89% 29%, 93% 49%, 96% 22%, 100% 45%, 100% 59%, 96% 77%, 93% 56%, 89% 69%, 86% 66%, 83% 91%, 81% 61%, 79% 71%, 76% 56%, 73% 91%, 70% 57%, 67% 76%, 63% 63%, 60% 87%, 56% 60%, 52% 77%, 49% 56%, 46% 71%, 42% 59%, 39% 93%, 37% 64%, 33% 79%, 30% 55%, 28% 72%, 26% 63%, 24% 96%, 22% 66%, 20% 58%, 18% 89%, 15% 60%, 12% 80%, 10% 59%, 7% 80%, 5% 56%, 3% 65%, 0 54%); }
.edit-playhead { position: absolute; inset: 0 0 0 0; transform: translateX(38%); transition: transform .48s cubic-bezier(.18,.75,.3,1); }
.edit-playhead::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 7px; background: var(--theme-accent); clip-path: polygon(0 0, 100% 0, 100% 15%, 58% 22%, 58% 100%, 42% 100%, 42% 22%, 0 15%); }
.is-scattered .edit-playhead { transform: translateX(76%); }

.featured-band { position: relative; padding-bottom: clamp(75px, 11vw, 150px); background: var(--theme-background); }
.featured-copy { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: .5rem 1rem; padding-top: clamp(20px, 4vw, 56px); margin-bottom: 1.25rem; }
.featured-card { display: flex; flex-direction: column; scroll-snap-align: start; }
.featured-card .project-body { flex: 1; }
.featured-controls { display: flex; justify-content: end; gap: .5rem; margin-top: .65rem; }
.feature-scroll { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 8px; background: var(--theme-surface); font-size: 1.45rem; line-height: 1; }
.feature-scroll:disabled { cursor: default; }
.feature-scroll:hover:not(:disabled) { background: var(--highlight); }
.skills-intro { max-width: 30ch; margin-top: 1rem; color: var(--theme-muted); }
.primary-nav .mobile-cta { display: none; }
@media (max-width: 440px) {
  .primary-nav .mobile-cta { display: flex; grid-column: 1 / -1; justify-content: center; background: var(--highlight); margin-top: .4rem; }
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.featured { width: min(1120px, calc(100% - clamp(2rem, 8vw, 7rem))); }
.featured-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.75rem, 2vw, 1.5rem); align-items: start; }
.featured-card.is-short { position: relative; aspect-ratio: 9 / 16; }
.featured-card.is-short .project-media { position: absolute; inset: 0; }
.featured-card.is-short .project-play { padding-bottom: 16%; }
.featured-card.is-short .project-body {
  position: absolute;
  inset: auto 0 0;
  padding: 2.35rem clamp(.75rem, 1.6vw, 1.35rem) .8rem;
  background: linear-gradient(transparent, color-mix(in srgb, var(--theme-background) 96%, transparent) 43%);
  pointer-events: none;
}
.featured-card.is-short .project-body a { pointer-events: auto; }
.featured-card.is-short .project-description { display: none; }
.featured-card.is-short .eyebrow { font-size: .75rem; }
.featured-card:has(.inline-video:not([hidden])) .project-body { visibility: hidden; }
.project-media.vertical-media { aspect-ratio: 9 / 16; background: var(--theme-background); }
.project-media.vertical-media > img { object-fit: cover; object-position: center; }
.project-media:has(.inline-video:not([hidden])) > img { visibility: hidden; }
.inline-video { position: absolute; inset: 0; background: var(--theme-background); }
.short-frame { width: 100%; height: 100%; }
.short-frame iframe, .player-frame iframe { display: block; width: 100%; height: 100%; }
.inline-close {
  position: absolute;
  top: .65rem;
  right: .65rem;
  min-height: 38px;
  padding: .2rem .75rem;
  border-radius: 99px;
  background: var(--theme-raised);
  color: var(--theme-text);
  font-size: .85rem;
  z-index: 1;
}
.inline-close:hover { background: var(--highlight); }
.inline-video .player-error { position: absolute; inset: auto .5rem .5rem; padding: .65rem; border-radius: 8px; background: var(--theme-surface); text-align: center; }
.inline-video .player-error > * { display: block; }
.youtube-link { gap: .45rem; }
@media (max-width: 1030px) and (min-width: 621px) {
  .featured-card.is-short .project-body h3 { font-size: 1rem; }
}
@media (max-width: 620px) {
  .featured-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(83%, 22rem);
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--theme-raised) transparent;
  }
}

.service-band { padding-block: clamp(5rem, 9vw, 8rem) clamp(6rem, 11vw, 10rem); background: var(--theme-background); }
.service-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; }
.service-heading > p { max-width: 41ch; color: var(--theme-muted); }
.services li { background: var(--theme-surface); border-radius: 14px; padding: clamp(.95rem, 2.15vw, 1.5rem); }
.services li > .icon { display: block; margin-bottom: .85rem; width: 1.45rem; height: 1.45rem; color: var(--theme-accent); }
.tool-mark .icon { width: 1.28rem; height: 1.28rem; }
.contact-label { display: flex; gap: .55rem; align-items: center; }
.contact-label .icon { width: 1.1rem; height: 1.1rem; color: var(--theme-accent); }
.socials { margin-top: .65rem; gap: .45rem; }
.social-link, .floating-whatsapp {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--theme-raised);
  color: var(--theme-accent);
}
.social-link:hover, .floating-whatsapp:hover { background: var(--highlight); color: var(--theme-text); }
.social-link .icon { width: 1.16rem; height: 1.16rem; }
.floating-whatsapp { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 12; width: 52px; height: 52px; background: var(--theme-accent); color: var(--theme-background); }
.floating-whatsapp .icon { width: 1.65rem; height: 1.65rem; }

.support-methods { display: grid; grid-template-columns: minmax(12rem, .72fr) minmax(0, 1.28fr); gap: .75rem; margin-bottom: 1.5rem; text-align: start; }
.payment-detail, .payment-chooser { padding: clamp(1rem, 3vw, 2rem); background: var(--theme-surface); border-radius: 16px; }
.payment-chooser-title { margin-bottom: .95rem; font: 650 1.05rem/1.3 var(--sans); letter-spacing: 0; text-align: start; }
.payment-channels { display: grid; gap: .35rem; }
.payment-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  width: 100%;
  min-height: 56px;
  padding: .5rem .65rem;
  border-radius: 10px;
  background: transparent;
  color: var(--theme-muted);
  text-align: start;
}
.payment-option:hover, .payment-option[aria-pressed="true"] { background: var(--theme-raised); color: var(--theme-text); }
.payment-option[aria-pressed="true"] > .icon { color: var(--theme-accent); }
.payment-option-name { font-weight: 650; font-size: .96rem; }
.payment-kind { display: block; color: var(--theme-muted); font-weight: 400; }
.payment-logo { display: grid; place-items: center; width: 42px; height: 42px; padding: 5px; border-radius: 8px; color: var(--theme-paper-text); background: #fff; }
.payment-logo img { object-fit: contain; }
.payment-logo-bank { overflow: hidden; justify-items: start; }
.payment-logo-bank img { width: 320%; height: auto; max-width: none; }
.payment-heading { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.25rem; }
.payment-heading .payment-logo { width: clamp(3rem, 8vw, 5rem); height: auto; aspect-ratio: 1; }
.payment-heading h2 { text-align: start; font-size: clamp(1.6rem, 4vw, 3rem); }
.payment-heading .eyebrow { margin-bottom: .25rem; }
.payment-account { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem; padding: clamp(.8rem, 2.3vw, 1.5rem); border-radius: 12px; background: var(--theme-raised); }
.payment-label { color: var(--theme-muted); font-size: .82rem; }
.payment-number { display: block; font-size: clamp(1.35rem, 4vw, 2.5rem); line-height: 1.26; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.payment-account .button { background: var(--theme-accent); color: var(--theme-background); }
.payment-account .button:hover { background: var(--soft-accent); }
.payment-fields { margin-top: .75rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.payment-fields > div { min-width: 0; overflow-wrap: anywhere; padding: .65rem .75rem; border-radius: 10px; background: var(--theme-field); }
.payment-fields dd { margin-top: .2rem; }
.payment-status { min-height: 1.3rem; margin-top: .65rem; color: var(--theme-accent); font-size: .85rem; }
@media (max-width: 650px) {
  .support-methods { grid-template-columns: 1fr; }
  .payment-channels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .payment-option { gap: .45rem; padding: .4rem; }
  .payment-option > .icon { display: none; }
  .payment-logo { width: 35px; height: 35px; }
}
@media (max-width: 440px) {
  .payment-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

:root[data-mode="light"] { color-scheme: light; }
.theme-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  color: var(--theme-accent);
  background: var(--theme-surface);
  border-radius: 50%;
  transition: background .2s, transform .22s;
}
.theme-toggle:hover { background: var(--highlight); transform: rotate(-12deg); }
.theme-toggle .icon { width: 1.1rem; height: 1.1rem; }
.site-header, .project-card, .tool-card, .payment-option { transition: background-color .22s, color .22s; }
.text-link, .button, .social-link, .payment-option, .tool-card { transition: background-color .2s, color .2s, transform .22s; }
.button:hover, .social-link:hover, .payment-option:hover, .tool-card:hover { transform: translateY(-2px); }

.hero-mark {
  display: block;
  width: min(84%, 26rem);
  aspect-ratio: 1;
  margin: auto;
  background: var(--theme-accent);
  mask: url("/media/mark.svg") center / contain no-repeat;
}
.has-particles .hero-mark { visibility: hidden; }
.hero .edit-monitor { display: grid; place-items: center; }
:lang(en) .hero h1 em { color: var(--theme-accent); }
:lang(bn) .hero h1 { line-height: 1.18; }
:lang(bn) .hero h1 em { font-family: var(--display); }

.work-page { padding-block-start: clamp(2.25rem, 4vw, 4rem); }
.work-page .interior-heading h1 { font-size: clamp(2.8rem, 5.2vw, 5.2rem); }
.work-page .interior-heading { margin-bottom: 1.5rem; }
.work-groups { display: grid; gap: clamp(1.8rem, 3vw, 2.75rem); margin-top: clamp(1.4rem, 2vw, 2rem); }
.work-group > h2 { font: 640 clamp(1.28rem, 2.7vw, 2.1rem)/1.15 var(--display); letter-spacing: -.04em; margin-bottom: .9rem; }
.work-grid-shorts { grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 15.5rem)); }
.work-grid-long { grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 26rem)); }
.gallery-card.is-short { aspect-ratio: 9 / 16; }
.gallery-card .project-media { position: absolute; inset: 0; }
.gallery-card .project-media > img { transition: transform .35s cubic-bezier(.22,.68,.35,1), opacity .22s; }
.gallery-card:not(.show-details):hover .project-media > img { transform: scale(1.037); }
.gallery-card.show-details .project-media { opacity: 0; }
.gallery-card .project-body {
  position: absolute;
  display: block;
  inset: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 3.45rem clamp(.85rem, 1.8vw, 1.35rem) 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--theme-accent) var(--theme-surface);
  background: var(--theme-surface);
  animation: details-appear .25s cubic-bezier(.22,.75,.3,1) both;
}
.gallery-card .project-body:focus-visible { outline-offset: -4px; }
.gallery-card .project-actions { margin-top: .45rem; }
.gallery-card .project-description { line-height: 1.56; }
.project-details-toggle {
  position: absolute;
  top: .6rem;
  right: .6rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: .43rem;
  min-height: 40px;
  padding: .36rem .68rem;
  border-radius: 99px;
  color: var(--theme-text);
  background: var(--theme-raised);
  font-size: .78rem;
  font-weight: 730;
  transition: transform .2s, background .2s;
}
.project-details-toggle .icon { color: var(--theme-accent); }
.project-details-toggle:hover, .project-details-toggle:focus-visible { background: var(--highlight); transform: translateY(-2px); }
.gallery-card .inline-close { right: auto; left: .65rem; }
@keyframes details-appear { from { opacity: .45; clip-path: inset(5% 0 0); } to { opacity: 1; clip-path: inset(0); } }
.video-dialog[open] { animation: details-appear .24s ease-out; }

body[data-page="donate"] .payment-detail { position: relative; isolation: isolate; overflow: hidden; }
.payment-detail::before, .payment-detail::after { content: ""; position: absolute; pointer-events: none; z-index: -1; }
.payment-detail::before {
  inset: -38% -20%;
  background: radial-gradient(ellipse at 68% 34%, color-mix(in srgb, var(--theme-accent-strong) 27%, transparent), transparent 52%);
  animation: payment-light 12s ease-in-out infinite alternate;
}
.payment-detail::after {
  inset: 0;
  opacity: .12;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='144' height='144'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.79' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23888888' filter='url(%23n)' d='M0 0h144v144H0z'/%3E%3C/svg%3E");
  mask-image: radial-gradient(ellipse at 65% 26%, black, transparent 83%);
}
@keyframes payment-light { from { transform: translate(-3%, -2%); } to { transform: translate(12%, 10%); } }
@media (prefers-reduced-motion: reduce) {
  .payment-detail::before { animation: none !important; }
}

@media (max-width: 820px) {
  :root { --header: 64px; }
  .theme-toggle { width: 40px; min-width: 40px; height: 40px; }
  .header-inner .brand { flex-shrink: 1; min-width: 0; }
  .header-inner .brand-name { overflow-wrap: anywhere; }
  .header-actions { flex-shrink: 0; }
}
@media (max-width: 700px) {
  .header-cta { display: none; }
  .primary-nav .mobile-cta { display: flex; grid-column: 1 / -1; justify-content: center; background: var(--highlight); margin-top: .4rem; }
}
@media (max-width: 520px) {
  .work-grid-shorts { grid-template-columns: minmax(0, 15.5rem); }
}
@media (max-width: 374px) {
  .header-inner .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

.custom-brand .brand-mark { mask: none; background: var(--brand-image) center / contain no-repeat; }
.hero-actions { gap: .7rem; }
.hero-copy .availability {
  margin: 0;
  padding: .62rem .82rem;
  min-height: 44px;
  gap: .6rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--theme-unavailable) 12%, var(--theme-surface));
  color: var(--theme-text);
  font-size: clamp(.95rem, 1.2vw, 1.04rem);
  font-weight: 740;
  line-height: 1.35;
}
.hero-copy .availability.available { background: color-mix(in srgb, var(--theme-available) 13%, var(--theme-surface)); }
.particle-options { margin: .7rem auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; }
.particle-option { min-height: 36px; padding: .28rem .78rem; border-radius: 8px; background: var(--theme-surface); color: var(--theme-muted); font-size: .82rem; font-weight: 700; }
.particle-option:hover:not(:disabled) { background: var(--theme-raised); color: var(--theme-text); }
.particle-option[aria-pressed="true"] { background: var(--theme-accent); color: var(--theme-background); }

.palette-panel {
  position: absolute;
  inset-inline-end: max(1rem, calc((100% - var(--shell)) / 2));
  top: calc(100% + .35rem);
  width: min(15rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 5rem);
  overflow: auto;
  z-index: 3;
  padding: .6rem;
  border-radius: 14px;
  background: var(--theme-surface);
  box-shadow: 0 13px 38px #0003;
  animation: details-appear .2s ease-out;
}
.palette-title { padding: .38rem .56rem .52rem; color: var(--theme-muted); font-size: .8rem; font-weight: 750; }
.palette-choice { display: flex; align-items: center; gap: .66rem; width: 100%; padding: .45rem .58rem; min-height: 39px; border-radius: 8px; background: transparent; color: var(--theme-text); text-align: start; font-size: .9rem; }
.palette-choice:hover, .palette-choice[aria-pressed="true"] { background: var(--highlight); }
.palette-swatch { flex: none; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: linear-gradient(135deg, var(--swatch) 48%, var(--swatch-back) 49%); }
.palette-choice[data-palette="bangladesh"] .palette-swatch { background: radial-gradient(circle at 45% 50%, #d8272d 0 31%, #00664b 35%); }

.page-lead { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, .8fr); gap: 1.25rem 2.5rem; align-items: end; margin-bottom: clamp(1.6rem, 4vw, 3.75rem); }
.page-lead h1 { font-size: clamp(2.9rem, 6.3vw, 6rem); }
.page-lead #page-intro { margin: 0 0 .35rem; font-size: clamp(.98rem, 1.5vw, 1.13rem); }
.contact-page, .support-page { padding-block-start: clamp(2.5rem, 5.4vw, 5rem); }
.contact-page .contact-grid { align-items: start; grid-template-columns: minmax(0, 1.7fr) minmax(0, .85fr); }
.contact-page .enquiry-form { background: color-mix(in srgb, var(--theme-surface) 84%, var(--theme-paper)); border-radius: 20px; }
.form-intro { display: flex; gap: .8rem; align-items: center; margin-bottom: 1.45rem; }
.panel-mark { display: grid; width: 42px; height: 42px; flex: none; place-items: center; border-radius: 10px; background: var(--theme-raised); color: var(--theme-accent); }
.form-group { min-width: 0; padding: 0; margin: 0 0 1.1rem; border: 0; }
.form-group legend { padding: 0; margin-bottom: .6rem; font-weight: 750; color: var(--theme-accent); font-size: .87rem; }
.form-group .fields { margin-bottom: 0; }
.form-submit { display: flex; flex-wrap: wrap; gap: .65rem .9rem; align-items: center; }
.form-submit .button { background: var(--theme-accent); color: var(--theme-background); }
.form-submit #form-note { flex: 1 1 13rem; margin: 0; font-size: .82rem; }
.contact-details { border-radius: 20px; }
.contact-details ul { display: grid; gap: .45rem; margin-top: 1rem; }
.contact-details li, .contact-details li:last-child { background: var(--theme-field); border-radius: 10px; padding: .62rem .75rem; }
.contact-details li > :is(a,.contact-value) { font-size: .92rem; }

.support-page .support-methods { grid-template-columns: minmax(13rem, .72fr) minmax(0, 1.55fr); gap: clamp(.75rem, 2vw, 1.5rem); align-items: start; }
.support-page .payment-chooser { padding: clamp(.95rem, 2.2vw, 1.75rem); }
.support-page .payment-option { background: var(--theme-field); min-height: 61px; }
.support-page .payment-option[aria-pressed="true"], .support-page .payment-option:hover { background: var(--highlight); }
.support-page .payment-detail {
  padding: clamp(1rem, 3.8vw, 2.65rem);
  background: var(--theme-paper);
  color: var(--theme-paper-text);
  border-radius: 17px 17px 9px 9px;
  box-shadow: 0 12px 32px #0002;
}
.support-page .payment-heading { margin-bottom: clamp(1rem, 2.8vw, 2rem); }
.support-page .payment-heading .eyebrow, .support-page .payment-status { color: var(--theme-accent-on-light); }
.support-page .payment-label, .support-page .payment-guide { color: var(--light-muted); }
.support-page .payment-account { background: color-mix(in srgb, var(--theme-accent-on-light) 10%, var(--theme-paper)); }
.support-page .payment-account .button { background: var(--theme-accent-on-light); color: var(--theme-paper); }
.support-page .payment-number { font-family: var(--display); font-weight: 700; font-size: clamp(1.35rem, 3.7vw, 2.9rem); }
.support-page .payment-fields > div { background: color-mix(in srgb, var(--theme-accent-on-light) 6%, var(--theme-paper)); }
.payment-guide { display: flex; align-items: baseline; gap: .6rem; margin-block: 1.1rem .35rem; font-size: .88rem; overflow-wrap: anywhere; }
.support-help { gap: .25rem .65rem; color: var(--theme-muted); font-size: .9rem; }

.site-footer { background: var(--theme-surface); }
.footer-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .95fr) minmax(0, 1.1fr); gap: clamp(1.25rem, 4vw, 3.6rem); }
.footer-grid h2 { margin: .18rem 0 .45rem; font: 740 .9rem/1.35 var(--sans); letter-spacing: 0; text-align: start; text-wrap: unset; }
#footer-nav { display: block; }
#footer-nav a { min-height: 32px; }
.footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: .8rem; }
.footer-location { display: flex; align-items: baseline; gap: .5rem; margin-top: .6rem; color: var(--theme-muted); font-size: .88rem; }
.footer-location .icon, .footer-email:hover { color: var(--theme-accent); }
.footer-copyright { background: var(--theme-field); color: var(--theme-muted); margin-top: clamp(1.5rem, 4vw, 2.7rem); padding: .75rem 1rem; border-radius: 9px; font-size: .83rem; }

.skills .tool-card { padding: clamp(.72rem, 1.7vw, 1.35rem); align-content: start; min-height: 130px; }
.skills .tool-card strong { font-size: clamp(.84rem, 1.12vw, 1rem); }
.skills .tool-card progress { margin-top: .45rem; align-self: center; }
.skills .tool-percent { align-self: end; }
.skills .tool-mark { background: color-mix(in srgb, var(--theme-accent-strong) 15%, var(--theme-raised)); }
.skills .tool-primary { background: linear-gradient(135deg, var(--tinted-surface), var(--theme-surface)); }
.stats dd { font-variant-numeric: tabular-nums; white-space: nowrap; }
:lang(bn) .stats dd { font-size: clamp(1.48rem, 2.65vw, 2.45rem); line-height: 1.24; letter-spacing: -.02em; }
:lang(bn) .stats dt { line-height: 1.45; }
:lang(bn) :is(.button, .palette-choice, .payment-option, .footer-copyright) { line-height: 1.45; }
:lang(bn) .form-group legend { font-size: .95rem; }
:lang(bn) .project-body h3 { line-height: 1.36; }

@media (max-width: 700px) {
  .page-lead, .contact-page .contact-grid, .support-page .support-methods { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-identity { grid-column: 1 / -1; }
  .support-page .payment-channels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .header-inner .brand { gap: .42rem; }
  .header-inner .brand-name { max-width: 8ch; font-size: .82rem; }
  .header-actions { gap: .32rem; }
}
@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
  .site-footer { padding-bottom: 4.6rem; }
  .support-page .payment-option { min-height: 52px; }
  .support-page .payment-heading .payment-logo { width: 3.1rem; }
  .hero-copy .availability { flex: 0 1 auto; }
}
@media (max-width: 380px) {
  .header-actions { gap: .25rem; }
  .header-actions .language button { padding-inline: .48rem; }
}

/* Paper stock is composited into the background; text and artwork keep their palette colors. */
:root {
  --stock: none;
  --light-stock: url("/media/paper-light.webp");
  --paper-base: linear-gradient(color-mix(in srgb, var(--theme-background) 58%, transparent) 0 0);
  --paper-surface: linear-gradient(color-mix(in srgb, var(--theme-surface) 60%, transparent) 0 0);
  --paper-sheet: linear-gradient(color-mix(in srgb, var(--theme-paper) 60%, transparent) 0 0);
}
:root[data-mode="light"] { --stock: var(--light-stock); }
body, .featured-band, .service-band {
  background-image: var(--paper-base), var(--stock);
}
.hero {
  background-image: radial-gradient(ellipse at 75% 43%, color-mix(in srgb, var(--theme-accent-strong) 14%, transparent), transparent 58%), var(--paper-base), var(--stock);
}
.dark-middle, body:not([data-page="home"]) main {
  background-image: radial-gradient(ellipse at 78% 13%, color-mix(in srgb, var(--theme-accent-strong) 13%, transparent), transparent 60%), var(--paper-base), var(--stock);
}
.paper, .paper::before, .paper::after {
  background-image: var(--paper-sheet), var(--light-stock);
}
.site-footer { background-image: var(--paper-surface), var(--stock); }
main { overflow-x: clip; }

.availability-dot {
  position: relative;
  display: block;
  width: .61rem;
  height: .61rem;
  flex: none;
  border-radius: 50%;
  background: var(--theme-unavailable);
  box-shadow: 0 0 9px color-mix(in srgb, var(--theme-unavailable) 60%, transparent);
}
.availability-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  animation: availability-wave 2.15s ease-out infinite;
}
.availability.available .availability-dot { background: var(--theme-available); box-shadow: none; }
.availability.available .availability-dot::after { display: none; }
.availability.available:disabled { opacity: 1; }
.availability-more { color: var(--theme-muted); line-height: 1; }
.availability.available .availability-more { display: none; }
button.availability:not(:disabled):hover { background: color-mix(in srgb, var(--theme-unavailable) 20%, var(--theme-surface)); }
@keyframes availability-wave {
  0% { opacity: .48; transform: scale(1); }
  78%, 100% { opacity: 0; transform: scale(2.95); }
}
body:has(.availability-letter[open]) { overflow: hidden; }
.availability-letter {
  width: min(34rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  margin: auto;
  padding: clamp(1.2rem, 5vw, 2.6rem);
  background: var(--paper-sheet), var(--light-stock);
  background-color: var(--theme-paper);
  color: var(--theme-paper-text);
  border-radius: 8px 8px 18px 8px;
  box-shadow: 0 24px 100px #0005;
}
.availability-letter[open] { animation: open-letter .38s cubic-bezier(.2,.8,.3,1) both; }
.availability-letter::backdrop { background: #120b2092; backdrop-filter: blur(9px); }
.letter-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.45rem; }
.letter-heading .icon { color: var(--theme-accent-on-light); width: 1.45rem; height: 1.45rem; }
.letter-heading .button { background: var(--theme-accent-on-light); color: var(--theme-paper); }
.availability-letter h2 { text-wrap: unset; font-size: clamp(1.8rem, 5vw, 2.7rem); margin-bottom: .8rem; }
.availability-facts { display: grid; gap: .65rem; margin-block: 1.2rem; padding: .85rem 1rem; background: color-mix(in srgb, var(--theme-paper-text) 7%, transparent); border-radius: 8px; }
.availability-facts dt { font-size: .8rem; font-weight: 750; color: var(--theme-accent-on-light); }
.availability-facts dd { overflow-wrap: anywhere; }
#availability-signoff { color: var(--light-muted); font-size: .9rem; }
@keyframes open-letter { from { opacity: .25; transform: translateY(16px) rotate(-2deg) scale(.97); } to { opacity: 1; transform: none; } }

.timeline { --timeline-gap: 1.25rem; gap: var(--timeline-gap); }
.timeline::before { display: none; }
.timeline li::before { z-index: 1; }
.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  inset: 8px auto auto 9px;
  width: calc(100% + var(--timeline-gap));
  height: 2px;
  background: color-mix(in srgb, var(--theme-accent-on-light) 62%, var(--theme-paper));
  transform-origin: left center;
}
.timeline-sequence li::before { animation: timeline-dot .27s cubic-bezier(.2,.8,.3,1) var(--sequence-delay) both; }
.timeline-sequence li:not(:last-child)::after { animation: timeline-draw .43s cubic-bezier(.2,.75,.4,1) calc(var(--sequence-delay) + 100ms) both; }
@keyframes timeline-dot { from { opacity: 0; transform: scale(.15); } to { opacity: 1; transform: scale(1); } }
@keyframes timeline-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes timeline-draw-down { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (max-width: 650px) {
  .timeline li:not(:last-child)::after { inset: 9px auto auto 8px; width: 2px; height: calc(100% + var(--timeline-gap)); transform-origin: center top; }
  .timeline-sequence li:not(:last-child)::after { animation-name: timeline-draw-down; }
}
#enquiry-grain { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.play-motif.has-particles :is(i,b) { visibility: hidden; }
.services li { transition: transform .24s cubic-bezier(.2,.75,.3,1), background .24s; }
@media (hover: hover) {
  .services li:hover { transform: translateY(-4px) scale(1.025); background: var(--tinted-surface); }
  .gallery-card:hover { filter: saturate(1.07); }
}
@media (prefers-reduced-motion: reduce) {
  .availability-dot::after { animation: none !important; }
}

/* Payment channels read as a selector strip above a single receipt. */
.support-page .support-methods { grid-template-columns: 1fr; gap: clamp(1rem, 2vw, 1.7rem); }
.support-page .payment-chooser { background: var(--paper-surface), var(--stock); }
.support-page .payment-channels { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .65rem; }
.support-page .payment-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  padding: .75rem;
  gap: .48rem;
  align-items: center;
  min-height: 74px;
  color: var(--theme-text);
}
.support-page .payment-option > .icon { display: none; }
.support-page .payment-kind { margin-top: .12rem; font-size: .74rem; }
.support-page .payment-option[aria-pressed="true"] { background: var(--highlight); }
.support-page .payment-detail { background: var(--paper-sheet), var(--light-stock); }
.payment-content { display: grid; grid-template-columns: minmax(0, 1.24fr) minmax(0, 1fr); gap: clamp(1rem, 3vw, 2.25rem); align-items: center; }
.payment-main, .payment-notes { min-width: 0; }
.support-page .payment-account { display: grid; gap: .8rem; background: color-mix(in srgb, var(--theme-accent-on-light) 11%, transparent); }
.support-page .payment-account .button { justify-self: start; }
.support-page .payment-fields { grid-template-columns: 1fr; margin-top: 0; }
.support-page .payment-fields > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem .55rem; }
.support-page .payment-fields dd { margin: 0; font-weight: 650; }
.support-page .payment-guide { margin-bottom: 0; }
.support-page .payment-status:empty { display: none; }

/* The enquiry form folds into two fields of work and a separate contact directory. */
.contact-page .contact-grid { grid-template-columns: 1fr; gap: clamp(1.25rem, 4vw, 2.6rem); }
.contact-page .enquiry-form {
  background: var(--paper-surface), var(--stock);
  padding: clamp(1rem, 3vw, 2.2rem);
}
.contact-page .form-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(.8rem, 2vw, 1.4rem); }
.contact-page .form-group {
  position: relative;
  padding: .85rem;
  margin-bottom: .4rem;
  background: var(--theme-surface);
  border-radius: 10px;
}
.contact-page .form-group legend {
  margin: 0 0 .15rem;
  padding: .2rem .5rem;
  border-radius: 5px;
  background: var(--theme-raised);
}
.contact-page .form-submit { margin-top: 1.05rem; }
.contact-page .contact-details { padding: clamp(1rem, 3vw, 2rem); background: var(--paper-surface), var(--stock); }
.contact-page .contact-details ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
.contact-page .contact-details li { align-content: start; min-width: 0; }
.contact-page .contact-details li:hover { background: var(--theme-raised); }
.contact-page .contact-details .contact-method {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 1.05rem;
  background: var(--theme-field);
  border-radius: 15px;
  padding: clamp(.8rem, 1.6vw, 1.15rem);
  transition: background .2s ease;
}
.contact-page .contact-details .contact-method:hover,
.contact-page .contact-details .contact-method:focus-within {
  background: color-mix(in srgb, var(--theme-field) 80%, var(--theme-accent));
}
.contact-method-header { display: flex; align-items: flex-start; gap: .7rem; }
.contact-method-icon {
  display: grid;
  place-items: center;
  flex: 0 0 2.4rem;
  height: 2.4rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--theme-accent) 14%, var(--theme-surface));
  color: var(--theme-accent);
}
.contact-method-identity { min-width: 0; }
.contact-method-identity h3 { font: 700 1rem/1.35 var(--sans); }
.contact-method-identity p { margin: .15rem 0 0; color: var(--theme-muted); font-size: .85rem; overflow-wrap: anywhere; }
.contact-method-actions { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.contact-method-actions .button, .contact-location .button {
  min-height: 42px;
  padding: .45rem .75rem;
  font-size: .78rem;
}
.contact-method-actions .contact-destination { color: var(--theme-text); background: var(--theme-raised); }
.contact-method-actions .contact-destination:hover { color: var(--theme-background); background: var(--theme-accent); }
.contact-method-actions .contact-destination .icon { margin-inline-start: .15rem; }
.contact-method-feedback { flex: 1 0 100%; color: var(--theme-muted); font-size: .79rem; }
.contact-page .contact-secondary { color: var(--theme-text); background: var(--theme-surface); }
.contact-page .contact-secondary:hover { color: var(--theme-text); background: var(--theme-raised); }
.contact-location {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .7rem 1.2rem;
  margin-top: 1rem;
  padding: .85rem 1rem;
  border-radius: 12px;
  background: var(--theme-field);
}
.contact-location > div { flex: 1 1 20rem; }
.contact-location h3 { display: flex; align-items: center; gap: .5rem; font: 700 .92rem/1.4 var(--sans); }
.contact-location h3 .icon { color: var(--theme-accent); }
.contact-location p, .contact-delivery-note { color: var(--theme-muted); font-size: .82rem; }
.contact-location p { margin: .25rem 0 0; }
.contact-location #location-status { color: var(--theme-text); }
.contact-delivery-note { margin: 1rem 0 0; max-width: 68ch; }
.contact-page .form-submit { margin-top: .65rem; }
.contact-page .form-submit .contact-secondary { background: var(--theme-field); }
.contact-page .form-submit .contact-secondary:hover { background: var(--theme-raised); }
.contact-page .button:disabled { opacity: .62; transform: none; }
.contact-trap { position: absolute; inline-size: 1px; block-size: 1px; clip-path: inset(50%); overflow: hidden; }

@media (max-width: 980px) {
  .support-page .payment-channels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .payment-content, .contact-page .form-columns { grid-template-columns: 1fr; }
  .contact-page .contact-details ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .support-page .payment-channels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .support-page .payment-option { min-height: 60px; padding: .55rem; }
  .contact-page .contact-details ul { grid-template-columns: 1fr; }
}

#scatter-edit { cursor: grab; touch-action: none; }
#scatter-edit:active { cursor: grabbing; }
#scatter-edit:disabled { cursor: default; touch-action: auto; }
@media (pointer: coarse) {
  #scatter-edit { touch-action: pan-y pinch-zoom; }
}
.rotation-hint { color: var(--theme-muted); font-size: .8rem; margin: .6rem 0 0; text-align: center; }
.rotation-value { min-width: 2.1em; color: var(--theme-muted); }

:root {
  --paper-base: linear-gradient(color-mix(in srgb, var(--theme-background) 56%, transparent) 0 0);
  --paper-surface: linear-gradient(color-mix(in srgb, var(--theme-surface) 64%, transparent) 0 0);
  --paper-sheet: linear-gradient(color-mix(in srgb, var(--theme-paper) 53%, transparent) 0 0);
}
.interior { position: relative; isolation: isolate; }
.hero-copy .accent { text-shadow: 0 0 28px color-mix(in srgb, var(--theme-accent-strong) 29%, transparent); }
.header-actions .palette-toggle:hover, .particle-option[aria-pressed="true"] { box-shadow: 0 0 18px color-mix(in srgb, var(--theme-accent-strong) 24%, transparent); }
@media (hover: hover) {
  .gallery-card { transition: transform .3s cubic-bezier(.2,.75,.3,1), box-shadow .3s, filter .3s; }
  .gallery-card:hover:not(.show-details) { transform: translateY(-4px); box-shadow: 0 9px 24px color-mix(in srgb, var(--theme-accent-strong) 24%, transparent); }
}

.support-page .support-methods { grid-template-columns: minmax(13rem, .7fr) minmax(0, 1.8fr); align-items: stretch; }
.support-page .payment-channels { grid-template-columns: minmax(0, 1fr); gap: .48rem; }
.support-page .payment-chooser { padding: clamp(1rem, 2.25vw, 1.7rem); border-radius: 13px; }
.support-page .payment-option { min-height: 62px; padding: .55rem .7rem; gap: .7rem; }
.support-page .payment-option[aria-pressed="true"] { box-shadow: inset 3px 0 var(--theme-accent), 0 0 20px color-mix(in srgb, var(--theme-accent-strong) 16%, transparent); }
.support-page .payment-detail { padding: clamp(1rem, 3vw, 2rem); border-radius: 13px; min-height: 100%; }
.support-page .payment-heading h2 { font-size: clamp(1.55rem, 3.4vw, 2.65rem); letter-spacing: -.04em; }
.support-page .payment-content { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(.9rem, 2vw, 1.55rem); }
.support-page .payment-number { font-size: clamp(1.3rem, 2.7vw, 2.35rem); }
.support-page .payment-account { border-radius: 12px; }
.support-page .payment-notes { align-self: stretch; padding: .7rem; border-radius: 10px; background: color-mix(in srgb, var(--theme-accent-on-light) 7%, transparent); }
:root[data-mode="dark"] .support-page .payment-detail {
  background: radial-gradient(ellipse at 22% 0, color-mix(in srgb, var(--theme-accent-strong) 25%, transparent), transparent 66%), var(--paper-surface), var(--stock);
  background-color: var(--theme-surface);
  color: var(--theme-text);
}
:root[data-mode="dark"] .support-page .payment-notes { background: color-mix(in srgb, var(--theme-field) 86%, transparent); }
:root[data-mode="dark"] .support-page :is(.payment-label, .payment-kind, .payment-guide) { color: var(--theme-muted); }
:root[data-mode="dark"] .support-page .payment-fields > div { background: color-mix(in srgb, var(--theme-raised) 78%, transparent); }
:root[data-mode="dark"] .support-page .payment-account { background: color-mix(in srgb, var(--theme-background) 65%, transparent); }
:root[data-mode="dark"] .support-page :is(.payment-heading .eyebrow, .payment-status) { color: var(--theme-accent); }
:root[data-mode="dark"] .support-page .payment-account .button { background: var(--theme-accent); color: var(--theme-background); }
@media (max-width: 940px) {
  .support-page .payment-content { grid-template-columns: 1fr; }
}
@media (max-width: 670px) {
  .support-page .support-methods { grid-template-columns: minmax(0, 1fr); }
  .support-page .payment-channels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

:root[data-mode="light"] .support-page .payment-detail { background-color: var(--theme-paper); color: var(--theme-paper-text); }

/* The gradients form the soft edges directly, so the animation does not need a blur filter. */
.ambient-surface { position: relative; isolation: isolate; }
:root[data-mode="dark"] .hero {
  background: radial-gradient(ellipse at 72% 45%, var(--tinted-surface), var(--theme-background) 66%);
}
:root[data-mode="dark"] body:not([data-page="home"]) main {
  background: linear-gradient(150deg, var(--theme-background), var(--tinted-surface) 69%, var(--theme-background));
}
:root[data-mode="dark"] :is(.payment-chooser, .contact-page .enquiry-form, .contact-page .contact-details) {
  background-color: var(--theme-surface);
}
.lava-field {
  --ambient-strength: 54%;
  --ambient-fill: 28%;
  --ambient-secondary-color: var(--theme-accent);
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(transparent, black 12%, black 87%, transparent);
}
:root[data-mode="light"] .lava-field, .paper > .lava-field {
  --ambient-strength: 20%;
  --ambient-fill: 13%;
}
:root[data-palette="bangladesh"] .lava-field { --ambient-secondary-color: #189056; }
.hero > .lava-field { mask-image: linear-gradient(black 78%, transparent); }
.lava-shape {
  position: absolute;
  inset: -18% -14% auto auto;
  width: min(86%, 76rem);
  height: clamp(24rem, 64vw, 52rem);
  border-radius: 58% 42% 44% 56%;
  background: radial-gradient(ellipse at 55% 45%,
    color-mix(in srgb, var(--theme-accent-strong) var(--ambient-strength), transparent),
    color-mix(in srgb, var(--theme-accent-strong) calc(var(--ambient-strength) * .43), transparent) 40%,
    transparent 72%);
  opacity: .88;
  transform: rotate(-18deg);
  animation: ambient-drift 19s ease-in-out infinite alternate paused;
}
.lava-shape + .lava-shape {
  inset: auto auto -32% -16%;
  width: min(78%, 68rem);
  height: clamp(20rem, 55vw, 44rem);
  border-radius: 42% 58% 63% 37%;
  background: radial-gradient(ellipse at 42% 53%,
    color-mix(in srgb, var(--ambient-secondary-color) var(--ambient-fill), transparent),
    color-mix(in srgb, var(--ambient-secondary-color) calc(var(--ambient-fill) * .4), transparent) 42%,
    transparent 73%);
  animation-duration: 25s;
  animation-delay: -9s;
  animation-direction: alternate-reverse;
}
.ambient-active .lava-shape { animation-play-state: running; will-change: transform, opacity; }
@keyframes ambient-drift {
  0% { transform: translate3d(-12%, -2%, 0) rotate(-20deg) scale(1, .92); opacity: .72; }
  48% { transform: translate3d(5%, 12%, 0) rotate(9deg) scale(.98, 1.08); opacity: .94; }
  100% { transform: translate3d(-3%, 3%, 0) rotate(26deg) scale(1.12, .94); opacity: .82; }
}
@media (prefers-reduced-motion: reduce) {
  .lava-shape { animation: none !important; }
}
.hero .edit-monitor { overflow: visible; }
.support-page { padding-bottom: clamp(2rem, 5vw, 4rem); }
.support-page .support-methods { align-items: start; margin-bottom: 0; }
.payment-stack { display: grid; align-content: start; gap: .65rem; min-width: 0; }
.support-page .payment-detail { min-height: 0; padding: clamp(1rem, 2.5vw, 1.65rem); }
.support-page .payment-heading { margin-bottom: .85rem; }
.support-page .payment-option { min-height: 54px; }
.support-page .payment-content, .support-page .payment-notes { align-items: start; align-self: start; }
.support-page .payment-notes { padding: .55rem; }
.support-page .payment-guide { margin-top: .72rem; }
.support-page .payment-status { min-height: 0; }
.support-page .support-help .text-link { min-height: 29px; }

.brand-egg { position: relative; }
.brand-note {
  position: absolute;
  top: calc(100% + .75rem);
  inset-inline-start: 0;
  width: max-content;
  max-width: min(16rem, 78vw);
  padding: .55rem .78rem;
  background: var(--theme-raised);
  color: var(--theme-text);
  border-radius: 9px;
  box-shadow: 0 9px 27px #0003;
  font: 650 .83rem/1.45 var(--sans);
  white-space: normal;
  opacity: 0;
  transform: translateY(-5px);
  pointer-events: none;
  visibility: hidden;
  transition: opacity .16s, transform .2s, visibility .2s;
}
.brand-egg:is(:hover, :focus-visible) .brand-note { opacity: 1; visibility: visible; transform: translateY(0); }

.pointer-effects { z-index: 16; }
.pointer-tail { display: block; width: 100%; height: 100%; }
@media (any-hover: none), (prefers-reduced-motion: reduce), (forced-colors: active) {
  .pointer-effects { display: none !important; }
}

@media (any-hover: hover) and (any-pointer: fine) and (forced-colors: none) {
  :root { cursor: var(--cursor-arrow, auto), auto; }
  :is(p, h1, h2, h3, h4, label, legend, dt, dd, code, pre, blockquote,
    input:not([type="checkbox"], [type="radio"], [type="button"], [type="submit"], [type="range"], [type="file"]), textarea) {
    cursor: var(--cursor-text, text), text;
  }
  :is(a[href], button, summary, select, input:is([type="checkbox"], [type="radio"], [type="button"], [type="submit"], [type="file"])),
  label:has(input:is([type="checkbox"], [type="radio"])) {
    cursor: var(--cursor-action, pointer), pointer;
  }
  :is(a[href], button) :is(p, h1, h2, h3, h4, label) { cursor: inherit; }
  button.project-play { cursor: var(--cursor-play, pointer), pointer; }
  :is(#scatter-edit, [draggable="true"], input[type="range"]) { cursor: var(--cursor-grab, grab), grab; }
  :is(#scatter-edit, [draggable="true"], input[type="range"]):active { cursor: var(--cursor-gripping, grabbing), grabbing; }
  textarea[data-cursor-resize] { cursor: var(--cursor-resize, nwse-resize), nwse-resize; }
  :is(button:disabled, input:disabled, textarea:disabled, select:disabled, .feature-scroll:disabled, #scatter-edit:disabled) {
    cursor: var(--cursor-blocked, not-allowed), not-allowed;
  }
  :is([aria-busy="true"], #submit-enquiry:disabled) { cursor: var(--cursor-wait, wait), wait; }
}


.missing-page { min-height: clamp(30rem, 62vh, 42rem); padding-block: clamp(2.7rem, 7vw, 6rem); }
.missing-copy h1 { margin: .65rem 0 .95rem; max-width: 13ch; font-size: clamp(2.5rem, 4.8vw, 5rem); text-wrap: pretty; }
:lang(bn) .missing-copy h1 { line-height: 1.16; }
.missing-copy > p { max-width: 34ch; color: var(--theme-muted); }
.missing-kicker { color: var(--theme-muted); font-size: .85rem; font-weight: 750; }
#error-code { color: var(--theme-accent); font: 720 1.12rem/1 var(--display); }
.missing-actions { margin-top: 1.45rem; }
.missing-primary { background: var(--theme-accent); color: var(--theme-background); }
.missing-primary:hover { background: color-mix(in srgb, var(--theme-accent) 80%, var(--theme-text)); color: var(--theme-background); }
.missing-art { margin: 0; padding: clamp(.7rem, 2vw, 1.15rem); border-radius: 18px; background: var(--theme-surface); outline-offset: 5px; }
.missing-monitor {
  display: grid;
  position: relative;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 11px;
  background: radial-gradient(ellipse at 50% 55%, color-mix(in srgb, var(--theme-accent-strong) 25%, var(--theme-background)), var(--theme-background) 72%);
}
.frame-guide { position: absolute; inset: 10%; background:
  linear-gradient(var(--theme-accent),var(--theme-accent)) 0 0 / 16px 1px no-repeat,
  linear-gradient(var(--theme-accent),var(--theme-accent)) 0 0 / 1px 16px no-repeat,
  linear-gradient(var(--theme-accent),var(--theme-accent)) 100% 100% / 16px 1px no-repeat,
  linear-gradient(var(--theme-accent),var(--theme-accent)) 100% 100% / 1px 16px no-repeat;
  opacity: .65;
}
.monitor-ghost { position: absolute; color: var(--theme-accent); font: 740 clamp(5.4rem, 13vw, 13rem)/1 var(--display); letter-spacing: -.1em; opacity: .22; transform: translateX(-.035em); }
.monitor-play { --play-size: clamp(2.8rem, 7vw, 5.4rem); position: relative; display: grid; place-items: center; width: var(--play-size); height: var(--play-size); border-radius: 50%; background: var(--theme-accent); color: var(--theme-background); box-shadow: 0 0 34px color-mix(in srgb, var(--theme-accent-strong) 26%, transparent); transition: transform .24s; }
.monitor-play > span { display: grid; place-items: center; }
.monitor-play .icon { width: calc(var(--play-size) * .36); height: calc(var(--play-size) * .36); translate: 9% 0; }
.missing-art:is(:hover,:focus-visible) .monitor-play { transform: rotate(-10deg) scale(1.09); }
.missing-timeline { position: relative; grid-template-columns: 1.25fr .8fr 1.25fr; gap: .4rem; margin: .85rem 0 .65rem; }
.missing-timeline i { height: 9px; border-radius: 3px; background: var(--theme-raised); }
.missing-timeline i:nth-child(2) { background: repeating-linear-gradient(125deg, var(--theme-field) 0 7px, transparent 7px 13px); }
.missing-timeline b { position: absolute; left: 49%; inset-block: -.28rem; width: 2px; background: var(--theme-accent); }
.missing-egg { min-height: 2.1em; color: var(--theme-muted); text-align: center; font-size: .8rem; opacity: 0; transition: opacity .2s; }
.missing-art:is(:hover,:focus-visible) .missing-egg { opacity: 1; }

:lang(bn) .hero h1 em { color: var(--theme-accent); }

.motion-toggle {
  position: fixed;
  inset-inline-start: max(1rem, env(safe-area-inset-left, 0px));
  inset-block-end: max(1rem, env(safe-area-inset-bottom, 0px));
  z-index: 12;
  min-height: 44px;
  color: var(--theme-text);
  background: var(--theme-raised);
  box-shadow: 0 4px 18px #0003;
}
.motion-toggle .icon { color: var(--theme-accent); }
:root[data-motion-paused],
:root[data-motion-paused] *,
:root[data-motion-paused] *::before,
:root[data-motion-paused] *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
@media (pointer: coarse) {
  .lava-shape + .lava-shape { animation: none; }
  .payment-detail::before { animation: none; }
}
@media (max-width: 820px) {
  .site-header.menu-open ~ :is(.motion-toggle, .floating-whatsapp) { visibility: hidden; }
}
