/* ==========================================================================
   TRIN — public site design system
   Plain CSS, no build step. Loaded from resources/views/basic.blade.php.
   --------------------------------------------------------------------------
   The palette comes from the logo: seven figures ringing a broadcast tower.
   Those seven are used as marks and signals, not as full-width washes — a
   page of tinted blocks read as decoration rather than as structure.

   Type: Newsreader (display), Atkinson Hyperlegible (body — drawn for
   low-vision readers, which earns its place on a mental health site),
   IBM Plex Mono (register: counts, grant ids, labels), Noto Serif Bengali
   (the blog is mostly Bangla and was falling back to a broken face).
   ========================================================================== */

:root {
    /* the logo's seven figures, unmodified */
    --f1: #FEDF00;  --f2: #F8941D;  --f3: #F25929;  --f4: #8CC73F;
    --f5: #39B64A;  --f6: #24ABE2;  --f7: #0E75BC;

    --ink:       #0C1A26;
    --ink-2:     #23343F;
    --muted:     #5C6E79;
    --faint:     #8A9BA4;
    --paper:     #F7F9F8;
    --card:      #FFFFFF;
    --wash:      #EDF2F1;
    --rule:      #D5DEDA;
    --rule-soft: #E7EDEA;

    --accent: var(--f7);

    --display: 'Newsreader', Georgia, 'Times New Roman', serif;
    --body:    'Atkinson Hyperlegible', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --reg:     'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --bn:      'Noto Serif Bengali', 'Newsreader', serif;

    --wrap: 1200px;
    --nav-h: 74px;
    --ease: cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

body.trin-page {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    font-size: 16.5px;
    line-height: 1.62;
    -webkit-font-smoothing: antialiased;
}

/* `:where()` keeps this at zero specificity so a section modifier can always
   recolour a heading. The bare `.trin-page h1` form outranked `.thero__title`
   and painted the hero headline dark-on-dark. */
.trin-page :where(h1, h2, h3, h4) {
    font-family: var(--display);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -.015em;
    margin: 0;
    color: var(--ink);
    text-wrap: balance;
}

.trin-page :where(p) { margin: 0; }

.trin-page :focus-visible { outline: 2px solid var(--f2); outline-offset: 3px; }

.twrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

.tskip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 12px 20px; z-index: 9999; }
.tskip:focus { left: 0; }
.tsr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Bangla needs more leading than Latin at the same size. */
:lang(bn) { font-family: var(--bn); line-height: 1.8; letter-spacing: 0; }

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.tnav {
    position: sticky;
    top: 0;
    z-index: 200;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    background: rgba(247, 249, 248, .9);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--rule);
}
.tnav__in { display: flex; align-items: center; gap: 22px; width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

.tnav__logo { display: flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.tnav__logo img { height: 42px; width: auto; display: block; }

.tnav__menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.tnav__item { position: relative; }
.tnav__link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    font-family: var(--body);
    font-size: 14.5px;
    color: var(--ink-2);
    text-decoration: none;
    white-space: nowrap;
    transition: color .16s var(--ease), background .16s var(--ease);
}
.tnav__link:hover { color: var(--ink); background: var(--wash); }

/* The active page gets a rule in the logo blue rather than a filled pill —
   it states position without shouting. */
.tnav__item.is-active > .tnav__link { color: var(--ink); font-weight: 700; }
.tnav__item.is-active > .tnav__link::after {
    content: '';
    position: absolute;
    left: 12px; right: 12px; bottom: -1px;
    height: 2px;
    background: var(--f7);
}
.tnav__caret { width: 9px; height: 9px; flex: 0 0 9px; opacity: .55; transition: transform .18s var(--ease); }
.tnav__item:hover .tnav__caret { transform: rotate(180deg); }

.tnav__drop {
    position: absolute;
    top: calc(100% + 4px);
    left: 2px;
    min-width: 212px;
    background: var(--card);
    border: 1px solid var(--rule);
    box-shadow: 0 14px 40px rgba(12, 26, 38, .14);
    padding: 6px;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
}
.tnav__item:hover .tnav__drop,
.tnav__item:focus-within .tnav__drop { opacity: 1; visibility: visible; transform: translateY(0); }
.tnav__drop a {
    display: block;
    padding: 9px 12px;
    font-size: 14px;
    color: var(--ink-2);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: background .14s var(--ease), border-color .14s var(--ease);
}
.tnav__drop a:hover { background: var(--wash); border-left-color: var(--f6); color: var(--ink); }

.tnav__cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    min-height: 42px;
    margin-left: 6px;
    background: var(--ink);
    color: var(--paper);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid var(--ink);
    white-space: nowrap;
    transition: background .16s var(--ease), color .16s var(--ease);
}
.tnav__cta:hover { background: transparent; color: var(--ink); }

.tnav__burger {
    display: none;
    margin-left: auto;
    width: 44px; height: 44px;
    align-items: center; justify-content: center;
    background: transparent;
    border: 1px solid var(--rule);
    color: var(--ink);
    cursor: pointer;
}
.tnav__burger svg { width: 20px; height: 20px; }

/* ---- mobile drawer (ids kept so the layout's existing script still binds) ---- */
.tnav__overlay {
    position: fixed; inset: 0;
    background: rgba(12, 26, 38, .5);
    opacity: 0; visibility: hidden;
    transition: opacity .22s var(--ease), visibility .22s;
    z-index: 300;
}
.tnav__overlay.trin__active { opacity: 1; visibility: visible; }

.tdrawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(340px, 86vw);
    background: var(--paper);
    z-index: 310;
    transform: translateX(100%);
    transition: transform .26s var(--ease);
    display: flex; flex-direction: column;
    overflow-y: auto;
}
.tdrawer.trin__active { transform: translateX(0); }
.tdrawer__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid var(--rule);
}
.tdrawer__head img { height: 34px; }
.tdrawer__close {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    background: transparent; border: 1px solid var(--rule);
    color: var(--ink); cursor: pointer;
}
.tdrawer__menu { list-style: none; margin: 0; padding: 8px 0 26px; }
.tdrawer__menu > li { border-bottom: 1px solid var(--rule-soft); }
.tdrawer__menu a, .tdrawer__toggle {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%;
    padding: 14px 20px;
    min-height: 50px;
    font-family: var(--body); font-size: 15.5px;
    color: var(--ink-2); text-decoration: none;
    background: transparent; border: 0; cursor: pointer; text-align: left;
}
.tdrawer__menu > li.is-active > a { color: var(--ink); font-weight: 700; box-shadow: inset 3px 0 0 var(--f7); }
.tdrawer__toggle i { transition: transform .2s var(--ease); font-size: 12px; }
.tdrawer__toggle.trin__active i { transform: rotate(180deg); }
.tdrawer__sub { max-height: 0; overflow: hidden; background: var(--wash); transition: max-height .26s var(--ease); }
.tdrawer__sub.trin__active { max-height: 340px; }
.tdrawer__sub a { padding-left: 34px; font-size: 14.5px; }

@media (max-width: 1150px) {
    .tnav__menu, .tnav__cta { display: none; }
    .tnav__burger { display: flex; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.thero {
    position: relative;
    z-index: 0;
    background: #0A1620;
    color: #EAF1F4;
    padding: clamp(37px, 4.1vw, 60px) 0 0;
    overflow: hidden;
    isolation: isolate;
}
/* Colour in the ground, drawn from the mark's own blues, so the band is not
   a flat rectangle of navy. */
.thero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(72% 92% at 6% 8%,   rgba(14, 117, 188, .46), transparent 60%),
        radial-gradient(58% 78% at 95% 92%, rgba(36, 171, 226, .26), transparent 62%);
    z-index: -1;
}
.thero__in {
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
    gap: clamp(24px, 3.2vw, 50px);
    align-items: end;
}
/* The organisation's name, set in the display face at a size that can be
   read across the room. It sits well below the headline in the hierarchy
   (30px against 62px) so the two do not compete. */
.thero__masthead {
    font-family: var(--display);
    font-size: clamp(19px, 2.2vw, 29px);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -.005em;
    color: #C8DEEC;
    margin: 0;
    text-wrap: balance;
}
/* The four initials the acronym is built from. */
.thero__ini {
    color: #7FD0F5;
    font-weight: 600;
}
/* An explicit space element: without it the inline spans would let a browser
   collapse the gap between "Research" and "&" at some widths. */
.thero__gap { display: inline; white-space: pre; }

.thero__place {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--reg);
    font-size: 11px; font-weight: 600;
    letter-spacing: .18em; text-transform: uppercase;
    color: #7C9AAC;
    margin: 12px 0 clamp(24px, 3.2vw, 40px);
}
.thero__place__mark {
    width: 26px; height: 3px; flex: 0 0 26px;
    background: linear-gradient(to right,
        var(--f1) 0 14.2%, var(--f2) 14.2% 28.5%, var(--f3) 28.5% 42.8%,
        var(--f4) 42.8% 57.1%, var(--f5) 57.1% 71.4%, var(--f6) 71.4% 85.7%,
        var(--f7) 85.7% 100%);
}

.thero__text { padding-bottom: clamp(39px, 4.6vw, 62px); }
.thero__title {
    font-family: var(--display);
    font-size: clamp(35px, 4.9vw, 62px);
    font-weight: 300;
    line-height: 1.03;
    letter-spacing: -.035em;
    color: #fff;
}
.thero__title b { font-weight: 400; color: #7FD0F5; }
.thero__lede {
    font-size: clamp(15.5px, 1.25vw, 17.5px);
    line-height: 1.62;
    color: #B4C8D4;
    max-width: 42ch;
    margin-top: 20px;
}
.thero__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* The photograph carries the band, so it takes the larger half of the grid
   and a wide frame rather than a portrait sliver. */
.thero__media { position: relative; align-self: end; margin: 0; }

.thero__stage {
    position: relative;
    width: 100%;
    aspect-ratio: 7 / 5;      /* was 16/10; ~15% taller at the same width */
    overflow: hidden;
    /* Feathered at the sides so the frame dissolves into the band rather than
       ending on a hard rectangular edge. */
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.thero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .85s var(--ease);
    pointer-events: none;
}
.thero__slide.is-on { opacity: 1; pointer-events: auto; }

/* A magnified, blurred copy of the same photograph fills the frame, so the
   photograph itself can be shown whole without letterbox bars. */
.thero__blur {
    position: absolute;
    inset: -10%;
    background-size: cover;
    background-position: center;
    filter: blur(30px) saturate(1.15) brightness(.62);
    transform: scale(1.06);
}
.thero__slide picture { display: block; position: absolute; inset: 0; }
.thero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;   /* never crops, whatever the source ratio */
}

.thero__strip {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-top: 12px;
}
.thero__cap {
    font-family: var(--reg);
    font-size: 10.5px;
    color: #7C9AAC;
    line-height: 1.6;
    max-width: 62ch;
    margin: 0;
}
.thero__dots { display: flex; gap: 7px; flex: 0 0 auto; padding-top: 3px; }
.thero__dots button {
    position: relative;
    width: 26px; height: 4px;
    padding: 0;
    border: 0;
    background: rgba(255,255,255,.24);
    cursor: pointer;
    transition: background .2s var(--ease);
}
.thero__dots button:hover { background: rgba(255,255,255,.5); }
.thero__dots button.is-on { background: var(--f6); }
/* the bar is 4px tall, so the hit area is padded out to a 44px target */
.thero__dots button::before {
    content: '';
    position: absolute;
    top: -20px; left: -4px;
    width: 34px; height: 44px;
}
.thero__signal {
    position: absolute;
    left: -7%; bottom: -19%;
    width: min(38%, 380px);
    opacity: .32;
    pointer-events: none;
    z-index: -1;
}
.thero__signal svg { display: block; width: 100%; height: auto; }
.thero__ring { display: flex; margin-top: clamp(30px, 3.7vw, 48px); }
.thero__ring i { flex: 1 1 0; height: 7px; display: block; }

@media (prefers-reduced-motion: no-preference) {
    .arc { animation: sig 5.5s ease-out infinite; opacity: 0; }
    @keyframes sig {
        0%   { opacity: 0;  transform: scale(.82); }
        18%  { opacity: 1; }
        70%  { opacity: .5; }
        100% { opacity: 0;  transform: scale(1.06); }
    }
}

/* ==========================================================================
   SECTIONS
   Grounds alternate between paper and a faint wash, and each section lays a
   very low-alpha tint of its own logo colour over the top. Every band reads
   distinctly without turning the page into a row of coloured blocks.
   ========================================================================== */
.tsec {
    position: relative;
    padding: clamp(48px, 5.6vw, 82px) 0;
    background: var(--paper);
}
.tsec--wash { background: var(--wash); }
.tsec::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(62% 78% at 88% 3%, var(--tone, transparent), transparent 66%);
    pointer-events: none;
    z-index: 0;
}
.tsec > * { position: relative; z-index: 1; }
.tsec + .tsec { border-top: 1px solid var(--rule-soft); }

/* One horizontal line of true metadata above each section. */
.thead {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    padding-bottom: 13px;
    margin-bottom: clamp(22px, 3vw, 34px);
    border-bottom: 1px solid var(--rule);
}
.thead__mark { width: 26px; height: 4px; flex: 0 0 26px; background: var(--mark, var(--accent)); }
.thead__key {
    font-family: var(--reg);
    font-size: 11px; font-weight: 600;
    letter-spacing: .18em; text-transform: uppercase;
    color: var(--ink);
}
.thead__meta {
    font-family: var(--reg);
    font-size: 11.5px;
    color: var(--faint);
    margin-left: auto;
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.thead__meta b { color: var(--muted); font-weight: 500; }

.ttitle { font-size: clamp(28px, 3.6vw, 42px); }
.tlede {
    font-family: var(--display);
    font-size: clamp(18px, 1.75vw, 22px);
    line-height: 1.45;
    font-weight: 300;
    color: var(--ink-2);
    max-width: 60ch;
    margin-top: 16px;
}
.tsectop { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 30px; }

.tmore {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: var(--reg); font-size: 12.5px; font-weight: 600;
    color: var(--ink); text-decoration: none;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 2px;
    transition: border-color .16s var(--ease), gap .16s var(--ease);
}
.tmore:hover { border-bottom-color: var(--ink); color: var(--ink); gap: 11px; }

.tbtn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 13px 22px; min-height: 46px;
    font-family: var(--body); font-size: 15px; font-weight: 700;
    text-decoration: none; cursor: pointer;
    border: 1px solid var(--ink);
    transition: background .16s var(--ease), color .16s var(--ease), transform .16s var(--ease);
}
.tbtn svg { width: 16px; height: 16px; flex: 0 0 16px; }
/* written with the `a.` twin so the site's older global stylesheets cannot
   repaint a button's own label */
.tbtn--solid, a.tbtn--solid { background: var(--ink); color: var(--paper); }
.tbtn--solid:hover, a.tbtn--solid:hover { transform: translateY(-2px); color: var(--paper); }
.tbtn--line, a.tbtn--line { background: transparent; color: var(--ink); }
.tbtn--line:hover, a.tbtn--line:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.thero .tbtn--solid, .thero a.tbtn--solid { background: #fff; color: #0A1620; border-color: #fff; }
.thero .tbtn--line,  .thero a.tbtn--line  { color: #fff; border-color: rgba(255,255,255,.45); }
.thero .tbtn--line:hover, .thero a.tbtn--line:hover { background: #fff; color: #0A1620; border-color: #fff; }

/* ---------- Strands ---------- */
.tstrands {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
    margin-top: 30px;
    border-top: 1px solid var(--rule);
}
.tstrand { padding: 22px 22px 24px 0; border-right: 1px solid var(--rule-soft); }
.tstrand:last-child { border-right: 0; }
.tstrand + .tstrand { padding-left: 22px; }
.tstrand__n {
    font-family: var(--reg); font-size: 10.5px; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--sm); margin-bottom: 12px;
}
.tstrand h3 { font-size: 21px; margin-bottom: 8px; }
.tstrand p { font-size: 14.5px; color: var(--muted); margin-bottom: 14px; }

/* ---------- Research ---------- */
.tfeature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(22px, 3vw, 44px);
    align-items: center;
    margin-bottom: 32px;
}
.tfeature__img { display: block; }
.tfeature__img picture { display: block; width: 100%; }
.tfeature__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; filter: saturate(.93); }
.tfeature h3 { font-size: clamp(23px, 2.3vw, 31px); line-height: 1.16; margin-bottom: 12px; }
.tfeature p { color: var(--muted); font-size: 15.5px; margin-bottom: 14px; }

.tstamp {
    display: inline-block;
    font-family: var(--reg); font-size: 10.5px; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase;
    border: 1px solid var(--f5); color: var(--f5);
    padding: 4px 10px; margin-bottom: 14px;
}

/* Cards, not a bare list — every research row carries a photograph. */
.tprojects { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.tproject {
    display: flex; flex-direction: column;
    background: var(--card);
    border: 1px solid var(--rule-soft);
    text-decoration: none;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.tproject:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(12,26,38,.10); border-color: var(--rule); }
.tproject__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--wash); }
.tproject__img picture { display: block; width: 100%; height: 100%; }
.tproject__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease); }
.tproject:hover .tproject__img img { transform: scale(1.045); }
.tproject__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 9px; flex: 1 1 auto; }
.tproject__tag {
    display: flex; align-items: center; gap: 7px;
    font-family: var(--reg); font-size: 10px; font-weight: 600;
    letter-spacing: .13em; text-transform: uppercase; color: var(--faint);
}
.tproject__tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--dot); flex: 0 0 7px; display: block; }
.tproject h3 { font-size: 18px; line-height: 1.3; color: var(--ink); }
.tproject p { font-size: 14px; color: var(--muted); }

/* ---------- Founder ---------- */
.tfounder {
    display: grid;
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    gap: clamp(26px, 4vw, 58px);
    align-items: start;
}
/* The source is 369x300 — landscape. Forcing it into a 4:5 portrait cut his
   head off; 6:5 is within a hair of the native ratio, so nothing is lost. */
.tfounder__portrait { margin: 0; position: relative; }
.tfounder__portrait picture { display: block; width: 100%; }
.tfounder__portrait img {
    display: block;
    width: 100%;
    aspect-ratio: 6 / 5;
    object-fit: cover;
    object-position: center;
    background: var(--wash);
}
/* a rule in the founder colour, tying the block to its section mark */
.tfounder__portrait::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 4px;
    background: var(--f2);
}
/* Four registers, each visually distinct: name in large serif, role in mono
   caps, credentials in serif italic behind a rule, biography in the body
   face. Previously all four ran together at nearly the same weight. */
.tfounder__name {
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.05;
    letter-spacing: -.02em;
}
.tfounder__role {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: var(--reg); font-size: 10.5px; font-weight: 600;
    letter-spacing: .18em; text-transform: uppercase;
    color: #9F5600;
    margin-top: 14px;
}
.tfounder__role::before { content: ''; width: 18px; height: 3px; background: var(--f2); }
.tfounder__creds {
    font-family: var(--display);
    font-style: italic;
    font-size: 18.5px;
    line-height: 1.4;
    color: var(--muted);
    margin-top: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--rule);
}
.tfounder__bio {
    font-size: 16.5px;
    line-height: 1.72;
    color: var(--ink-2);
    margin-top: 20px;
    max-width: 58ch;
}
.tfounder__quote {
    font-family: var(--display);
    font-size: clamp(19px, 1.85vw, 23px);
    line-height: 1.45;
    color: var(--ink);
    margin-top: 20px;
    padding: 2px 0 2px 20px;
    border-left: 3px solid var(--f1);
    text-wrap: pretty;
}
.tfounder__links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.tchip {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--reg); font-size: 12px;
    min-height: 42px; padding: 9px 14px;
    color: var(--ink); text-decoration: none;
    border: 1px solid var(--rule);
    background: var(--card);
    transition: border-color .16s var(--ease);
}
.tchip:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- Recent work ----------
   Three long-form blocks rather than a row of thumbnails. A programme that
   ran for two years cannot be explained in a 115-character excerpt, so each
   one gets a photograph, a paragraph, what was actually delivered, and a
   register strip of where / with whom / when.

   Rows alternate: the photograph sits left on 01 and 03 and right on 02, so
   three full-width blocks do not stack into one long column of images. */
.tworks { display: grid; gap: clamp(46px, 6.5vw, 88px); }

.twork {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
}
.twork--flip .twork__media { order: 2; }

.twork__media { margin: 0; min-width: 0; }
.twork__frame { display: block; overflow: hidden; background: var(--wash); }
.twork__frame picture { display: block; width: 100%; }
/* Each block sets --ar to its own photograph's shape. A fixed frame ratio
   cropped the sides off the Sylhet group photo and clipped the people
   standing at either end of it; 3:2 is only the fallback. */
.twork__frame img {
    /* height:auto is load-bearing. x-img emits height="570", which makes the
       used height definite and causes aspect-ratio to be ignored outright —
       every frame rendered ~1:1 until this was added. */
    width: 100%; height: auto; aspect-ratio: var(--ar, 3 / 2); object-fit: cover; display: block;
    filter: saturate(.93); transition: transform .5s var(--ease), filter .3s;
}
a.twork__frame:hover img { transform: scale(1.03); filter: saturate(1.03); }
.twork__cap {
    font-family: var(--reg); font-size: 11px; line-height: 1.55;
    color: var(--faint);
    margin-top: 12px; padding-left: 13px;
    border-left: 3px solid var(--mark, var(--rule));
}

.twork__body { min-width: 0; }
.twork__n {
    display: flex; align-items: center; gap: 11px;
    font-family: var(--reg); font-size: 10.5px; font-weight: 600;
    letter-spacing: .16em; text-transform: uppercase;
    color: var(--mark, var(--accent));
    margin-bottom: 13px;
}
.twork__n i { display: block; width: 28px; height: 3px; flex: 0 0 28px; background: var(--mark, var(--accent)); }
.twork h3 { font-size: clamp(25px, 2.7vw, 36px); line-height: 1.13; margin-bottom: 15px; }
/* Block 03 carries its full project title verbatim. At the size above a
   180-character title runs to five lines and swamps the block, so a long
   title steps down instead of being cut. */
.twork h3.twork__long { font-size: clamp(21px, 1.9vw, 26px); line-height: 1.22; }
.twork__lede { font-size: 16.5px; line-height: 1.6; color: var(--ink-2); }
.twork__lede + p { margin-top: 13px; font-size: 15.5px; color: var(--muted); }

/* What was actually delivered. Squares rather than disc bullets, to echo the
   section header marks instead of borrowing a list style from nowhere. */
.twork__did { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 9px; }
.twork__did li { position: relative; padding-left: 21px; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.twork__did li::before {
    content: ''; position: absolute; left: 0; top: 8px;
    width: 9px; height: 9px; background: var(--mark, var(--accent));
}

/* Auto-fit rather than flex-wrap: three even columns divided by hairlines,
   so "Where / With / Framework" lands as a rule under the block instead of
   as a ragged second row. */
.twork__reg {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin: 22px 0 0; padding: 0;
    border-top: 1px solid var(--rule-soft);
}
.twork__reg > div { padding: 13px 20px 0; border-left: 1px solid var(--rule-soft); }
.twork__reg > div:first-child { padding-left: 0; border-left: 0; }
.twork__reg dt { font-family: var(--reg); font-size: 9.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--faint); }
.twork__reg dd { margin: 5px 0 0; font-size: 14px; line-height: 1.4; color: var(--ink-2); }

.twork .tmore { margin-top: 22px; }
/* No public page stands behind this one yet, so it says so rather than
   offering a link that goes nowhere. */
.twork__soon {
    display: inline-block; margin-top: 22px;
    font-family: var(--reg); font-size: 11px; letter-spacing: .12em;
    text-transform: uppercase; color: var(--faint);
}

/* ---------- Publications ----------
   No cover images exist for these, so the design has to carry them: a large
   register numeral, the title, and the author string set small. */
.tpubs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 1px;
    background: var(--rule-soft);
    border: 1px solid var(--rule-soft);
}
.tpub {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 16px;
    background: var(--card);
    padding: 22px 22px 24px;
    text-decoration: none;
    transition: background .16s var(--ease);
}
.tpub:hover { background: #FBFCFD; }
.tpub__n {
    font-family: var(--display);
    font-size: 34px;
    font-weight: 300;
    line-height: 1;
    color: var(--f6);
    font-variant-numeric: tabular-nums;
}
.tpub h3 { font-size: 17.5px; line-height: 1.35; color: var(--ink); }
.tpub__authors { font-family: var(--reg); font-size: 11.5px; color: var(--faint); margin-top: 9px; line-height: 1.6; }
.tpub__go { font-family: var(--reg); font-size: 11.5px; font-weight: 600; color: var(--f7); margin-top: 12px; display: inline-block; }
.tpub:hover .tpub__go { text-decoration: underline; }

/* ---------- Notes ---------- */
.tnotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 1px solid var(--rule); }
.tnote { padding: 20px 20px 24px 0; border-right: 1px solid var(--rule-soft); text-decoration: none; display: block; }
.tnote:last-child { border-right: 0; }
.tnote + .tnote { padding-left: 20px; }
.tnote__img { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--wash); margin-bottom: 15px; }
.tnote__img picture { display: block; width: 100%; height: 100%; }
.tnote__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease); }
.tnote:hover .tnote__img img { transform: scale(1.045); }
.tnote__lang { font-family: var(--reg); font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--f3); margin-bottom: 9px; }
.tnote h3 { font-size: 18px; line-height: 1.35; color: var(--ink); }
.tnote h3:lang(bn) { font-size: 19px; font-weight: 600; }
.tnote p { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.tnote__by { font-family: var(--reg); font-size: 11px; color: var(--faint); margin-top: 12px; }
.tnote__by:lang(bn) { font-family: var(--bn); }

/* ---------- Support ---------- */
.tsupport { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 1px; background: var(--rule-soft); border: 1px solid var(--rule-soft); }
.tsupport__c { background: var(--card); padding: 22px 20px; }
.tsupport__k { font-family: var(--reg); font-size: 10px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--faint); margin-bottom: 9px; }
.tsupport__c p { font-size: 15px; line-height: 1.5; }
.tsupport__c a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.tsupport__c a:hover { border-bottom-color: var(--ink); }
.tsupport__id { font-family: var(--reg); font-size: 12px; color: var(--f5); margin-top: 6px; }

/* ---------- Join ---------- */
.tjoin { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(24px, 4vw, 54px); align-items: start; }
.tjoin__list { list-style: none; margin: 24px 0 0; padding: 0; }
.tjoin__list li + li { margin-top: 8px; }
.tjoin__list a {
    display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap;
    background: var(--card); border: 1px solid var(--rule);
    padding: 15px 18px; text-decoration: none; color: var(--ink);
    transition: border-color .16s var(--ease), transform .16s var(--ease);
}
.tjoin__list a:hover { border-color: var(--f7); transform: translateX(3px); }
.tjoin__list strong { font-size: 16px; font-weight: 700; }
.tjoin__list span { font-family: var(--reg); font-size: 12.5px; color: var(--muted); }
.tjoin__box { border: 1px solid var(--rule); background: var(--card); padding: 24px; }
.tjoin__box h3 { font-size: 19px; margin-bottom: 14px; }
.tjoin__box p { font-size: 15px; margin-bottom: 9px; }
.tjoin__box a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); font-weight: 700; }
.tjoin__box a:hover { border-bottom-color: var(--ink); }
.tjoin__box address { font-style: normal; font-size: 14.5px; color: var(--muted); line-height: 1.6; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule-soft); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.tfoot {
    position: relative;
    background: #0A1620;
    color: #B4C8D4;
    padding: clamp(44px, 4.8vw, 68px) 0 0;
    z-index: 0;
    isolation: isolate;
}
.tfoot::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(60% 90% at 4% 0%, rgba(14,117,188,.34), transparent 62%);
    z-index: -1;
}
.tfoot__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 46px);
    padding-bottom: clamp(32px, 4vw, 48px);
}
.tfoot__brand img { height: 44px; width: auto; display: block; margin-bottom: 16px; filter: brightness(0) invert(1); }
.tfoot__name { font-family: var(--display); font-size: 20px; color: #fff; line-height: 1.25; }
.tfoot__blurb { font-size: 14.5px; color: #92AAB9; margin-top: 12px; max-width: 40ch; }
.tfoot h4 {
    font-family: var(--reg); font-size: 10.5px; font-weight: 600;
    letter-spacing: .16em; text-transform: uppercase;
    color: #6E8B9C; margin-bottom: 15px;
}
.tfoot__links { list-style: none; margin: 0; padding: 0; }
.tfoot__links li + li { margin-top: 9px; }
.tfoot__links a, .tfoot__c a {
    color: #C6D8E2; text-decoration: none; font-size: 14.5px;
    border-bottom: 1px solid transparent;
    transition: color .15s var(--ease), border-color .15s var(--ease);
}
.tfoot__links a:hover, .tfoot__c a:hover { color: #fff; border-bottom-color: rgba(255,255,255,.4); }
.tfoot__c p { font-size: 14.5px; margin-bottom: 9px; }
.tfoot__c address { font-style: normal; font-size: 14px; color: #92AAB9; line-height: 1.65; margin-top: 12px; }
.tfoot__social { display: flex; gap: 9px; margin-top: 16px; }
.tfoot__social a {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border: 1px solid rgba(255,255,255,.2);
    color: #C6D8E2; text-decoration: none;
    transition: background .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease);
}
.tfoot__social a:hover { background: #fff; color: #0A1620; border-color: #fff; }
.tfoot__bottom {
    display: flex; justify-content: space-between; align-items: center;
    gap: 18px; flex-wrap: wrap;
    padding: 20px 0 26px;
    border-top: 1px solid rgba(255,255,255,.12);
}
.tfoot__bottom p { font-family: var(--reg); font-size: 11.5px; color: #6E8B9C; }
.tfoot__ring { display: flex; gap: 4px; }
.tfoot__ring i { width: 22px; height: 5px; display: block; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
    .thero__in, .tfeature, .tfounder, .tjoin, .twork { grid-template-columns: minmax(0, 1fr); }
    /* Order is reset so every block reads photograph-then-text in one column. */
    .twork--flip .twork__media { order: 0; }
    .thero__text { padding-bottom: 30px; }
    .thero__stage { aspect-ratio: 4 / 3; }
    .thero__signal { display: none; }
    .thead__meta { margin-left: 0; flex-basis: 100%; text-align: left; }
    .tstrand, .tnote { border-right: 0; border-bottom: 1px solid var(--rule-soft); padding-right: 0; }
    .tstrand + .tstrand, .tnote + .tnote { padding-left: 0; }
    .tfounder__portrait { max-width: 250px; }
    .tfoot__grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
}
@media (max-width: 560px) {
    .twrap, .tnav__in { width: calc(100% - 32px); }
    .thero__acts .tbtn, .tjoin .tbtn { width: 100%; }
    .thero__place { font-size: 9.5px; letter-spacing: .12em; }
    .tfoot__grid { grid-template-columns: minmax(0, 1fr); }
    .tpub { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 18px; }
    .tpub__n { font-size: 27px; }
    .twork__reg { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
    .twork__reg > div { border-left: 0; padding-left: 0; padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .trin-page *, .trin-page *::before, .trin-page *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}
