/* RichSabbir design system v2 — warm noir editorial. One stylesheet for the site and the brand guide. */
@font-face { font-family: "Instrument Serif"; src: url(fonts/InstrumentSerif-Regular.woff2) format("woff2"); font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(fonts/InstrumentSerif-Italic.woff2) format("woff2"); font-style: italic; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url(fonts/InterTight.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --noir: #0E0D0C; --charcoal: #1A1816; --smoke: #2A2724; --line: rgba(239,232,220,.12);
  --bone: #EFE8DC; --paper: #F6F2EA; --ash: #9C948A; --copper: #C8833F; --vermilion: #E8481C;
  --bg: var(--noir); --fg: var(--bone); --muted: var(--ash);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bn: "Anek Bangla", "Noto Sans Bengali", var(--sans);
  --gutter: clamp(16px, 4vw, 56px); --max: 1320px;
  --ease: cubic-bezier(.22,.61,.36,1); --ease-out: cubic-bezier(.16,1,.3,1);
}
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { /* the brand is dark by design; keep it dark */ } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--vermilion); color: var(--paper); }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 4px; border-radius: 4px; }

/* film grain over everything, very light */
.grain { position: fixed; inset: -50%; pointer-events: none; z-index: 90; opacity: .06; 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 baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 8s steps(8) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-3%)} 75%{transform:translate(-2%,-1%)} 100%{transform:translate(0,0)} }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.eyebrow { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.eyebrow b { color: var(--vermilion); font-weight: 600; }
.display { font-family: var(--serif); font-weight: 400; line-height: .95; letter-spacing: -.01em; }
.display em { font-style: italic; color: var(--copper); }
.h-xxl { font-size: clamp(64px, 11vw, 188px); }
.h-xl { font-size: clamp(48px, 7.4vw, 124px); }
.h-l { font-size: clamp(38px, 5vw, 80px); }
.h-m { font-size: clamp(30px, 3.2vw, 48px); line-height: 1.05; }
.lead { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.55; color: color-mix(in srgb, var(--bone) 82%, transparent); max-width: 34em; }
.muted { color: var(--muted); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.dot { display: inline-block; width: .42em; height: .42em; border-radius: 50%; background: var(--vermilion); vertical-align: .12em; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px; border-radius: 999px; font-weight: 600; font-size: 16px; letter-spacing: .01em; border: 1px solid var(--line); transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--bone); color: var(--noir); border-color: var(--bone); }
.btn--solid:hover { background: var(--vermilion); border-color: var(--vermilion); color: var(--paper); }
.btn--ghost:hover { border-color: var(--bone); }
.btn .arr { transition: transform .4s var(--ease); }
.btn:hover .arr { transform: translate(3px,-3px); }

/* reveal system: content is visible without JS; JS adds .js to <html> to enable motion */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-mask] { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-mask].in { clip-path: inset(0 0 0 0); }
.js .split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js .split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i) * 60ms + var(--d, 0s)); }
.js .split.in .w > span { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain { animation: none; }
  .js [data-reveal], .js [data-mask], .js .split .w > span { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
}
@font-face { font-family: "Anek Bangla"; src: url(fonts/AnekBangla-bn.woff2) format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0964-0965, U+0980-09FF, U+200C-200D, U+25CC; }
