/* RED Management & Consultancy, redmc.org (2026)
   Layout: an advisory-firm base (white and porcelain bands, navy ink, coral accents),
   a dark "operations log" band for the career record, and an editorial insights page.
   All fonts are hosted on this server (no Google or other third-party requests). */

@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader.woff") format("woff"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-italic.woff") format("woff"); font-weight: 400 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/publicsans.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plexmono-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plexmono-500.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("../fonts/plexarabic-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("../fonts/plexarabic-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }

:root {
  /* colour: change here to restyle the whole site */
  --white: #FFFFFF;
  --paper: #F6F7F9;          /* porcelain band */
  --ink: #0F1E33;            /* navy: text, dark bands, primary buttons */
  --ink-2: #42506A;          /* body text on light */
  --muted: #5A6779;          /* captions on light */
  --line: #DCE1E8;
  --coral: #F15C58;          /* logo colour: shapes, large text, buttons on navy */
  --coral-text: #B23A36;     /* coral for small text on white (passes contrast) */
  --coral-soft: #F58A84;     /* coral for text on dark bands */
  --night: #101820;          /* operations log band */
  --night-panel: #151F29;
  --night-line: #2A3744;
  --night-text: #E6EBEF;
  --night-muted: #9AA7B2;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --arabic: "Plex Arabic", "Segoe UI", Tahoma, "Noto Sans Arabic", sans-serif;
  --zh: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "Hiragino Sans GB", sans-serif;

  --max: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; }
html[lang="ar"] body { font-family: var(--arabic); line-height: 1.85; }
html[lang^="zh"] body { font-family: var(--zh); line-height: 1.85; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--coral-text); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
p { margin: 0; }
.serif, h1, h2, h3 { font-family: var(--serif); }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] .serif { font-family: var(--arabic); font-weight: 600; }
html[lang^="zh"] h1, html[lang^="zh"] h2, html[lang^="zh"] h3, html[lang^="zh"] .serif { font-family: var(--zh); font-weight: 600; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.band { padding-block: clamp(64px, 8vw, 96px); }
.band.white { background: var(--white); }
.band.paper { background: var(--paper); }
.band.ink { background: var(--ink); color: var(--white); }
.band.night { background-color: var(--night); background-image: linear-gradient(var(--night-line) 1px, transparent 1px), linear-gradient(90deg, var(--night-line) 1px, transparent 1px); background-size: 48px 48px; background-position: -1px -1px; color: var(--night-text); }
.ruled { border-top: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack-lg { display: flex; flex-direction: column; gap: 40px; }
.split { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: end; justify-content: space-between; }
.split > * { min-width: 0; }
.cols { display: flex; flex-wrap: wrap; gap: 48px 64px; }
.cols > * { flex: 1 1 380px; min-width: 0; }

.skip { position: absolute; inset-inline-start: 12px; top: -200px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* type */
.eyebrow { font-family: var(--sans); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--coral-text); }
.band.ink .eyebrow, .band.night .eyebrow { color: var(--coral-soft); }
html[lang="ar"] .eyebrow, html[lang^="zh"] .eyebrow { letter-spacing: 0; text-transform: none; }
.display { font-size: clamp(2.6rem, 5.4vw, 4.75rem); line-height: 1.04; letter-spacing: -0.015em; }
.h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1.1; }
.h3 { font-size: 1.625rem; line-height: 1.2; }
.lead { font-size: 1.1875rem; color: var(--ink-2); max-width: 38rem; }
.body { color: var(--ink-2); max-width: 40rem; }
.band.ink .lead, .band.ink .body { color: #C9D2DE; }
.band.night .lead, .band.night .body { color: var(--night-muted); }
.caption { font-size: 0.875rem; color: var(--muted); }
.mono { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.06em; }

/* header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 38px; height: 39px; }
.brand span { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; line-height: 1.1; }
html[lang="ar"] .brand span, html[lang^="zh"] .brand span { font-family: var(--serif); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav ul { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.nav a { display: block; white-space: nowrap; padding: 8px 10px; color: var(--ink); text-decoration: none; font-size: 0.9375rem; font-weight: 500; border-radius: var(--radius); }
.nav a:hover { background: var(--paper); }
.nav a[aria-current="page"] { color: var(--coral-text); }
.nav a.ext::after { content: " \2197"; }
.nav a.cta { background: var(--ink); color: var(--white); margin-inline-start: 8px; padding: 10px 18px; }
.nav a.cta:hover { background: var(--coral-text); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 12px; font: inherit; cursor: pointer; color: var(--ink); white-space: nowrap; }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.875rem; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { flex: none; }
.lang ul { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); background: var(--white); border: 1px solid var(--line); padding: 6px; margin: 0; list-style: none; min-width: 170px; box-shadow: 0 10px 30px rgba(15, 30, 51, 0.1); }
.lang li a { display: block; padding: 8px 10px; color: var(--ink); text-decoration: none; }
.lang li a:hover, .lang li a[aria-current="true"] { background: var(--paper); }
@media (max-width: 1080px) {
  .menu-btn { display: inline-block; }
  .nav ul { display: none; position: absolute; inset-inline: 0; top: 76px; background: var(--white); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 18px; }
  .nav.open ul { display: flex; }
  .nav a.cta { margin: 8px 0 0; text-align: center; }
}
@media (max-width: 520px) {
  .brand span { font-size: 1.05rem; }
  .brand img { width: 32px; height: 33px; }
  .lang-name { display: none; }
}

/* buttons */
.btns { display: flex; flex-wrap: wrap; gap: 14px; }
.btn { display: inline-block; padding: 15px 26px; border-radius: var(--radius); font-weight: 600; text-decoration: none; border: 1px solid transparent; font-size: 1rem; line-height: 1.2; cursor: pointer; font-family: var(--sans); }
html[lang="ar"] .btn { font-family: var(--arabic); }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--coral-text); color: var(--white); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-coral { background: var(--coral); color: var(--ink); font-weight: 700; }
.btn-coral:hover { background: var(--white); color: var(--ink); }
.band.night .btn-outline, .band.ink .btn-outline { border-color: #4A5A69; color: var(--white); }
.text-link { font-weight: 600; }
.text-link::after { content: " \2192"; }
html[dir="rtl"] .text-link::after { content: " \2190"; }

/* hero */
.hero { background: var(--white); }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: stretch; padding-block: clamp(56px, 8vw, 96px); }
.hero-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 26px; justify-content: center; }
.hero-figure { flex: 1 1 340px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.portrait-panel { position: relative; flex: 1; min-height: 420px; background: var(--ink); overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.portrait-panel .mark { position: absolute; inset-inline-start: -46px; top: -38px; width: 300px; opacity: 0.09; }
.portrait-panel .photo { position: relative; align-self: stretch; width: auto; margin: 24px 24px 0; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; filter: saturate(0.9); }
.portrait-panel .tag { position: relative; margin: 24px 24px 0; color: #C9D2DE; font-size: 0.875rem; max-width: 12rem; line-height: 1.45; }
.portrait-panel .tag strong { display: block; color: var(--white); font-family: var(--serif); font-size: 1.25rem; font-weight: 500; }

/* stats */
.stats { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px; padding-block: 40px; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat b { font-family: var(--serif); font-weight: 500; font-size: 2.6rem; line-height: 1; }
html[lang="ar"] .stat b, html[lang^="zh"] .stat b { font-family: var(--serif); }
.stat span { font-size: 0.9375rem; color: var(--muted); }

/* tiles: hairline grid of white cells */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tile { background: var(--white); padding: 34px; display: flex; flex-direction: column; gap: 12px; }
.tile p { color: var(--ink-2); }
.tile dl { margin: 6px 0 0; display: flex; flex-direction: column; gap: 4px; }
.tile dt { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
html[lang="ar"] .tile dt, html[lang^="zh"] .tile dt { letter-spacing: 0; text-transform: none; }
.tile dd { margin: 0; color: var(--ink-2); }
.tiles.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }

/* engagement rows */
.rows { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.row { display: flex; flex-wrap: wrap; gap: 8px 32px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.row .when { flex: 0 0 150px; font-size: 0.875rem; font-weight: 600; color: var(--coral-text); font-variant-numeric: tabular-nums; }
.row .what { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.row .what h3 { font-size: 1.45rem; line-height: 1.25; }
.row .what p { color: var(--ink-2); max-width: 46rem; }
.row .role { flex: 0 1 280px; min-width: 0; color: var(--muted); font-size: 0.9375rem; }

/* operations log */
.log { display: flex; flex-direction: column; background: var(--night-panel); border: 1px solid var(--night-line); }
.log-row { display: flex; flex-wrap: wrap; gap: 6px 28px; padding: 18px 24px; border-bottom: 1px solid var(--night-line); }
.log-row:last-child { border-bottom: 0; }
.log-row .t { flex: 0 0 132px; font-family: var(--mono); color: var(--coral-soft); font-size: 0.9375rem; }
.log-row .w { flex: 1 1 360px; min-width: 0; font-weight: 600; color: var(--night-text); }
.log-row .w small { display: block; font-weight: 400; color: var(--night-muted); font-size: 0.9375rem; margin-top: 4px; }
.log-row .o { flex: 0 1 300px; min-width: 0; color: var(--night-muted); font-size: 0.9375rem; }

/* scan band */
.scan-band .wrap { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.scan-band .text { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.scan-band .h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.15; }
.scan-band .note { font-size: 0.875rem; color: #C9D2DE; }

/* PPPP */
.pppp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 520px) { .pppp { grid-template-columns: minmax(0, 1fr); } }
.pppp div { background: var(--white); padding: 26px; display: flex; flex-direction: column; gap: 6px; }
.pppp b { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; line-height: 1.1; }
html[lang="ar"] .pppp b, html[lang^="zh"] .pppp b { font-family: inherit; font-weight: 600; }
.pppp span { font-size: 0.9375rem; color: var(--muted); }

/* editorial cards */
.cards { display: flex; flex-wrap: wrap; gap: 40px; }
.card { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.card.feature { flex: 2 1 560px; }
.card .media { background: var(--line); overflow: hidden; }
.card .media img { width: 100%; height: 100%; object-fit: cover; }
.card .media.square { aspect-ratio: 1 / 1; max-width: 100%; }
.card .media.wide { aspect-ratio: 16 / 9; max-width: 100%; }
.card .media.typeset.square { aspect-ratio: 1 / 1; }
.card .media.typeset { background: var(--ink); color: var(--white); display: flex; flex-direction: column; justify-content: flex-end; padding: 32px; gap: 10px; }
.card .media.typeset .big { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.02; }
.card .media.typeset .small { color: #C9D2DE; font-size: 0.9375rem; max-width: 30rem; }
.card h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; }
.card p { color: var(--ink-2); }

/* page head */
.page-head { background: var(--white); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-block: clamp(56px, 7vw, 88px) clamp(40px, 5vw, 56px); display: flex; flex-direction: column; gap: 18px; }
.page-head h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); line-height: 1.06; letter-spacing: -0.01em; }

/* about */
.profile { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; }
.profile .story { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.profile .story p { color: var(--ink-2); max-width: 42rem; }
.profile aside { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.profile aside img { width: 100%; max-width: 320px; height: auto; border: 1px solid var(--line); }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.list li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px 20px; justify-content: space-between; }
.list li span:first-child { flex: 1 1 300px; min-width: 0; }
.list li span + span { color: var(--muted); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.quote { margin: 0; font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.3; padding-inline-start: 22px; border-inline-start: 3px solid var(--coral); }
html[lang="ar"] .quote, html[lang^="zh"] .quote { font-family: inherit; }
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.testimonials figure { margin: 0; background: var(--white); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.testimonials blockquote { margin: 0; color: var(--ink-2); }
.testimonials figcaption { font-size: 0.875rem; color: var(--muted); }
.testimonials figcaption strong { color: var(--ink); }

/* emapp */
.shot { border: 1px solid var(--line); background: var(--white); }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checks li { position: relative; padding-inline-start: 26px; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 0.6em; width: 12px; height: 7px; border-left: 2px solid var(--coral-text); border-bottom: 2px solid var(--coral-text); transform: rotate(-45deg); }

/* video (loads YouTube only after a click) */
.video { position: relative; aspect-ratio: 16 / 9; max-width: 100%; background: var(--ink) url("../img/emapp-poster.jpg") center / cover no-repeat; overflow: hidden; }
.video button { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(15, 30, 51, 0.55); color: #fff; font: inherit; cursor: pointer; display: grid; place-items: center; padding: 20px; text-align: center; }
.video .play { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--coral); color: var(--ink); margin: 0 auto 12px; }
.video small { display: block; opacity: 0.9; max-width: 26rem; margin: 6px auto 0; font-size: 0.8125rem; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* forms */
.form { display: grid; gap: 18px; }
.form .pair { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
label { font-weight: 600; display: block; margin-bottom: 6px; font-size: 0.9375rem; }
.opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], select, textarea { width: 100%; padding: 13px 14px; border: 1px solid #B9C2CE; border-radius: var(--radius); font: inherit; background: var(--white); color: var(--ink); }
textarea { min-height: 170px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.consent input { margin-top: 6px; width: 18px; height: 18px; flex: none; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.notice { padding: 14px 18px; margin-bottom: 20px; border: 1px solid; }
.notice.ok { background: #EAF5EE; border-color: #9ACFAB; }
.notice.err { background: #FCEDEC; border-color: #EDA9A6; }
.details { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.details li { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.details li span { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .details li span, html[lang^="zh"] .details li span { letter-spacing: 0; text-transform: none; }

.prose { max-width: 44rem; display: flex; flex-direction: column; gap: 14px; color: var(--ink-2); }
.prose h2 { font-size: 1.6rem; color: var(--ink); margin-top: 18px; }

/* footer */
.site-footer { background: var(--white); border-top: 1px solid var(--line); }
.site-footer .wrap { padding-block: 64px 32px; display: flex; flex-direction: column; gap: 40px; }
.site-footer .top { display: flex; flex-wrap: wrap; gap: 32px 64px; justify-content: space-between; align-items: flex-end; }
.site-footer .top h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.15; max-width: 34rem; }
.site-footer .contact { display: flex; flex-direction: column; gap: 6px; font-size: 1.0625rem; }
.site-footer .contact a { font-weight: 600; }
.site-footer .cols3 { display: flex; flex-wrap: wrap; gap: 24px 64px; }
.site-footer .cols3 > div { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.site-footer .cols3 h3 { font-family: var(--sans); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
html[lang="ar"] .site-footer .cols3 h3, html[lang^="zh"] .site-footer .cols3 h3 { letter-spacing: 0; text-transform: none; font-family: inherit; }
.site-footer .cols3 a { color: var(--ink); text-decoration: none; }
.site-footer .cols3 a:hover { color: var(--coral-text); }
.site-footer .legal { display: flex; flex-wrap: wrap; gap: 10px 32px; justify-content: space-between; font-size: 0.875rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 22px; }
.site-footer .legal a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print { .site-header, .scan-band, .btns, .site-footer .cols3 { display: none; } .band.night { background: #fff; color: #000; } }
.cols.top { align-items: flex-start; }
.details li b { font-weight: 400; }
.creds { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; }
.creds a { display: block; padding: 10px 16px; border: 1px solid var(--line); background: var(--white); color: var(--ink); text-decoration: none; }
h1, h2, h3, .stat b, .lead, .body, p { overflow-wrap: break-word; }

/* Self-hosted video */
.video-box { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.video-box video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--ink); }

/* Photo gallery: equal row heights, wide photos span two columns */
.gallery { container-type: inline-size; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.gallery figure.wide { grid-column: span 2; }
.gallery img { display: block; width: 100%; height: calc((100cqi - 40px) / 3 * 0.75); object-fit: cover; background: var(--line); }
.gallery figcaption { font-size: 0.875rem; line-height: 1.45; color: var(--muted); }
@media (max-width: 720px) {
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .gallery figure.wide { grid-column: auto; }
  .gallery img { height: auto; aspect-ratio: 4 / 3; }
  .gallery figure.wide img { aspect-ratio: 16 / 9; }
}
.details .direct p { color: var(--ink-2); font-size: 0.9375rem; line-height: 1.55; max-width: 26rem; }
.details .direct a { display: inline; }
