/* =========================================================
   Pixel type-specimen portfolio — styles
   ========================================================= */
:root {
  --bg: #e3e3df;
  --ink: #1b1b1b;
  --mute: #5f5f5a;
  --line: 2px;
  --pad: clamp(16px, 4vw, 56px);
  --px: "Pixelify Sans", "Silkscreen", ui-monospace, monospace;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  /* foreground / fill used by the type styles — swapped on inverted rows */
  --fg: var(--ink);
  --bgc: var(--bg);
  /* dither patterns */
  --dither-50: repeating-conic-gradient(var(--ink) 0 25%, transparent 0 50%) 0 0 / 4px 4px;
  --dither-25: conic-gradient(from 90deg at 2px 2px, transparent 75%, var(--ink) 0) 0 0 / 4px 4px;
  --dither-12: conic-gradient(from 90deg at 2px 2px, transparent 75%, var(--ink) 0) 0 0 / 6px 6px;
  --scan: repeating-linear-gradient(0deg, var(--ink) 0 2px, transparent 2px 6px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 clamp(1rem, .95rem + .25vw, 1.15rem)/1.6 var(--sans);
  overflow-x: clip;
  cursor: var(--cur, auto);
  -webkit-font-smoothing: antialiased;
}
a, button, [data-cycle], label { cursor: var(--cur-hand, pointer); }
body::before { /* paper grain */
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body.loading, body.menu-open { overflow: hidden; }
::selection { background: var(--ink); color: var(--bg); }
a { color: inherit; }
button { font: inherit; color: inherit; }
img, svg { max-width: 100%; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }

#wind { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 80; pointer-events: none; image-rendering: pixelated; }

/* =========================================================
   TYPE STYLES  (Regular · Outline · Extrude · Italic)
   ========================================================= */
.word {
  display: inline-block;
  margin: 0;
  font: 700 1em/1 var(--px);
  letter-spacing: .01em;
  white-space: nowrap;
  color: var(--fg);
  transform-origin: 0 100%;
  transition: transform .25s steps(4);
}
.t-out, .t-ext {
  --o: .05em;
  --ol:
    var(--o) 0 0 var(--fg), calc(var(--o) * -1) 0 0 var(--fg),
    0 var(--o) 0 var(--fg), 0 calc(var(--o) * -1) 0 var(--fg),
    var(--o) var(--o) 0 var(--fg), calc(var(--o) * -1) var(--o) 0 var(--fg),
    var(--o) calc(var(--o) * -1) 0 var(--fg), calc(var(--o) * -1) calc(var(--o) * -1) 0 var(--fg);
  color: var(--bgc);
  text-shadow: var(--ol);
}
.t-ext {
  text-shadow: var(--ol), var(--ext,
    .065em .065em 0 var(--fg), .08em .08em 0 var(--fg), .095em .095em 0 var(--fg),
    .11em .11em 0 var(--fg), .125em .125em 0 var(--fg));
}
.t-ita { transform: skewX(-11deg); }
.lean { display: inline-block; transform-origin: 0 100%; will-change: transform; }

/* the "● Label : Value" bullet notes */
.meta {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: .2em; align-content: end;
  font: 400 clamp(.85rem, .8rem + .3vw, 1.05rem)/1.3 var(--sans);
  color: var(--fg);
}
.meta li { display: flex; align-items: center; gap: .65em; white-space: nowrap; }
.meta li::before { content: ""; flex: none; width: .66em; height: .66em; border-radius: 50%; background: currentColor; }
.meta b { font-weight: 400; }

.brandmark { margin: 0; font: 700 1.1rem/1 var(--sans); letter-spacing: -.01em; text-decoration: none; color: var(--fg); white-space: nowrap; }
.brandmark i { font-weight: 400; }

/* pixel icons */
.ico { display: inline-flex; width: 1.15em; height: 1.15em; flex: none; }
.ico svg { width: 100%; height: 100%; display: block; }
.ico-xl { width: 34%; height: auto; }

/* specimen rows */
.row {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: end; gap: 12px 28px;
  padding: 10px 0 14px;
}
.row-word { min-width: 0; padding: .02em .16em .14em 0; }
.ruled::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: var(--line); background: var(--fg);
  transform-origin: 0 50%;
}

/* =========================================================
   PIXEL BUTTONS — notched corners + extruded block
   ========================================================= */
.btn {
  --b: 3px;
  --face: var(--bg);
  --txt: var(--ink);
  --depth: 6px;
  --notch: polygon(var(--b) 0, calc(100% - var(--b)) 0, calc(100% - var(--b)) var(--b), 100% var(--b), 100% calc(100% - var(--b)), calc(100% - var(--b)) calc(100% - var(--b)), calc(100% - var(--b)) 100%, var(--b) 100%, var(--b) calc(100% - var(--b)), 0 calc(100% - var(--b)), 0 var(--b), var(--b) var(--b));
  position: relative; isolation: isolate;
  display: inline-flex;
  margin: 0 var(--depth) var(--depth) 0;
  padding: 0; border: 0; background: none;
  color: var(--txt); text-decoration: none;
  font: 700 1.05rem/1 var(--px); letter-spacing: .03em;
  -webkit-tap-highlight-color: transparent;
}
.btn::before { /* the extrusion */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink);
  clip-path: var(--notch);
  transform: translate(var(--depth), var(--depth));
}
.btn-face {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  width: 100%;
  padding: .82em 1.25em .78em;
  background: var(--face); color: var(--txt);
  box-shadow: inset 0 0 0 var(--b) var(--ink);
  clip-path: var(--notch);
  white-space: nowrap;
  transition: transform .14s steps(3), background-color 0s, color 0s;
}
.btn:hover .btn-face, .btn:focus-visible .btn-face { --face: var(--ink); --txt: var(--bg); transform: translate(2px, 2px); }
.btn:active .btn-face { transform: translate(var(--depth), var(--depth)); transition-duration: .06s; }
.btn[aria-current="true"] .btn-face, .btn[aria-pressed="true"] .btn-face { --face: var(--ink); --txt: var(--bg); transform: translate(calc(var(--depth) - 2px), calc(var(--depth) - 2px)); }
.btn.solid .btn-face { --face: var(--ink); --txt: var(--bg); }
.btn.solid::before { background: var(--dither-50); }
.btn.solid:hover .btn-face { --face: var(--bg); --txt: var(--ink); }
.btn.sm { --depth: 4px; font-size: .88rem; }
.btn.sm .btn-face { padding: .66em .95em .62em; }
.btn.lg { --depth: 8px; font-size: clamp(1.1rem, 1rem + .6vw, 1.45rem); }
.btn.lg .btn-face { padding: .95em 1.5em .9em; }
.btn:focus-visible { outline: none; }
.btn-face small { font: 500 .62em/1 var(--sans); opacity: .7; margin-right: -.2em; }

/* =========================================================
   LOADER
   ========================================================= */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--bg); }
.loader canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.loader.gone { display: none; }
.ld {
  position: relative; z-index: 1;
  height: 100%; display: flex; flex-direction: column; justify-content: space-between; align-items: stretch;
  padding: clamp(20px, 4vw, 40px) var(--pad);
  max-width: 1280px; margin: 0 auto;
}
.ld > .brandmark { text-align: center; }
.ld-mid { display: grid; gap: 10px; }
.ld-row::after, .ld-row2::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--line); background: var(--ink); }
.ld-word { font-size: clamp(3.4rem, 15vw, 11rem); }
.ld-row2 { align-items: center; grid-template-columns: minmax(0, 1fr) auto; }
.ld-num { font-size: clamp(2.4rem, 8vw, 5.5rem); margin-right: .15em; }
.ld-bar { display: grid; grid-template-columns: repeat(20, 1fr); gap: clamp(3px, .5vw, 6px); align-self: center; }
.ld-bar i { aspect-ratio: 1; border: 2px solid var(--ink); }
.ld-bar i.on { background: var(--ink); }
.ld-bar i.hot { background: var(--dither-50); }
.ld-foot { display: flex; justify-content: space-between; font: 400 .95rem var(--sans); }
.ld.out { visibility: hidden; }

/* =========================================================
   HEADER + MENU
   ========================================================= */
.top {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 14px var(--pad);
  background: var(--bg);
}
.top::after { content: ""; position: absolute; left: var(--pad); right: var(--pad); bottom: 0; height: var(--line); background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s steps(16); }
.top.scrolled::after { transform: scaleX(1); }
.top-meta { font-size: .9rem; }
.top .brandmark { justify-self: center; }
.top-nav { justify-self: end; display: flex; gap: 6px; }
.menu-btn { display: none; justify-self: end; }

.menu {
  position: fixed; inset: 0; z-index: 60; overflow-y: auto;
  display: flex; flex-direction: column; justify-content: center; gap: 28px;
  padding: 80px var(--pad) 40px;
  background: var(--bg);
}
.menu[hidden] { display: none; }
.menu-list { display: grid; }
.menu-list a {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px;
  padding: 6px 4px 10px; text-decoration: none; color: var(--fg);
}
.menu-list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--line); background: var(--fg); }
.menu-list a .word { font-size: clamp(2.6rem, 13vw, 4.5rem); }
.menu-list a:hover, .menu-list a:focus-visible { --fg: var(--bg); --bgc: var(--ink); background: var(--ink); }
.menu.open .menu-list a { animation: wipeIn .5s steps(8) both; }
.menu.open .menu-list a:nth-child(2) { animation-delay: .06s; }
.menu.open .menu-list a:nth-child(3) { animation-delay: .12s; }
.menu.open .menu-list a:nth-child(4) { animation-delay: .18s; }
.menu.open .menu-list a:nth-child(5) { animation-delay: .24s; }
.menu-close { align-self: flex-start; }

/* =========================================================
   REVEALS (stepped, pixel-y)
   ========================================================= */
@keyframes wipeIn { from { clip-path: inset(-40% 100% -40% -10%); } to { clip-path: inset(-40% -40% -40% -10%); } }
@keyframes scanIn { from { clip-path: inset(-10% -40% 100% -10%); } to { clip-path: inset(-10% -40% -40% -10%); } }
.js main .wipe:not(.in), .js main .row:not(.in) .row-word, .js main .row:not(.in) > .meta { clip-path: inset(0 100% 0 0); }
.js .wipe.in { animation: wipeIn .4s steps(8) var(--d, 0s) both; }
.js main .row.in .row-word { animation: wipeIn .45s steps(9) var(--d, 0s) both; }
.js main .row.in > .meta { animation: wipeIn .3s steps(5) calc(var(--d, 0s) + .12s) both; }
.js main .scan:not(.in) { clip-path: inset(0 0 100% 0); }
.js .scan.in { animation: scanIn .35s steps(6) var(--d, 0s) both; }
.js main .ruled:not(.in)::after { transform: scaleX(0); }
.js .ruled.in::after { transform: scaleX(1); transition: transform .5s steps(14) var(--d, 0s); }
/* backup once a block has had time to animate: always fully visible */
.js main .done, .js main .row.done .row-word, .js main .row.done > .meta { animation: none !important; clip-path: none !important; }
.js main .ruled.done::after { transform: scaleX(1); transition: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: calc(100svh - 62px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--pad) 26px;
  max-width: 1440px; margin: 0 auto;
}
.hero-row { padding: 6px 0 10px; }
.hero-row .row-word { will-change: transform; }
.hero .word { font-size: 120px; } /* fitted by JS */
.hero-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: clamp(18px, 3vh, 30px); }
.hero-nav { display: flex; flex-wrap: wrap; gap: 8px 6px; }
.scroll-hint { display: inline-flex; align-items: center; gap: .5em; font: 700 1rem var(--px); text-decoration: none; }
.scroll-hint .ico { animation: hop 1s steps(2) infinite; }
@keyframes hop { 50% { transform: translateY(5px); } }
.hint { position: absolute; right: var(--pad); top: 6px; margin: 0; font: italic 400 .85rem var(--sans); color: var(--mute); }
[data-cycle] { -webkit-user-select: none; user-select: none; }
[data-cycle].flash { animation: flash .3s steps(3); }
@keyframes flash { 33% { opacity: 0; } 66% { opacity: 1; } }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { position: relative; padding: clamp(80px, 11vw, 150px) var(--pad) 0; }
.wrap { position: relative; max-width: 1280px; margin: 0 auto; }
.sec-head { margin-bottom: clamp(28px, 5vw, 56px); }
.sec-head .word, #connect .word { font-size: clamp(3rem, 12vw, 9rem); }
.mini-title { margin: 34px 0 6px; font: 700 1.2rem/1 var(--px); letter-spacing: .03em; }

/* ---------- ABOUT ---------- */
.about { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.photo { margin: 0; display: grid; gap: 12px; }
.photo-box {
  position: relative; aspect-ratio: 4 / 5;
  display: grid; place-items: center; align-content: center; gap: 16px;
  border: var(--line) solid var(--ink);
  background: var(--dither-12), var(--bg);
  overflow: hidden;
}
.photo-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-box .ico { padding: 10px; background: var(--bg); box-shadow: 0 0 0 var(--line) var(--ink); width: 36%; }
.photo-ph { padding: 4px 10px; background: var(--ink); color: var(--bg); font: 700 .95rem var(--px); }
.lead { margin: 0 0 18px; font: 700 clamp(1.7rem, 1.2rem + 2vw, 2.8rem)/1.05 var(--px); }
.about-text p { margin: 0 0 1em; max-width: 62ch; }
.facts { margin-top: 20px; gap: .35em; }
.spec-list { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.spec-list li {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px;
  padding: 12px 6px 12px 4px;
  font: 700 clamp(1.15rem, 1rem + .7vw, 1.6rem)/1.1 var(--px);
  counter-increment: s;
  transition: padding .2s steps(3);
}
.spec-list li::before { content: counter(s, decimal-leading-zero); font: 400 .8rem var(--sans); color: var(--mute); }
.spec-list li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--line); background: var(--fg); }
.spec-list li .ico { opacity: 0; transition: opacity 0s; }
.spec-list li:hover { --fg: var(--bg); background: var(--ink); color: var(--bg); padding-left: 16px; }
.spec-list li:hover::before { color: var(--bg); }
.spec-list li:hover .ico { opacity: 1; }

/* ---------- STATS ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: var(--line) solid var(--ink); border-bottom: var(--line) solid var(--ink); margin-bottom: clamp(30px, 5vw, 50px); }
.stat { padding: 22px 18px 18px; display: grid; gap: 14px; align-content: space-between; }
.stat + .stat { border-left: var(--line) solid var(--ink); }
.stat .word { font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4.6rem); }
.stat .meta { font-size: .95rem; }

.filters { display: flex; flex-wrap: wrap; gap: 8px 6px; margin-bottom: clamp(26px, 4vw, 40px); }

/* ---------- CONTENT CARDS ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 30px 24px; }
.card {
  position: relative; display: block;
  border: var(--line) solid var(--ink); background: var(--bg);
  color: var(--ink); text-decoration: none;
  transition: transform .18s steps(3), box-shadow .18s steps(3);
}
.card:hover, .card:focus-visible { transform: translate(-5px, -5px); box-shadow: 8px 8px 0 var(--ink); }
.card[hidden] { display: none; }
.thumb { position: relative; display: grid; place-items: center; aspect-ratio: 1 / .9; overflow: hidden; border-bottom: var(--line) solid var(--ink); background: var(--pat), var(--bg); }
.card:hover .thumb { animation: crawl .6s steps(4) infinite; }
@keyframes crawl { to { background-position: 8px 4px, 0 0; } }
.thumb .ico { width: 46%; height: auto; padding: 8%; background: var(--bg); box-shadow: 0 0 0 var(--line) var(--ink); }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tag-plat { position: absolute; left: 10px; top: 10px; padding: 4px 8px 3px; background: var(--ink); color: var(--bg); font: 700 .75rem/1 var(--px); letter-spacing: .04em; }
.card-body { display: grid; gap: 8px; padding: 14px 14px 16px; }
.card-body strong { font: 700 1.15rem/1.1 var(--px); }
.card-body .meta { font-size: .85rem; }

/* ---------- BRANDS ---------- */
.marquee { overflow: hidden; border-block: var(--line) solid var(--ink); margin: 0 0 clamp(20px, 4vw, 40px); background: var(--ink); --fg: var(--bg); --bgc: var(--ink); }
.marquee-track { display: flex; width: max-content; padding: 14px 0 18px; will-change: transform; }
.marquee-track span { display: inline-flex; align-items: center; gap: .5em; padding-right: .6em; font-size: clamp(2rem, 5vw, 3.6rem); }
.marquee-track .ico { width: .5em; height: .5em; color: var(--bg); }
.brand-list { list-style: none; margin: 0; padding: 0; counter-reset: b; }
.brand-row { position: relative; }
.brand-row > a, .brand-row > div {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px 28px;
  padding: 8px 10px 14px 4px; color: var(--fg); text-decoration: none;
  transition: padding .2s steps(3);
}
.brand-row::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--line); background: var(--fg); }
.brand-row .word { font-size: clamp(2.2rem, 1rem + 5.5vw, 5.6rem); }
.brand-row:hover { --fg: var(--bg); --bgc: var(--ink); background: var(--ink); }
.brand-row:hover > a, .brand-row:hover > div { padding-left: 22px; }
.brand-row:hover .word { transform: skewX(-11deg); }

/* ---------- PROJECTS ---------- */
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 34px 28px; }
.proj { position: relative; display: grid; border: var(--line) solid var(--ink); background: var(--bg); transition: transform .18s steps(3), box-shadow .18s steps(3); }
.proj:hover { transform: translate(-5px, -5px); box-shadow: 9px 9px 0 var(--ink); }
.proj-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; padding: 14px 16px 12px; border-bottom: var(--line) solid var(--ink); }
.proj-no { font-size: clamp(2.8rem, 2rem + 2.5vw, 4.2rem); }
.proj .thumb { aspect-ratio: 16 / 9; }
.proj-body { display: grid; gap: 12px; padding: 16px 16px 20px; align-content: start; }
.proj h3 { margin: 0; font: 700 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1 var(--px); }
.proj p { margin: 0; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 6px; padding: 0; }
.chips li { padding: 5px 9px 4px; border: var(--line) solid var(--ink); font: 700 .78rem/1 var(--px); letter-spacing: .03em; }
.proj .btn { justify-self: start; }

/* ---------- CONNECT ---------- */
.connect-text { max-width: 56ch; margin: 28px 0 30px; font-size: 1.12em; }
.socials { display: flex; flex-wrap: wrap; gap: 26px 24px; margin-bottom: 28px; }
.social { display: grid; gap: 10px; }
.social .btn .ico { width: 1.3em; height: 1.3em; }
.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: .3; } } /* pulses — never fully disappears */
.foot { display: grid; justify-items: center; gap: 28px; max-width: 1280px; margin: clamp(80px, 10vw, 130px) auto 0; padding: 0 0 28px; }
.foot-row { width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding-top: 18px; border-top: var(--line) solid var(--ink); font-size: .95rem; }
.foot-row > :last-child { justify-self: end; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 95;
  padding: 12px 18px 10px; background: var(--ink); color: var(--bg);
  font: 700 1rem var(--px);
  transform: translate(-50%, 200%); visibility: hidden;
  transition: transform .3s steps(5), visibility 0s .3s;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; transition-delay: 0s; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .top { grid-template-columns: 1fr auto; }
  .top-meta, .top-nav { display: none; }
  .top .brandmark { justify-self: start; }
  .menu-btn { display: inline-flex; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: var(--line) solid var(--ink); }
  .about { grid-template-columns: 1fr; }
  .photo { max-width: 360px; }
}
@media (max-width: 640px) {
  .row { grid-template-columns: 1fr; gap: 6px; }
  .row .meta { font-size: .82rem; display: flex; flex-wrap: wrap; gap: 2px 18px; }
  .hero { min-height: calc(100svh - 58px); justify-content: center; }
  .hint { position: static; order: 9; margin-top: 14px; }
  .hero-nav .btn { font-size: .85rem; }
  .hero-nav .btn .btn-face { padding: .7em .9em .66em; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .card-body { padding: 10px 10px 12px; }
  .card-body strong { font-size: .98rem; }
  .card-body .meta { font-size: .74rem; }
  .card-body .meta li { white-space: normal; }
  .tag-plat { font-size: .64rem; left: 6px; top: 6px; }
  .brand-row > a, .brand-row > div { grid-template-columns: 1fr; gap: 4px; }
  .brand-row .meta { display: flex; flex-wrap: wrap; gap: 2px 18px; font-size: .82rem; }
  .socials { flex-direction: column; }
  .social .btn { width: calc(100% - 8px); }
  .foot-row { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .foot-row > :last-child { justify-self: center; }
  .ld-row2 { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .cards { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* shown only when opened from the editor's Preview button */
.preview-tag { position: fixed; left: 12px; bottom: 12px; z-index: 96; padding: 8px 12px 7px; background: var(--ink); color: var(--bg); font: 700 .85rem/1 var(--px); letter-spacing: .03em; pointer-events: none; }

/* brand logos: black & white to match the specimen, full colour on hover */
.brand-id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-logo { flex: none; display: grid; place-items: center; width: clamp(46px, 4.6vw, 64px); aspect-ratio: 1; overflow: hidden; border: var(--line) solid var(--fg); background: var(--bg); }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) contrast(1.12); }
.brand-row:hover .brand-logo img { filter: none; }