/* HSB — ledger layout (v1) in a warm palette: cream paper, aubergine ink, coral actions,
   sunflower highlights, sky accents. Ruled-paper grounds and mono column labels stay. */
:root {
  --bg: #F9F6F3;
  --surface: #FFFFFF;
  --sand: #F3EDE9;
  --ink: #1B1624;
  --muted: #6B6772;
  --line: #E6DED8;
  --rule: rgba(230, 222, 216, 0.75);
  --accent: #1A7AA0;          /* sky, deepened for text */
  --sky: #5DCDF1;
  --coral: #FD976D;
  --sun: #FDD46B;
  --sun-soft: rgba(253, 212, 107, 0.75);
  --deep: #1B1624;
  --deep-fg: #F9F6F3;
  --deep-muted: #B9B4BF;
  --deep-line: rgba(249, 246, 243, 0.14);
  --btn-bg: #FD976D;
  --btn-fg: #1B1624;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 14px;
  --wrap: 1180px;
}
/* Light theme only: the site keeps its cream colours even when the device is in dark mode. */
:root { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 50; background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; margin: 0; color: var(--ink); }
h1 { font-size: clamp(36px, 6vw, 68px); }
h2 { font-size: clamp(28px, 3.6vw, 44px); }
h3 { font-size: 21px; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .wrap { padding-left: max(28px, env(safe-area-inset-left, 0px)); padding-right: max(28px, env(safe-area-inset-right, 0px)); } }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.lede { font-size: 18px; color: var(--muted); max-width: 58ch; }
.mark { background: linear-gradient(transparent 60%, var(--sun-soft) 60%); padding-inline: 2px; }
.ruled { background-image: repeating-linear-gradient(transparent 0 39px, var(--rule) 39px 40px); }
.stack { display: grid; gap: 16px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 12px 22px; font: 600 15px var(--body); background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid transparent; text-decoration: none; cursor: pointer; transition: transform .15s, filter .15s; }
.btn:hover { filter: brightness(1.04); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--surface); }
.btn.small { padding: 9px 16px; font-size: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.textlink { font-weight: 600; color: var(--ink); text-decoration: none; background: linear-gradient(transparent 62%, var(--sun-soft) 62%); padding: 0 2px; }
.textlink:hover { color: var(--accent); }

/* Header */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-mark { height: 40px; padding: 4px 6px; border-radius: 8px; background: #fff; border: 1px solid rgba(27,22,36,.08); display: grid; place-items: center; flex: none; }
.brand-mark img { height: 30px; width: auto; display: block; }
.brand-name { font: 700 15px/1.15 var(--display); letter-spacing: -0.01em; }
.brand-sub { display: block; font: 500 10px/1.3 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 500; padding-block: 4px; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--coral); }
.nav a.btn { color: var(--btn-fg); border-bottom: 1.5px solid transparent; padding: 9px 16px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font: 600 14px var(--body); color: var(--ink); cursor: pointer; }
@media (max-width: 1020px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; justify-content: center; border-bottom: 0; }
}

/* Sections */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section.tight { padding-block: clamp(40px, 6vw, 64px); }
.section.alt { background: var(--sand); }
.section.deep { background: var(--deep); color: var(--deep-fg); }
.section.deep h2, .section.deep h3 { color: var(--deep-fg); }
.section.deep .eyebrow, .section.deep .lede, .section.deep .muted { color: var(--deep-muted); }
.section.deep .textlink { color: var(--deep-fg); background: linear-gradient(transparent 62%, rgba(253, 212, 107, 0.35) 62%); }
.sec-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 760px; }
.sec-head.split { max-width: none; grid-template-columns: 1fr auto; align-items: end; }
@media (max-width: 720px) { .sec-head.split { grid-template-columns: 1fr; } }

/* Hero */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 { margin-block: 18px 22px; }
.hero .row { margin-top: 28px; }
.frame { position: relative; }
.frame img { width: 100%; border-radius: 22px; aspect-ratio: 4/3; object-fit: cover; position: relative; z-index: 1; }
.frame::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: 22px; background: var(--sun); }
.frame::after { content: ""; position: absolute; width: 76px; height: 76px; border-radius: 50%; background: var(--sky); top: -22px; left: -22px; }
.frame figcaption { position: absolute; z-index: 2; left: 16px; bottom: 16px; background: var(--surface); color: var(--ink); padding: 10px 16px; border-radius: 12px; font-size: 13px; line-height: 1.35; box-shadow: 0 8px 24px rgba(27, 22, 36, .14); max-width: calc(100% - 32px); }
.frame figcaption strong { display: block; font: 700 22px/1 var(--display); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .frame::before { inset: 12px -10px -12px 12px; } .frame::after { width: 52px; height: 52px; top: -12px; left: -10px; } }
.page-hero { padding-block: clamp(40px, 6vw, 72px) clamp(40px, 6vw, 64px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(34px, 5vw, 56px); margin-block: 14px 16px; }
.page-hero .hero-grid { grid-template-columns: 1.2fr 0.8fr; }
@media (max-width: 860px) { .page-hero .hero-grid { grid-template-columns: 1fr; } }
.crumbs { font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* Ledger stats */
.ledger { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.ledger > div { padding: 18px 16px 18px 0; border-right: 1px solid var(--line); min-width: 0; }
.ledger > div + div { padding-left: 16px; }
.ledger > div:last-child { border-right: 0; }
.ledger b { display: block; font: 700 clamp(26px, 3vw, 36px)/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.ledger span { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.4; }
@media (max-width: 900px) { .ledger { grid-template-columns: repeat(3, 1fr); } .ledger > div:nth-child(3) { border-right: 0; } .ledger > div:nth-child(4) { padding-left: 0; } .ledger > div:nth-child(-n+3) { border-bottom: 1px solid var(--line); } }
@media (max-width: 520px) { .ledger { grid-template-columns: repeat(2, 1fr); } .ledger > div { border-right: 0 !important; padding-left: 0 !important; border-bottom: 1px solid var(--line); } .ledger > div:nth-child(odd) { border-right: 1px solid var(--line) !important; } .ledger > div:nth-child(even) { padding-left: 14px !important; } }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 600 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--sand); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.mono, .mono { font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.status { display: inline-flex; align-items: center; gap: 6px; font: 600 12px var(--mono); letter-spacing: .04em; white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2E9E6A; }
.status.review::before { background: var(--coral); }

/* Cards & grids */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
.grid > * { min-width: 0; }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card .pic { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card .body { padding: 20px 22px 22px; display: grid; gap: 10px; align-content: start; flex: 1; }
.card .code { font: 600 11.5px var(--mono); letter-spacing: .12em; color: var(--accent); }
.card p { color: var(--muted); font-size: 15px; }
a.card { text-decoration: none; color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; }
a.card:hover { border-color: var(--coral); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(27, 22, 36, .08); }
.tile { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; display: block; color: #fff; text-decoration: none; background: #1B1624; }
.tile img { width: 100%; height: 100%; object-fit: cover; opacity: .62; transition: opacity .2s, transform .4s; }
.tile:hover img { opacity: .48; transform: scale(1.03); }
.tile::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70%; background: linear-gradient(to bottom, rgba(27,22,36,0), rgba(27,22,36,.88)); pointer-events: none; }
.tile > span { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 16px; font: 700 19px/1.2 var(--display); letter-spacing: -0.01em; text-wrap: balance; }
.tile small { display: block; font: 500 12px/1.4 var(--body); opacity: .9; margin-top: 4px; }

.reasons { counter-reset: r; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.reasons > div { padding: 20px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 44px 1fr; gap: 4px 14px; }
.reasons > div::before { counter-increment: r; content: counter(r, decimal-leading-zero); font: 600 13px var(--mono); color: var(--sun); grid-row: span 2; padding-top: 4px; }
.reasons h3 { font-size: 18px; }
.reasons p { color: var(--muted); font-size: 15px; grid-column: 2; }
.section.deep .reasons > div { border-color: var(--deep-line); }
.section.deep .reasons p { color: var(--deep-muted); }
@media (max-width: 720px) { .reasons { grid-template-columns: 1fr; } }

/* Partners */
.person { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.person .ph { aspect-ratio: 4/5; background: linear-gradient(160deg, #2C2338, #1B1624); display: grid; place-items: center; }
.person .ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.person .ph .initials { font: 700 56px var(--display); color: #FDD46B; letter-spacing: -0.02em; }
.person .body { padding: 18px 20px 20px; display: grid; gap: 6px; }
.person .role { font: 600 11.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.person p { font-size: 14.5px; color: var(--muted); }

.profile { display: grid; grid-template-columns: 280px 1fr; gap: clamp(24px, 4vw, 56px); padding-block: 48px; border-top: 1px solid var(--line); }
.profile:first-of-type { border-top: 0; padding-top: 0; }
.profile > * { min-width: 0; }
.profile aside { display: grid; gap: 14px; align-content: start; position: sticky; top: 90px; }
.profile aside .person { max-width: 280px; }
.profile dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; margin: 0; font-size: 15px; }
.profile dt { font: 600 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.profile dd { margin: 0; }
.profile h3.sub { font: 600 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 28px 0 10px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { padding-left: 22px; position: relative; color: var(--ink); font-size: 15px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--sun); }
@media (max-width: 820px) { .profile { grid-template-columns: 1fr; } .profile aside { position: static; } .profile dl { grid-template-columns: 1fr; gap: 2px; } .profile dd { margin-bottom: 10px; } }

/* Affilica band */
.band-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.band-grid > * { min-width: 0; }
.figs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--deep-line); }
.figs div { padding: 18px 12px 0 0; }
.figs b { display: block; font: 700 32px/1 var(--display); color: var(--sun); font-variant-numeric: tabular-nums; }
.figs span { font-size: 13px; color: var(--deep-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 500 13px var(--body); padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); cursor: default; }
.section.deep .chip { background: transparent; border-color: var(--deep-line); color: var(--deep-fg); }
button.chip { cursor: pointer; }
button.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
@media (max-width: 860px) { .band-grid { grid-template-columns: 1fr; } }

/* Client wall */
.wall { columns: 3 260px; column-gap: 32px; }
.wall div { break-inside: avoid; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; display: flex; justify-content: space-between; gap: 12px; }
.wall div span:last-child { font: 500 12px var(--mono); color: var(--muted); white-space: nowrap; }
details.group { border-top: 1px solid var(--line); }
details.group summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; font: 600 16px var(--display); }
details.group summary::-webkit-details-marker { display: none; }
details.group summary::after { content: "+"; font: 400 22px var(--mono); color: var(--muted); }
details.group[open] summary::after { content: "\2212"; }
details.group summary .cnt { margin-left: auto; font: 500 13px var(--mono); color: var(--muted); }
details.group ul { columns: 3 240px; column-gap: 28px; margin: 0 0 20px; padding: 0; list-style: none; }
details.group li { break-inside: avoid; padding: 5px 0; font-size: 14px; color: var(--muted); border-bottom: 1px dashed var(--line); }
.tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 20px; }
.search { flex: 1 1 260px; max-width: 420px; padding: 11px 16px; border: 1px solid var(--line); border-radius: 999px; font: 400 15px var(--body); background: var(--surface); color: var(--ink); }

/* Forms */
.form { display: grid; gap: 14px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form .two { grid-template-columns: 1fr; } }
label { display: grid; gap: 6px; font: 600 13px var(--body); color: var(--ink); }
input, select, textarea { padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; font: 400 15px var(--body); background: var(--surface); color: var(--ink); width: 100%; }
textarea { min-height: 120px; resize: vertical; }
.note { font-size: 13.5px; color: var(--muted); }
.copy { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.copy button { font: 600 12px var(--mono); border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 3px 10px; cursor: pointer; }

/* Contact panel */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 64px); }
.contact-grid > * { min-width: 0; }
.kv { display: grid; gap: 22px; }
.kv div { display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.kv b { font: 600 11.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.kv span, .kv a { font-size: 16px; color: var(--ink); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Insights */
.post-card .meta { font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.post-card h3 { font-size: 19px; }
.feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; }
.feature .pic { aspect-ratio: auto; height: 100%; min-height: 260px; }
.feature .body { padding: clamp(22px, 3vw, 40px); align-content: center; }
.feature h3 { font-size: clamp(22px, 2.4vw, 30px); }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; } .feature .pic { min-height: 0; aspect-ratio: 16/10; } }
.article-head { padding-block: clamp(36px, 6vw, 64px) 32px; }
.article-head h1 { font-size: clamp(30px, 4.6vw, 52px); max-width: 22ch; margin-block: 14px 18px; }
.article-cover { border-radius: 22px; aspect-ratio: 21/9; object-fit: cover; width: 100%; }
.article-layout { display: grid; grid-template-columns: minmax(0, 720px) 280px; gap: 56px; justify-content: space-between; padding-block: 40px 80px; }
.article-layout aside { display: grid; gap: 20px; align-content: start; position: sticky; top: 90px; }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } .article-layout aside { position: static; } }
.prose { font-size: 17px; line-height: 1.75; min-width: 0; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: clamp(24px, 2.6vw, 30px); margin-top: 1.8em; }
.prose h3 { font-size: 20px; margin-top: 1.5em; }
.prose h4 { font-size: 17px; margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--coral); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }
.prose blockquote { margin: 1.4em 0; padding: 12px 18px; border-radius: 12px; background: var(--sand); color: var(--ink); }
.prose table { font-size: 15px; }
.prose .table-wrap { margin-block: 1.4em; }
.prose a { color: var(--accent); }
.prose figure { margin: 0; }
.aside-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 20px; display: grid; gap: 12px; }
.aside-card h3 { font-size: 18px; }
.aside-card .btn { justify-self: start; }
.toc a { display: block; font-size: 14px; color: var(--muted); text-decoration: none; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.toc a:hover { color: var(--ink); }

/* Service detail */
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: 56px; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.svc > * { min-width: 0; }
.svc:nth-of-type(even) .svc-pics { order: 2; }
.svc-pics { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; align-items: end; }
.svc-pics img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.svc-pics img + img { aspect-ratio: 3/4; }
.svc .code { font: 600 12px var(--mono); letter-spacing: .12em; color: var(--accent); }
.svc h2 { font-size: clamp(26px, 3vw, 36px); margin-block: 8px 14px; }
.svc p { color: var(--muted); }
.svc .ticks { margin-top: 18px; }
@media (max-width: 860px) { .svc { grid-template-columns: 1fr; } .svc:nth-of-type(even) .svc-pics { order: 0; } }

/* Footer */
.site-foot { background: var(--deep); color: var(--deep-fg); padding-block: 64px 32px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.foot-grid > * { min-width: 0; }
.site-foot h3 { font: 600 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--sun); margin-bottom: 14px; }
.site-foot a { color: var(--deep-fg); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; text-decoration-color: var(--coral); }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14.5px; }
.site-foot p { font-size: 14.5px; color: var(--deep-muted); }
.site-foot .brand { color: var(--deep-fg); }
.site-foot .brand-sub { color: var(--deep-muted); }
.site-foot .brand-mark { background: #fff; border-color: transparent; }
.foot-base { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--deep-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font: 500 12px var(--mono); letter-spacing: .06em; color: var(--deep-muted); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

.cta { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
@media (max-width: 720px) { .cta { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.site-foot .foot-h { font: 600 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--sun); margin-bottom: 14px; }
.site-foot address p + p { margin-top: 8px; }
.crumbs { display: block; }
/* Bangla */
.bn, [lang="bn"] { font-family: "Hind Siliguri", "Noto Sans Bengali", var(--body); letter-spacing: 0; text-transform: none; }
.eyebrow .bn { font-weight: 500; font-size: 13px; color: inherit; }
.brand-sub .bn { font-size: 11px; font-weight: 500; }
@media (max-width: 520px) { .brand-sub .bn { display: none; } }
.bn-tag { font: 500 clamp(18px, 2vw, 22px)/1.5 "Hind Siliguri", "Noto Sans Bengali", var(--body); color: var(--ink); margin: -6px 0 18px; display: inline-block; padding: 2px 12px; border-left: 3px solid var(--coral); }
.bn-sub { display: block; font: 500 14px/1.4 "Hind Siliguri", "Noto Sans Bengali", var(--body); color: var(--muted); }
.tile .bn-sub { position: static; display: block; color: #FDD46B; font: 500 14px/1.45 "Hind Siliguri", "Noto Sans Bengali", var(--body); margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.28); letter-spacing: 0; }
.card .bn-sub { margin-top: -4px; }
.foot-bn { color: var(--deep-fg) !important; font-size: 15px !important; }
h1[lang="bn"], h2[lang="bn"], h3[lang="bn"], .prose[lang="bn"] h2, .prose[lang="bn"] h3 { font-family: "Hind Siliguri", "Noto Sans Bengali", var(--display); font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.prose[lang="bn"] { line-height: 1.85; }
/* Minimal pass */
.narrow { max-width: 820px; }
.h3 { font-size: 21px; letter-spacing: -0.01em; line-height: 1.2; }
.regline { margin-top: clamp(32px, 5vw, 56px); padding-top: 18px; border-top: 1px solid var(--line); font: 500 13px var(--mono); letter-spacing: .06em; color: var(--muted); text-align: center; }
.regline span { color: var(--ink); font-weight: 600; margin-right: 6px; }
.prose-lite { display: grid; gap: 18px; font-size: 19px; line-height: 1.7; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.trio > div { display: grid; gap: 8px; align-content: start; }
.trio p { color: var(--muted); }
@media (max-width: 700px) { .trio { grid-template-columns: 1fr; gap: 22px; } }
.reglist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.reglist li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
@media (max-width: 640px) { .reglist { grid-template-columns: 1fr; } }
.map-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.map-grid > * { min-width: 0; }
@media (max-width: 860px) { .map-grid { grid-template-columns: 1fr; } }
.map, .map-fallback { width: 100%; border: 0; border-radius: 22px; display: block; background: var(--sand); }
.map-fallback { display: grid; place-items: center; text-align: center; padding: 24px; border: 1px dashed var(--line); background-image: repeating-linear-gradient(0deg, transparent 0 39px, var(--rule) 39px 40px), repeating-linear-gradient(90deg, transparent 0 39px, var(--rule) 39px 40px); }
.person .note { margin-top: 4px; font-size: 13px; }

.brand-mark { box-sizing: border-box; }
@media (max-width: 520px) { .brand-mark { height: 36px; } .brand-mark img { height: 26px; } }
.about-logo { display: block; width: min(320px, 70%); height: auto; margin: 0 0 28px; }

/* v7.1 fixes */
.post-card h2 { font-size: 19px; line-height: 1.25; letter-spacing: -0.01em; }
.ledger[style*="repeat(3"] > div:nth-child(3n+1) { padding-left: 0; }
.ledger[style*="repeat(3"] > div:nth-child(3n) { border-right: 0; }
.ledger[style*="repeat(3"] > div:not(:nth-last-child(-n+3)) { border-bottom: 1px solid var(--line); }
@media (max-width: 520px) { .ledger[style*="repeat(3"] { grid-template-columns: repeat(2, 1fr) !important; } }
.article-layout > *, .prose { min-width: 0; }
.prose .table-wrap { max-width: 100%; }
.site-foot .brand-sub .est { display: block; }
.brand-name { white-space: nowrap; }
.site-head .brand-name, .site-head .brand-sub { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 520px) {
  .brand { gap: 8px; }
  .site-head .brand-mark { height: 34px; padding: 3px 5px; }
  .site-head .brand-mark img { height: 24px; }
  .site-head .brand-name { font-size: 13.5px; }
  .site-head .brand-sub { font-size: 9px; letter-spacing: .1em; }
}
.contact-links a { color: inherit; text-decoration: none; }
.contact-links a:hover { text-decoration: underline; }
.prose a, .prose li, .prose p { overflow-wrap: anywhere; }
