/* iftyazad.com — editorial system: ink, paper and one accent.
   Layout works without JavaScript; motion is an enhancement and is removed for
   visitors who prefer reduced motion. */

@font-face { font-family: "Anek Latin"; src: url("../fonts/anek-latin-var.woff") format("woff"); font-weight: 300 800; font-stretch: 100% 125%; font-display: swap; }
@font-face { font-family: "Anek Bangla"; src: url("../fonts/anek-bangla-var.woff") format("woff"); font-weight: 400 700; font-display: swap; unicode-range: U+0964-0965, U+0980-09FE, U+200C-200D, U+25CC; }
@font-face { font-family: "Bodoni Moda"; src: url("../fonts/bodoni-moda-var.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bodoni Moda"; src: url("../fonts/bodoni-moda-italic-var.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; src: url("../fonts/geist-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --paper: #f5f1e8;
  --paper-2: #ede7da;
  --card: #fbf9f4;
  --ink: #14171c;
  --ink-2: #1d2229;
  --ink-3: #2a3038;
  --text: #1b1e23;
  --muted: #565b63;
  --rule: #d8d0c0;
  --rule-2: #b9af9b;
  --accent: #9c4f27;
  --accent-deep: #7e3e1c;
  --accent-ink: #e0a07a;
  --accent-wash: #f0e2d6;
  --on-ink: #ece7dc;
  --on-ink-muted: #aab0b8;
  --ink-rule: rgba(236, 231, 220, .16);
  --ok: #2a6a4c;
  --bad: #a3322b;
  --display: "Bodoni Moda", "Didot", "Bodoni 72", "Anek Bangla", Georgia, serif;
  --body: "Geist", "Anek Bangla", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --wrap: 1200px;
  --gut: clamp(20px, 4.4vw, 56px);
  --section: clamp(56px, 8vw, 112px);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
:root[data-theme="mineral"] {
  --accent: #2b5d7d;
  --accent-deep: #1f4860;
  --accent-ink: #9cc3da;
  --accent-wash: #e0e9ef;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1.0625rem/1.62 var(--body); font-feature-settings: "ss01", "cv11"; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-wrap: break-word; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.on-ink :focus-visible, .site-footer :focus-visible { outline-color: var(--accent-ink); }
[hidden] { display: none !important; }
[lang="bn"] { font-family: "Anek Bangla", var(--body); line-height: 1.75; }
html[lang="bn"] body { font-family: "Anek Bangla", var(--body); line-height: 1.8; }
html[lang="bn"] .display, [lang="bn"] .display { font-family: "Anek Bangla", var(--display); font-weight: 600; line-height: 1.25; letter-spacing: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .55); }
.section--rule { border-top: 1px solid var(--rule); }
.section--alt { background: var(--paper-2); }
.on-ink { background: var(--ink); color: var(--on-ink); }
.on-ink .muted, .on-ink .label { color: var(--on-ink-muted); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: .84em; letter-spacing: .01em; }

/* ---------- type ---------- */
.display { font-family: var(--display); font-optical-sizing: auto; font-weight: 500; line-height: 1.04; letter-spacing: -.02em; text-wrap: balance; }
.h-hero { font-size: clamp(3rem, 9.6vw, 7.4rem); font-weight: 680; letter-spacing: -.035em; line-height: .92; }
.h-page { font-size: clamp(2.3rem, 5.6vw, 4.3rem); }
.h-sec { font-size: clamp(1.7rem, 3.2vw, 2.55rem); }
.h-sub { font-family: var(--display); font-weight: 560; font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.2; letter-spacing: -.01em; }
.lead { font-size: clamp(1.12rem, 1.5vw, 1.3rem); line-height: 1.5; max-width: 62ch; text-wrap: pretty; }
.label { font: 500 .72rem/1.3 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.label--accent { color: var(--accent); }
.on-ink .label--accent { color: var(--accent-ink); }
html[lang="bn"] .label { letter-spacing: 0; text-transform: none; font-size: .85rem; font-family: "Anek Bangla", var(--mono); }
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font: 540 1.55rem/1.2 var(--display); letter-spacing: -.015em; margin-top: 1.9em; }
.prose h3 { font: 560 1.2rem/1.25 var(--display); margin-top: 1.6em; }
.prose a, .link { color: var(--accent-deep); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.prose a:hover, .link:hover { text-decoration-color: currentColor; }
.on-ink .link, .on-ink .prose a { color: var(--accent-ink); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .35em; }
.prose blockquote { border-left: 2px solid var(--accent); padding-left: 1em; color: var(--muted); }
.prose pre { background: var(--ink); color: var(--on-ink); padding: 16px; overflow: auto; border-radius: var(--radius); font: .85rem/1.55 var(--mono); }
.prose code { font: .9em var(--mono); background: var(--paper-2); padding: .1em .35em; border-radius: 3px; }
.prose pre code { background: none; padding: 0; }
.prose img { border: 1px solid var(--rule); }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin-block: 2em; }

/* ---------- buttons, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 46px; padding: .62em 1.15em; border: 1px solid var(--text); border-radius: var(--radius); font: 560 .98rem/1.1 var(--body); text-decoration: none; color: var(--text); background: transparent; transition: background-color .18s, color .18s, border-color .18s; }
.btn:hover { background: var(--text); color: var(--paper); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.btn--sm { min-height: 38px; padding: .45em .85em; font-size: .9rem; }
.btn--quiet { border-color: var(--rule-2); }
.on-ink .btn { border-color: var(--on-ink); color: var(--on-ink); }
.on-ink .btn:hover { background: var(--on-ink); color: var(--ink); }
.on-ink .btn--primary { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--ink); }
.on-ink .btn--primary:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn .icon { width: 1.05em; height: 1.05em; flex: none; }
.btn.is-loading { opacity: .6; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon--xs { width: .95em; height: .95em; }
.icon--sm { width: 1.1em; height: 1.1em; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 560; color: var(--accent-deep); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); padding-bottom: 1px; }
.link-arrow:hover { border-bottom-color: currentColor; }
.on-ink .link-arrow { color: var(--accent-ink); }
.chip { display: inline-flex; align-items: center; gap: .4em; padding: .22em .6em; border: 1px solid var(--rule-2); border-radius: 999px; font: 500 .7rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.chip--independent { border-color: var(--ok); color: var(--ok); }
.chip--official { border-color: var(--text); color: var(--text); }
.chip--own { border-color: var(--rule-2); color: var(--muted); }
.chip--observable { border-color: var(--accent); color: var(--accent-deep); }
.chip--company { border-style: dashed; border-color: var(--text); color: var(--text); }
.chip--built { background: var(--text); border-color: var(--text); color: var(--paper); }
.chip--led { border-color: var(--text); color: var(--text); }
.chip--others { border-style: dashed; }
.chip--lang { text-transform: none; letter-spacing: 0; font-family: "Anek Bangla", var(--body); font-size: .78rem; }

/* ---------- header ---------- */
.announce { display: flex; gap: .5em; justify-content: center; align-items: center; padding: 8px var(--gut); background: var(--ink); color: var(--on-ink); font-size: .9rem; text-decoration: none; text-align: center; }
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--rule); }
.site-header__bar { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand__mark { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: var(--ink); flex: none; }
.brand__mark img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.brand__name { font: 540 1.22rem/1 var(--display); letter-spacing: -.02em; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a, .nav summary { display: inline-flex; align-items: center; gap: .3em; padding: 9px 12px; font-size: .95rem; font-weight: 500; text-decoration: none; border-radius: var(--radius); color: var(--text); list-style: none; cursor: pointer; }
.nav summary::-webkit-details-marker { display: none; }
.nav a:hover, .nav summary:hover { background: var(--paper-2); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav__more { position: relative; }
.nav__menu { position: absolute; right: 0; top: calc(100% + 10px); width: min(340px, 86vw); background: var(--card); border: 1px solid var(--rule-2); border-radius: var(--radius); padding: 8px; box-shadow: 0 18px 40px -18px rgba(20, 23, 28, .35); display: grid; }
.nav__menu a { display: grid; grid-template-columns: 1fr; padding: 9px 12px; border-radius: 3px; }
.nav__menu a small { color: var(--muted); font-weight: 400; font-size: .82rem; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-link { font-size: .92rem; padding: 8px 6px; text-decoration: none; color: var(--muted); }
.lang-link:hover { color: var(--text); }
.nav-m { display: none; }
.nav-m > summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid var(--rule-2); border-radius: var(--radius); cursor: pointer; }
.nav-m > summary::-webkit-details-marker { display: none; }
.nav-m[open] > summary { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.nav-m__panel { position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100dvh - 68px); overflow: auto; background: var(--paper); border-bottom: 1px solid var(--rule-2); padding: 8px var(--gut) 28px; box-shadow: 0 30px 40px -30px rgba(20, 23, 28, .4); }
.nav-m__panel a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font: 600 1.3rem/1.2 var(--body); }
.nav-m__panel a small { font: 400 .82rem/1.3 var(--body); color: var(--muted); text-align: right; }
.nav-m__panel a[aria-current="page"] { color: var(--accent-deep); }
.nav-m__panel .nav-m__sub a { font: 500 1rem/1.3 var(--body); padding: 11px 0; }
@media (max-width: 960px) {
  .nav, .header-actions .btn, .header-actions .lang-link { display: none; }
  .nav-m { display: block; }
  .site-header__bar { min-height: 62px; }
}

/* ---------- breadcrumbs ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: .5em; font: 500 .74rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .5em; color: var(--rule-2); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
html[lang="bn"] .crumbs ol { text-transform: none; letter-spacing: 0; }

/* ---------- page head ---------- */
.page-head { padding-block: clamp(36px, 6vw, 76px) clamp(28px, 4.5vw, 56px); border-bottom: 1px solid var(--rule); }
.page-head__grid { display: grid; gap: clamp(24px, 4vw, 56px); align-items: end; }
.page-head .crumbs { margin-bottom: clamp(20px, 3vw, 36px); }
.page-head .label { margin-bottom: 14px; display: block; }
.page-head .lead { margin-top: 20px; }
.page-head__aside { display: grid; gap: 14px; }
@media (min-width: 900px) { .page-head__grid--split { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); } }
.facts-row { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-size: .93rem; color: var(--muted); }
.facts-row li { display: inline-flex; align-items: center; gap: .45em; }
.facts-row b { color: var(--text); font-weight: 600; }

/* ---------- ledger (definition rows) ---------- */
.ledger { border-top: 1px solid var(--text); }
.ledger > div { display: grid; grid-template-columns: minmax(96px, 30%) 1fr; gap: 6px 18px; padding: 12px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.ledger dt { font: 500 .72rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ledger dd { font-size: .98rem; }
.on-ink .ledger { border-top-color: var(--on-ink); }
.on-ink .ledger > div { border-bottom-color: var(--ink-rule); }
.on-ink .ledger dt { color: var(--on-ink-muted); }
html[lang="bn"] .ledger dt { text-transform: none; letter-spacing: 0; font-family: "Anek Bangla", var(--body); font-size: .88rem; }
.rows { border-top: 1px solid var(--text); }
.rows > li { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.rows b { font-weight: 600; }
.rows small, .rows span.sub { display: block; color: var(--muted); font-size: .92rem; }
.rows .mono { color: var(--muted); white-space: nowrap; }

/* ---------- section head ---------- */
.sec-head { display: grid; gap: 14px 40px; margin-bottom: clamp(26px, 4vw, 44px); align-items: end; }
.sec-head p { color: var(--muted); max-width: 56ch; }
.sec-head .label { display: block; margin-bottom: 10px; }
@media (min-width: 860px) { .sec-head { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } .sec-head__aside { justify-self: end; text-align: left; } }
.split { display: grid; gap: clamp(26px, 5vw, 72px); }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); } .split--even { grid-template-columns: 1fr 1fr; } .split--wide { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } }
:where(.case-layout, .lens, .split, .brief, .hero__grid, .contact-layout, .page-head__grid, .article__layout, .sec-head, .grid-2, .grid-3, .grid-4, .resp, .boundary, .footer-cta, .footer-grid, .band, .media-item, .register > li, .readguide, .case-next) > * { min-width: 0; }
.stack > * + * { margin-top: 18px; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: clamp(18px, 2.4vw, 30px); }
@media (min-width: 720px) { .grid-2, .grid-4 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1060px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.panel { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(18px, 2.4vw, 28px); }
.panel > h3, .panel > h2 { font: 600 1.08rem/1.25 var(--body); margin-bottom: 12px; display: flex; gap: .5em; align-items: center; }
.aside-stack { display: grid; gap: 18px; align-content: start; }

/* ---------- plate: figures with a caption strip ---------- */
.plate { position: relative; background: var(--ink); border: 1px solid var(--text); }
.plate img { width: 100%; }
.plate figcaption { display: flex; justify-content: space-between; gap: 14px; padding: 9px 12px; background: var(--card); border-top: 1px solid var(--text); font: 500 .7rem/1.4 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.plate figcaption b { color: var(--text); font-weight: 500; }
.on-ink .plate { border-color: var(--ink-rule); }
.on-ink .plate figcaption { background: var(--ink-2); border-top-color: var(--ink-rule); color: var(--on-ink-muted); }
.on-ink .plate figcaption b { color: var(--on-ink); }

/* Signature 1 · portrait plate: the photograph "develops" from a single-ink
   proof to full colour, once, left to right. Pure CSS; both layers share one file. */
.portrait { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: #2b2c2e; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait { isolation: isolate; }
.portrait__proof { filter: grayscale(1) sepia(.5) saturate(1.5) brightness(.8) contrast(1.12); }
.portrait__tone { display: none; }
.portrait__colour { clip-path: inset(0 0 0 0); }
.portrait__edge { position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: var(--accent-ink); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .js .portrait__colour { animation: develop 1.25s .25s var(--ease) both; }
  .js .portrait__edge { animation: develop-edge 1.25s .25s var(--ease) both; }
}
@keyframes develop { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes develop-edge { 0% { left: 0; opacity: 0; } 8% { opacity: .9; } 92% { opacity: .9; } 100% { left: 100%; opacity: 0; } }

/* ---------- reveal (enhancement only) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0s); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .rule-draw { transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); }
  .js .rule-draw.is-in { transform: none; }
}
.rule-draw { display: block; height: 1px; background: var(--text); }
.on-ink .rule-draw { background: var(--on-ink); }

/* ---------- home ---------- */
.hero { padding-block: clamp(28px, 5vw, 64px) clamp(36px, 6vw, 80px); }
.hero__grid { display: grid; gap: clamp(24px, 4vw, 60px); }
.hero__name { margin: 10px 0 0; }
.hero__name i { font-style: normal; color: var(--accent-ink); }
.hero__lead { margin-top: clamp(18px, 2.4vw, 28px); color: var(--on-ink); max-width: 54ch; }
.hero__actions { margin-top: clamp(22px, 3vw, 34px); }
.hero__roles { margin-top: clamp(26px, 4vw, 44px); }
.hero__plate .portrait--wide { aspect-ratio: 16 / 11; }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.5fr) minmax(280px, .82fr); align-items: end; }
  .hero__plate { grid-column: 2; grid-row: 1; }
  .hero__body { grid-column: 1; grid-row: 1; }
}
@media (max-width: 899px) {
  /* Mobile composition: a wide plate leads, the name sits directly under it. */
  .hero { padding-top: 0; }
  .hero__grid { gap: 22px; }
  .hero__plate { margin-inline: calc(var(--gut) * -1); order: -1; }
  .hero__plate .plate { border-inline: 0; border-top: 0; }
  .hero__roles .ledger > div { grid-template-columns: 1fr; gap: 2px; }
}
.pillars { display: grid; gap: 0; border-top: 1px solid var(--text); }
.pillar { padding: 22px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 8px; align-content: start; }
.pillar p { color: var(--muted); font-size: .98rem; }
.pillar a { text-decoration: none; }
.pillar a:hover h3 { color: var(--accent-deep); }
@media (min-width: 760px) { .pillars { grid-template-columns: repeat(3, 1fr); } .pillar { padding: 24px 26px 26px 0; } .pillar + .pillar { padding-left: 26px; border-left: 1px solid var(--rule); } .pillar:nth-child(3n+1) { padding-left: 0; border-left: 0; } }
.metrics { display: grid; gap: 0; border-top: 1px solid var(--text); }
.metric { padding: 20px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 6px; }
.metric__value { font: 540 clamp(2rem, 4vw, 3rem)/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.metric__label { font-size: .98rem; }
.metric__note { font-size: .86rem; color: var(--muted); }
@media (min-width: 760px) { .metrics { grid-template-columns: repeat(2, 1fr); column-gap: 40px; } }
@media (min-width: 1060px) { .metrics { grid-template-columns: repeat(4, 1fr); } }
.timeline { border-top: 1px solid var(--text); }
.timeline li { display: grid; grid-template-columns: 5.2rem 1fr; gap: 6px 22px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.timeline time, .timeline .yr { font: 500 .86rem/1.5 var(--mono); color: var(--accent-deep); }
.timeline b { font-weight: 600; }
.timeline p { color: var(--muted); font-size: .96rem; grid-column: 2; }
@media (min-width: 860px) { .timeline li { grid-template-columns: 7rem minmax(0, 1fr) minmax(0, 1.4fr); } .timeline p { grid-column: 3; } }
.logo-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.logo-tile { display: flex; align-items: center; justify-content: center; aspect-ratio: 2 / 1; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 10px; overflow: hidden; }
.logo-tile img { max-height: 100%; width: auto; object-fit: contain; }
.logo-tile--dark { background: var(--ink); border-color: var(--ink); }
.logo-tile--square { aspect-ratio: 1; width: 64px; padding: 8px; flex: none; }
.logo-tile.is-mark { font: 600 1rem/1 var(--body); letter-spacing: -.01em; color: var(--text); text-align: center; }

/* ---------- work: brief cards ---------- */
.brief { display: grid; gap: clamp(18px, 3vw, 40px); padding-block: clamp(28px, 4vw, 48px); border-top: 1px solid var(--text); }
.brief__shot { display: block; position: relative; border: 1px solid var(--text); background: var(--ink); overflow: hidden; aspect-ratio: 16 / 10; }
.brief__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .7s var(--ease); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .brief:hover .brief__shot img { transform: scale(1.025); } }
.brief__no { font: 500 .74rem/1 var(--mono); letter-spacing: .08em; color: var(--muted); }
.brief__title { margin: 10px 0 12px; }
.brief__title a { text-decoration: none; }
.brief__title a:hover { color: var(--accent-deep); }
.brief__sum { color: var(--muted); max-width: 60ch; }
.brief .ledger { margin-top: 18px; }
.brief__foot { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 18px; }
@media (min-width: 900px) { .brief { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; } .brief:nth-of-type(even) .brief__media { order: 2; } }
.keyline { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: .9rem; color: var(--muted); }
.readguide { display: grid; gap: 0; border: 1px solid var(--text); background: var(--card); }
.readguide > div { padding: 16px 18px; }
.readguide > div + div { border-top: 1px solid var(--rule); }
.readguide b { display: block; font: 600 1.02rem/1.3 var(--body); margin-bottom: 4px; }
.readguide p { font-size: .93rem; color: var(--muted); }
@media (min-width: 700px) { .readguide { grid-template-columns: 1fr 1fr; } .readguide > div + div { border-top: 0; border-left: 1px solid var(--rule); } }
.register { border-top: 1px solid var(--text); }
.register > li { display: grid; gap: 6px 28px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.register h3 { font: 600 1.08rem/1.3 var(--body); }
.register p { font-size: .94rem; color: var(--muted); }
.register .label { margin-bottom: 4px; display: block; }
@media (min-width: 860px) { .register > li { grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr) minmax(0, 1fr); } }

/* ---------- case study ---------- */
.case-head__shot { margin-top: clamp(26px, 4vw, 44px); }
.case-head__shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.summary30 { border: 1px solid var(--text); background: var(--card); }
.summary30__head { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--text); background: var(--ink); color: var(--on-ink); }
.summary30__head .label { color: var(--on-ink); }
.summary30 dl > div { display: grid; gap: 4px 20px; padding: 14px 16px; border-bottom: 1px solid var(--rule); }
.summary30 dl > div:last-child { border-bottom: 0; }
.summary30 dt { font: 500 .72rem/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-deep); }
@media (min-width: 760px) { .summary30 dl > div { grid-template-columns: 9.5rem 1fr; } }
.case-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
}
.case-toc { font-size: .92rem; }
.case-toc ol { border-top: 1px solid var(--text); counter-reset: toc; }
.case-toc li { border-bottom: 1px solid var(--rule); counter-increment: toc; }
.case-toc a { display: flex; gap: 12px; padding: 9px 0; text-decoration: none; }
.case-toc a::before { content: counter(toc, decimal-leading-zero); font: 500 .74rem/1.9 var(--mono); color: var(--muted); }
.case-toc a:hover, .case-toc a.is-current { color: var(--accent-deep); }
@media (min-width: 1000px) { .case-layout { grid-template-columns: 220px minmax(0, 1fr); } .case-toc { position: sticky; top: 96px; align-self: start; } }
@media (max-width: 999px) { .case-toc ol { display: flex; gap: 0 18px; overflow-x: auto; border-bottom: 1px solid var(--rule); scrollbar-width: thin; } .case-toc li { flex: none; border: 0; white-space: nowrap; } }
.case-sec { padding-block: clamp(30px, 4.5vw, 54px); border-top: 1px solid var(--rule); }
.case-sec:first-child { border-top: 0; padding-top: 0; }
.case-sec > .label { display: block; margin-bottom: 10px; }
.case-sec > h2 { margin-bottom: 18px; }
.case-sec .prose + .plain-list, .case-sec .prose + .resp { margin-top: 22px; }
.plain-list li { position: relative; padding: 9px 0 9px 22px; border-bottom: 1px solid var(--rule); }
.plain-list li::before { content: ""; position: absolute; left: 2px; top: 1.15em; width: 8px; height: 1px; background: var(--accent); }
.resp { display: grid; gap: 16px; }
.resp__col { border: 1px solid var(--rule-2); background: var(--card); padding: 16px 18px; }
.resp__col ul { margin-top: 10px; font-size: .96rem; }
.resp__col li { padding: 7px 0; border-top: 1px solid var(--rule); }
@media (min-width: 820px) { .resp { grid-template-columns: repeat(3, 1fr); } }

/* Signature 2 · system lens: a real screenshot with numbered regions. Each
   region states what the reader sees and what the system does behind it, and
   points at the matching step of the flow below. Without JS the notes are a list. */
.lens { display: grid; gap: 18px; }
.lens__stage { position: relative; border: 1px solid var(--text); background: var(--ink); overflow: hidden; }
.lens__stage img { width: 100%; }
.lens__spot { position: absolute; border: 1.5px solid transparent; border-radius: 3px; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.lens__pin { position: absolute; left: 0; top: 0; transform: translate(-22%, -22%); display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font: 600 .8rem/1 var(--mono); box-shadow: 0 0 0 2px var(--card), 0 2px 10px rgba(0, 0, 0, .35); }
button.lens__spot { cursor: pointer; }
button.lens__spot::after { content: ""; position: absolute; inset: -8px; }
.lens__spot[aria-pressed="true"], .lens__spot.is-on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); box-shadow: 0 0 0 100vmax rgba(20, 23, 28, .38); z-index: 2; }
.lens__spot[aria-pressed="true"] .lens__pin, .lens__spot.is-on .lens__pin { background: var(--ink); }
.lens__notes { counter-reset: note; display: grid; gap: 0; border-top: 1px solid var(--text); }
.lens__note { display: grid; grid-template-columns: 34px 1fr; gap: 4px 12px; padding: 14px 10px 14px 0; border-bottom: 1px solid var(--rule); text-align: left; width: 100%; scroll-margin-top: 110px; }
.lens__note > span:first-child { grid-row: 1 / span 3; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--text); font: 600 .78rem/1 var(--mono); }
.lens__note b { font: 600 1.02rem/1.3 var(--body); }
.lens__note p { font-size: .94rem; color: var(--muted); grid-column: 2; }
.lens__note p strong { color: var(--text); font-weight: 600; }
.lens__note.is-on { background: var(--accent-wash); box-shadow: -10px 0 0 var(--accent-wash); }
.lens__note.is-on > span:first-child { background: var(--accent); border-color: var(--accent); color: #fff; }
.lens__hint { font-size: .86rem; color: var(--muted); }
.no-js .lens__hint { display: none; }
@media (min-width: 1000px) { .lens--side { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: start; } .lens--side > figure { position: sticky; top: 92px; } }
@media (max-width: 640px) { .lens__pin { min-width: 26px; height: 26px; font-size: .72rem; } }

/* Flow: a sequence diagram built from real text. Lanes are columns on wide
   screens; on phones each step carries its lane as a tag and the order is kept. */
.flow { --lanes: 4; border: 1px solid var(--text); background: var(--card); }
.flow__lanes { display: none; }
.flow__steps { counter-reset: step; }
.flow__step { position: relative; padding: 14px 16px 14px 52px; border-bottom: 1px solid var(--rule); scroll-margin-top: 110px; }
.flow__step:last-child { border-bottom: 0; }
.flow__step::before { counter-increment: step; content: counter(step); position: absolute; left: 14px; top: 14px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; background: var(--text); color: var(--paper); font: 600 .76rem/1 var(--mono); }
.flow__step::after { content: ""; position: absolute; left: 26.5px; top: 44px; bottom: -12px; width: 1px; background: var(--rule-2); }
.flow__step:last-child::after { display: none; }
.flow__lane { font: 500 .68rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-deep); }
.flow__step b { display: block; font: 600 1rem/1.3 var(--body); margin: 2px 0 3px; }
.flow__step p { font-size: .92rem; color: var(--muted); }
.flow__data { display: inline-block; margin-top: 6px; font: 500 .72rem/1.5 var(--mono); color: var(--text); background: var(--paper-2); padding: 2px 7px; border-radius: 3px; }
.flow__step.is-on { background: var(--accent-wash); }
.flow__step.is-on::before { background: var(--accent); }
@media (min-width: 900px) {
  .flow__lanes { display: grid; grid-template-columns: repeat(var(--lanes), 1fr); border-bottom: 1px solid var(--text); background: var(--ink); color: var(--on-ink); }
  .flow__lanes span { padding: 9px 14px; font: 500 .7rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
  .flow__lanes span + span { border-left: 1px solid var(--ink-rule); }
  .flow__steps { display: grid; grid-template-columns: repeat(var(--lanes), 1fr); background: linear-gradient(to right, transparent calc(100% - 1px), var(--rule) 0) 0 0 / calc(100% / var(--lanes)) 100%; }
  .flow__step { grid-column: var(--lane); border-bottom: 0; padding: 14px 14px 18px 48px; }
  .flow__step::before { left: 12px; }
  .flow__step::after { display: none; }
  .flow__step .flow__lane { display: none; }
  .flow__row-rule { grid-column: 1 / -1; height: 1px; background: var(--rule); }
}
@media (max-width: 899px) { .flow__row-rule { display: none; } }
.boundary { display: grid; gap: 16px; margin-top: 22px; }
.boundary > div { border: 1px solid var(--rule-2); padding: 16px 18px; background: var(--card); }
.boundary > div:last-child { border-style: dashed; background: transparent; }
.boundary ul { margin-top: 8px; font-size: .95rem; }
.boundary li { padding: 6px 0; border-top: 1px solid var(--rule); }
@media (min-width: 820px) { .boundary { grid-template-columns: 1fr 1fr; } }
.decision { border-top: 1px solid var(--text); padding: 20px 0 6px; }
.decision + .decision { margin-top: 10px; }
.decision h3 { display: flex; gap: 14px; align-items: baseline; margin-bottom: 12px; }
.decision h3 span { font: 500 .78rem/1 var(--mono); color: var(--accent-deep); }
.decision dl { display: grid; gap: 0; }
.decision dl > div { display: grid; gap: 2px 20px; padding: 10px 0; border-top: 1px solid var(--rule); }
.decision dt { font: 500 .72rem/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 760px) { .decision dl > div { grid-template-columns: 8.5rem 1fr; } }
.evidence { border-top: 1px solid var(--text); }
.evidence li { display: grid; gap: 6px 18px; padding: 14px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.evidence a { font-weight: 560; }
.evidence p { font-size: .92rem; color: var(--muted); }
.evidence li > div { min-width: 0; }
.evidence .chip { white-space: normal; line-height: 1.35; text-align: left; max-width: 100%; }
@media (min-width: 760px) { .evidence li { grid-template-columns: 13rem minmax(0, 1fr); } }
.source-key { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .86rem; color: var(--muted); align-items: center; }
.source-key span { display: inline-flex; gap: .5em; align-items: center; }
.case-next { display: grid; gap: 16px; }
.case-next a { display: block; padding: 20px; border: 1px solid var(--text); text-decoration: none; background: var(--card); }
.case-next a:hover { background: var(--ink); color: var(--on-ink); }
.case-next a:hover .label { color: var(--on-ink-muted); }
.case-next b { display: block; font: 540 1.25rem/1.2 var(--display); margin-top: 6px; }
@media (min-width: 760px) { .case-next { grid-template-columns: 1fr 1fr; } }

/* ---------- media ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--text); border-radius: var(--radius); overflow: hidden; }
.seg button { padding: 9px 13px; font-size: .9rem; border-right: 1px solid var(--rule-2); min-height: 42px; }
.seg button:last-child { border-right: 0; }
.seg button small { color: var(--muted); font: 500 .74rem var(--mono); margin-left: .3em; }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--paper); }
.seg button[aria-pressed="true"] small { color: var(--paper); }
.no-js .filters, .no-js .search-field { display: none; }
.search-field { display: flex; align-items: center; gap: 10px; border: 1px solid var(--rule-2); border-radius: var(--radius); padding: 0 12px; background: var(--card); max-width: 420px; }
.search-field input { border: 0; background: none; outline: 0; padding: 11px 0; width: 100%; }
.search-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent); }
.media-list { border-top: 1px solid var(--text); }
.media-item { position: relative; display: grid; grid-template-columns: 1fr; gap: 8px 22px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.media-item__thumb { position: relative; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; border: 1px solid var(--rule-2); }
.media-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-item__play { position: absolute; left: 8px; bottom: 8px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--paper); color: var(--text); }
.media-item__meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: .85rem; color: var(--muted); }
.media-item h3 { font: 560 1.14rem/1.3 var(--display); letter-spacing: -.005em; margin-top: 6px; }
.media-item h3 a { text-decoration: none; }
.media-item h3 a::after { content: ""; position: absolute; inset: 0; }
.media-item:hover h3 a { color: var(--accent-deep); }
.media-item p, .media-item blockquote { font-size: .95rem; color: var(--muted); margin-top: 6px; max-width: 70ch; }
.media-item blockquote { border-left: 2px solid var(--accent); padding-left: 12px; }
.media-item__go { font-size: .86rem; color: var(--accent-deep); font-weight: 560; margin-top: 8px; display: inline-flex; gap: .4em; align-items: center; }
@media (min-width: 720px) { .media-item { grid-template-columns: 200px 1fr; } .media-item--text { grid-template-columns: 200px 1fr; } .media-item__pub { font: 560 1.02rem/1.25 var(--display); color: var(--text); } }
.media-item__pub { font: 600 .98rem/1.25 var(--body); }
.empty-state { display: none; padding: 30px 0; color: var(--muted); }
.empty-state.is-visible { display: block; }
.empty-state b { display: block; color: var(--text); }
.modal { position: fixed; inset: 0; z-index: 80; display: none; place-items: center; padding: 20px; }
.modal.is-open { display: grid; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(20, 23, 28, .86); }
.modal__box { position: relative; width: min(960px, 100%); }
.modal__frame { aspect-ratio: 16 / 9; background: #000; }
.modal__frame iframe { width: 100%; height: 100%; border: 0; }
.modal__close, .modal__ext { position: absolute; top: -46px; color: var(--on-ink); display: inline-flex; gap: .5em; align-items: center; min-height: 40px; text-decoration: none; font-size: .92rem; }
.modal__close { right: 0; }
.modal__ext { left: 0; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; }
.field label, .field-label { font-weight: 560; font-size: .95rem; }
.field label small { color: var(--muted); font-weight: 400; margin-left: .4em; }
.input, .textarea { width: 100%; border: 1px solid var(--rule-2); border-radius: var(--radius); background: #fff; padding: 12px 14px; min-height: 48px; }
.textarea { min-height: 170px; resize: vertical; line-height: 1.5; }
.input:focus, .textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent); }
.field__error { color: var(--bad); font-size: .88rem; min-height: 0; }
.has-error .input, .has-error .textarea { border-color: var(--bad); }
.field__count { font: 500 .74rem var(--mono); color: var(--muted); justify-self: end; }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 680px) { .form-grid { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: 1 / -1; } }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topics input { position: absolute; opacity: 0; pointer-events: none; }
.topics label { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 13px; border: 1px solid var(--rule-2); border-radius: var(--radius); font-weight: 500; font-size: .93rem; cursor: pointer; background: var(--card); }
.topics input:checked + label { background: var(--text); border-color: var(--text); color: var(--paper); }
.topics input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 3px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; align-items: center; margin-top: 22px; }
.form-foot p { font-size: .9rem; color: var(--muted); max-width: 44ch; }
.form-alert { display: none; border: 1px solid var(--bad); background: #fbeceb; color: #7c241f; padding: 12px 14px; border-radius: var(--radius); margin-bottom: 16px; font-size: .95rem; }
.form-alert.is-visible { display: block; }
.form-alert--ok { border-color: var(--ok); background: #e9f3ee; color: #1d4f38; }
.success { display: none; text-align: left; }
.success.is-visible { display: block; }
.ticket-id { display: inline-flex; align-items: center; gap: 12px; margin: 16px 0; padding: 10px 14px; border: 1px solid var(--text); font: 600 1.2rem var(--mono); background: var(--card); }
.copy-btn { display: inline-flex; align-items: center; gap: .4em; font: 500 .8rem var(--body); padding: 6px 10px; border: 1px solid var(--rule-2); border-radius: var(--radius); min-height: 34px; }
.copy-btn:hover { background: var(--text); color: var(--paper); border-color: var(--text); }
.no-js .copy-btn, .no-js [data-print] { display: none; }
.channel { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--rule); text-decoration: none; }
.channel small { display: block; color: var(--muted); font-size: .82rem; }
.channel b { font-weight: 560; overflow-wrap: anywhere; }
.channel:hover b { color: var(--accent-deep); }
.next-steps { counter-reset: s; }
.next-steps li { counter-increment: s; position: relative; padding: 8px 0 8px 30px; font-size: .95rem; border-top: 1px solid var(--rule); }
.next-steps li::before { content: counter(s); position: absolute; left: 0; top: 9px; font: 600 .78rem var(--mono); color: var(--accent-deep); }
.contact-layout { display: grid; gap: clamp(24px, 4vw, 48px); }
@media (min-width: 980px) { .contact-layout { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); } }
.subscribe__row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.subscribe__row input[type="email"] { flex: 1 1 220px; border: 1px solid var(--rule-2); border-radius: var(--radius); padding: 11px 14px; background: #fff; min-height: 46px; }
.subscribe__note { font-size: .86rem; color: var(--muted); margin-top: 10px; }
.band { display: grid; gap: 14px 30px; align-items: center; border: 1px solid var(--rule-2); background: var(--card); padding: clamp(18px, 2.6vw, 28px); }
.band h2 { font: 540 1.3rem/1.2 var(--display); }
.band p { color: var(--muted); font-size: .97rem; }
@media (min-width: 820px) { .band { grid-template-columns: 1fr auto; } }
.follow__avatar { display: none; }

/* ---------- ticket ---------- */
.ticket-shell { max-width: 780px; margin-inline: auto; }
.ticket-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; padding-bottom: 18px; border-bottom: 1px solid var(--text); }
.ticket-head h1 { font: 540 clamp(1.4rem, 3vw, 2rem)/1.2 var(--display); }
.status { display: inline-flex; padding: .3em .7em; border: 1px solid var(--text); border-radius: 999px; font: 500 .72rem var(--mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.status--open { background: var(--accent); border-color: var(--accent); color: #fff; }
.status--closed { color: var(--muted); border-color: var(--rule-2); }
.thread { display: grid; gap: 14px; margin-block: 24px; }
.bubble { border: 1px solid var(--rule-2); background: var(--card); padding: 14px 16px; max-width: 92%; }
.bubble--admin { justify-self: end; border-color: var(--text); background: #fff; }
.bubble__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: .84rem; color: var(--muted); margin-bottom: 6px; }
.bubble__meta img { width: 24px; height: 24px; border-radius: 50%; }
.bubble__meta b { color: var(--text); }
.bubble__body { white-space: pre-wrap; overflow-wrap: anywhere; }
.composer__foot { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-top: 12px; }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--text); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__item summary { display: flex; justify-content: space-between; gap: 18px; padding: 16px 0; cursor: pointer; font: 600 1.05rem/1.35 var(--body); list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__toggle { flex: none; width: 14px; height: 14px; margin-top: .3em; position: relative; }
.faq__toggle::before, .faq__toggle::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; }
.faq__toggle::after { transform: rotate(90deg); transition: transform .2s; }
.faq__item[open] .faq__toggle::after { transform: none; }
.faq__a { padding: 0 0 18px; color: var(--muted); max-width: 70ch; }

/* ---------- article ---------- */
.byline { display: flex; gap: 12px; align-items: center; margin-top: 22px; font-size: .95rem; }
.byline img { width: 44px; height: 44px; border-radius: 50%; }
.byline small { display: block; color: var(--muted); }
.article__layout { display: grid; gap: 40px; }
@media (min-width: 1000px) { .article__layout { grid-template-columns: minmax(0, 1fr) 240px; } .article__aside { position: sticky; top: 96px; align-self: start; } }
.toc p { font: 500 .72rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.toc li a { display: block; padding: 6px 0; border-top: 1px solid var(--rule); text-decoration: none; font-size: .93rem; }
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; }
.share__label { font: 500 .72rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.share__btn { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--rule-2); border-radius: var(--radius); }
.share__btn:hover { background: var(--text); color: var(--paper); }
.post-list { border-top: 1px solid var(--text); }
.post-list article { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.post-list h2, .post-list h3 { font: 540 1.3rem/1.25 var(--display); margin: 6px 0; }
.post-list h2 a, .post-list h3 a { text-decoration: none; }
.post-list h2 a:hover, .post-list h3 a:hover { color: var(--accent-deep); }
.post-list p { color: var(--muted); max-width: 70ch; }

/* ---------- misc ---------- */
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--ink-rule); border-radius: var(--radius); }
.socials a:hover { background: var(--on-ink); color: var(--ink); }
.social-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.social-card { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--rule-2); background: var(--card); text-decoration: none; border-radius: var(--radius); }
.social-card:hover { border-color: var(--text); }
.social-card small { display: block; color: var(--muted); font-size: .84rem; overflow-wrap: anywhere; }
.notfound { min-height: 56vh; display: grid; place-items: center; text-align: center; padding: var(--section) var(--gut); }
.notfound__code { font: 500 clamp(4.5rem, 16vw, 10rem)/.9 var(--display); letter-spacing: -.04em; color: var(--rule-2); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: var(--radius); font-size: .92rem; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 90; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.wa { position: fixed; left: 18px; bottom: 18px; z-index: 30; }
.wa__launcher { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--rule-2); font-size: .9rem; font-weight: 560; box-shadow: 0 8px 22px -12px rgba(20, 23, 28, .5); }
.wa__panel { display: none; position: absolute; left: 0; bottom: 56px; width: min(320px, calc(100vw - 36px)); background: var(--card); border: 1px solid var(--text); border-radius: var(--radius); padding: 16px; box-shadow: 0 18px 40px -18px rgba(20, 23, 28, .5); }
.wa.is-open .wa__panel { display: block; }
.wa__head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.wa__head img { width: 40px; height: 40px; border-radius: 50%; }
.wa__head small { display: block; color: var(--muted); font-size: .82rem; }
.wa__close { margin-left: auto; width: 36px; height: 36px; display: grid; place-items: center; }
.wa__msg { margin-bottom: 12px; }
.wa__note { font-size: .8rem; color: var(--muted); margin-top: 8px; }
.no-js .wa { display: none; }
@media print { .wa, .toast { display: none !important; } }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--on-ink); padding-block: clamp(44px, 6vw, 80px) 28px; margin-top: var(--section); }
.footer-cta { display: grid; gap: 18px 40px; padding-bottom: clamp(32px, 5vw, 56px); margin-bottom: clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--ink-rule); align-items: end; }
.footer-cta p { color: var(--on-ink-muted); max-width: 50ch; margin-top: 12px; }
@media (min-width: 860px) { .footer-cta { grid-template-columns: 1fr auto; } }
.footer-grid { display: grid; gap: 30px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer-col h2 { font: 500 .72rem var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--on-ink-muted); margin-bottom: 12px; }
.footer-col a { display: block; padding: 5px 0; text-decoration: none; color: var(--on-ink); font-size: .96rem; }
.footer-col a:hover { color: var(--accent-ink); }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 860px) { .footer-brand { grid-column: auto; } }
.footer-brand p { color: var(--on-ink-muted); margin-top: 10px; max-width: 34ch; font-size: .95rem; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--ink-rule); font-size: .85rem; color: var(--on-ink-muted); }
.footer-bottom a { color: inherit; text-decoration: none; margin-left: 16px; }
.footer-bottom nav a:first-child { margin-left: 0; }
.footer-bottom a:hover { color: var(--on-ink); }

/* ---------- page transitions (same-origin navigations, where supported) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
  ::view-transition-group(*) { animation-duration: .42s; animation-timing-function: var(--ease); }
}

/* ---------- print ---------- */
@media print {
  :root { --paper: #fff; --card: #fff; --paper-2: #fff; }
  body { font-size: 10.5pt; }
  .site-header, .site-footer, .nav-m, .filters, .modal, .case-toc, .lens__hint, .btn, .case-next, .skip-link, .band { display: none !important; }
  .section, .case-sec { padding-block: 14pt; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #444; word-break: break-all; }
  .lens__spot { box-shadow: none !important; }
  .brief, .decision, .flow__step, .lens__note, .evidence li { break-inside: avoid; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* late additions */
@media (max-width: 899px) { .hero__plate .portrait { aspect-ratio: 16 / 11; } }
.kit-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.bio-card { border-top: 1px solid var(--text); padding: 18px 0 26px; }
.bio-card__head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 12px; }
.bio-card__head h3 { font: 600 1.1rem/1.3 var(--body); }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.dl-card { border: 1px solid var(--rule-2); background: var(--card); }
.dl-card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--ink); }
.dl-card div { padding: 10px 12px; font-size: .86rem; }
.dl-card a { font-weight: 560; }
.dl-card small { display: block; color: var(--muted); }

/* Language links use the system Bangla font so English pages do not download the Bangla webfont. */
.bn-sys, .nav-m__panel a.bn-sys { font-family: "Nirmala UI", "Noto Sans Bengali", "Kohinoor Bangla", "Bangla Sangam MN", system-ui, sans-serif !important; font-weight: 500; }
@media (max-width: 700px) { .wa__launcher span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .wa__launcher { width: 46px; padding: 0; justify-content: center; } .wa { left: 12px; bottom: 12px; } }

/* =====================================================================
   Motion layer (3.6). Static layout is the default; every effect below
   needs JS (.js) and a visitor who has not asked for reduced motion.
   ===================================================================== */

/* ---------- scroll progress ---------- */

/* ---------- headings: words rise from a mask ---------- */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w__i { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .split-load .w__i { animation: rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 80ms); }
  .js .split-view .w__i { transform: translateY(105%); transition: transform .85s var(--ease); transition-delay: calc(var(--i, 0) * 55ms); }
  .js .split-view.is-in .w__i { transform: none; }
}
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }

/* ---------- generic reveal (classes added by JS) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
  .js .rv.is-in { opacity: 1; transform: none; }
  .js .rv-img { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease); transition-delay: var(--d, 0s); }
  .js .rv-img img { transform: scale(1.12); transition: transform 1.4s var(--ease); transition-delay: var(--d, 0s); }
  .js .rv-img.is-in { clip-path: inset(0 0 0 0); }
  .js .rv-img.is-in img { transform: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero > .container { position: relative; z-index: 1; }
.hero__terrain { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0; transition: opacity 1.6s ease; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 45%, #000 100%); mask-image: linear-gradient(to bottom, transparent 0%, #000 45%, #000 100%); }
.hero__terrain.is-on { opacity: .9; }
.hero__name .w:last-child .w__i { color: var(--accent-ink); }
@media (prefers-reduced-motion: no-preference) { .hero__name .w:last-child .w__i { animation: pop .7s cubic-bezier(.3, 1.6, .5, 1) .55s both; } }
@keyframes pop { from { transform: translateY(105%) scale(.4); } to { transform: none; } }
.hero__rotator { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 0 .32em; align-items: flex-start; font: 560 clamp(1.25rem, 2.3vw, 1.75rem)/1.25 var(--display); letter-spacing: -.01em; color: var(--on-ink-muted); }
.rot { position: relative; display: inline-grid; overflow: hidden; line-height: 1.25; padding-bottom: 5px; color: var(--accent-ink); }
.rot__w { grid-area: 1 / 1; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .rot__w.is-out { animation: rot-out .45s var(--ease) both; }
  .rot__w.is-in { animation: rot-in .55s var(--ease) both; }
}
@keyframes rot-out { to { transform: translateY(-110%); opacity: 0; } }
@keyframes rot-in { from { transform: translateY(110%); opacity: 0; } to { transform: none; opacity: 1; } }
.rot::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent-ink); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.no-js .rot::after { display: none; }

/* ---------- 3D tilt (pointer devices) ---------- */
[data-tilt] { transform-style: preserve-3d; }
.js [data-tilt].tilt-on { transition: transform .5s var(--ease); }
.js [data-tilt].tilt-live { transition: transform .08s linear; }
.tilt-glare { position: absolute; inset: 0; pointer-events: none; z-index: 3; opacity: 0; transition: opacity .3s; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .28), transparent 55%); mix-blend-mode: soft-light; }
.tilt-live .tilt-glare { opacity: 1; }

/* ---------- magnetic buttons ---------- */
.js [data-magnetic] { transition: transform .35s var(--ease), background-color .18s, color .18s, border-color .18s; }

/* ---------- ticker ---------- */
.ticker { overflow: hidden; border-block: 1px solid var(--text); background: var(--paper); padding-block: 14px; }
.ticker__track { display: flex; width: max-content; }
.ticker__list { display: flex; flex: none; }
.ticker__list li { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font: 560 clamp(1.1rem, 2.2vw, 1.6rem)/1.2 var(--display); letter-spacing: -.01em; white-space: nowrap; }
.ticker__list li::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
@media (prefers-reduced-motion: no-preference) { .js .ticker__track { animation: ticker 38s linear infinite; } .ticker:hover .ticker__track { animation-play-state: paused; } }
@media (prefers-reduced-motion: reduce) { .ticker__track { flex-wrap: wrap; width: auto; } .ticker__list[aria-hidden="true"] { display: none; } .ticker__list { flex-wrap: wrap; } }
.no-js .ticker__track { flex-wrap: wrap; width: auto; }
.no-js .ticker__list[aria-hidden="true"] { display: none; }
.no-js .ticker__list { flex-wrap: wrap; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- work deck: grid by default, pinned 3D carousel when JS enables it ---------- */
.deck__item { position: relative; }
.deck__thumb { margin-bottom: 16px; }
.deck__title { font: 540 1.3rem/1.2 var(--display); margin: 8px 0; }
.deck__title a { text-decoration: none; }
.deck__title a:hover { color: var(--accent-deep); }
.deck__sum { display: none; }
.deck__go { margin-top: 10px; }
.deck__scene { display: none; }
.deck.is-deck { height: calc(var(--n) * 78vh + 22vh); }
.deck.is-deck .deck__stage { position: sticky; top: 68px; height: calc(100vh - 68px); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: center; }
.deck.is-deck .deck__list { display: block; position: relative; height: 100%; }
.deck.is-deck .deck__item { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(calc(-50% + 30px)); opacity: 0; pointer-events: none; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.deck.is-deck .deck__item.is-active { opacity: 1; transform: translateY(-50%); pointer-events: auto; }
.deck.is-deck .deck__thumb { display: none; }
.deck.is-deck .deck__sum { display: block; font-size: 1.05rem; margin-bottom: 10px; max-width: 46ch; }
.deck.is-deck .deck__title { font-size: clamp(1.8rem, 3.2vw, 2.7rem); line-height: 1.05; letter-spacing: -.02em; margin: 12px 0 14px; }
.work-deck { overflow-x: clip; }
.deck.is-deck .deck__scene { display: block; position: relative; height: min(70vh, 640px); perspective: 1400px; perspective-origin: 50% 40%; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); }
.deck__ring { position: absolute; inset: 0; transform-style: preserve-3d; }
.deck__card { position: absolute; left: 12%; right: 12%; top: 50%; aspect-ratio: 16 / 10; margin-top: -29%; border: 1px solid var(--text); background: var(--ink); box-shadow: 0 40px 70px -40px rgba(20, 23, 28, .55); backface-visibility: hidden; will-change: transform, opacity; overflow: hidden; }
.deck__card img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.deck__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255, 255, 255, .18), transparent 40%); pointer-events: none; }
.deck__dots { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; gap: 8px; }
.deck__dots span { width: 26px; height: 3px; background: var(--rule-2); transition: background .3s, width .3s; }
.deck__dots span.is-on { background: var(--accent); width: 44px; }

/* ---------- case study: header screenshot flattens as it scrolls in ---------- */
.case-head__shot { transform-origin: 50% 0; }

/* ---------- reduced motion: hard stop ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero__terrain { display: none; }
}
@media print {
  .hero__terrain, .ticker, .deck__scene { display: none !important; }
  .rv, .rv-img { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .w__i { transform: none !important; animation: none !important; }
}

/* ticker wraps as a static list when it does not scroll */
@media (prefers-reduced-motion: reduce) { .ticker__track, .ticker__list { flex: 1 1 auto; flex-wrap: wrap; row-gap: 6px; } .ticker { padding-inline: var(--gut); } }
.no-js .ticker__track, .no-js .ticker__list { flex: 1 1 auto; flex-wrap: wrap; row-gap: 6px; }
.no-js .ticker { padding-inline: var(--gut); }
