/* News pages. The first part is the subset of the <style> block in index.html
   these pages use (tokens, base, glass, buttons, header, footer): keep the two
   in sync. */

:root {
  color-scheme: light;
  --bg: #EEF0F6;
  --ink: #0B1B36;
  --ink-2: #33415A;
  --muted: #56637B;
  --line: rgba(11, 27, 54, .1);
  --signal: #E4602D;
  --signal-deep: #C94E1F;
  --glass: rgba(255, 255, 255, .56);
  --glass-strong: rgba(255, 255, 255, .74);
  --glass-line: rgba(255, 255, 255, .85);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 1px 2px rgba(11, 27, 54, .06), 0 26px 60px -30px rgba(11, 27, 54, .38);
  --blur: blur(26px) saturate(170%);
  --display: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter: clamp(1rem, 3.5vw, 2.5rem);
  --max: 1240px;
  --r: 24px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .05 0 0 0 0 .1 0 0 0 0 .2 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { position: relative; margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { list-style: none; padding: 0; }
::selection { background: rgba(228, 96, 45, .25); }
:focus-visible { outline: 2px solid var(--signal-deep); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: #fff; padding: .75rem 1rem; text-decoration: none; border-radius: 999px; }
.skip:focus { top: 1rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Backdrop: slow colour fields behind the glass */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora::after { content: ""; position: absolute; inset: 0; background: var(--grain); }
.orb { position: absolute; border-radius: 50%; }
.orb-1 { width: 48rem; height: 48rem; top: -18rem; right: -14rem; background: radial-gradient(circle, rgba(255, 128, 80, .55), rgba(255, 128, 80, 0) 65%); }
.orb-2 { width: 44rem; height: 44rem; top: 10rem; left: -20rem; background: radial-gradient(circle, rgba(98, 132, 255, .42), rgba(98, 132, 255, 0) 65%); }
.orb-3 { width: 40rem; height: 40rem; bottom: -16rem; left: 30%; background: radial-gradient(circle, rgba(170, 150, 255, .38), rgba(170, 150, 255, 0) 65%); }
.orb-4 { width: 30rem; height: 30rem; top: 45%; right: 5%; background: radial-gradient(circle, rgba(255, 196, 160, .5), rgba(255, 196, 160, 0) 65%); }

/* Glass */
.glass { background: linear-gradient(180deg, rgba(255,255,255,.32), rgba(255,255,255,0) 45%), var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); border-radius: var(--r); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .glass { background: rgba(255, 255, 255, .9); } }

.pill { display: inline-flex; align-items: center; gap: .55rem; padding: .45rem .85rem .45rem .7rem; border-radius: 999px; font: 500 .75rem/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); background: rgba(255, 255, 255, .6); border: 1px solid var(--glass-line); box-shadow: inset 0 1px 0 #fff, 0 6px 16px -10px rgba(11, 27, 54, .35); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.pill::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px rgba(228, 96, 45, .18); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .6rem; min-height: 3.1rem; padding: 0 1.4rem; border-radius: 999px; font: 500 .9375rem/1 var(--sans); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease); }
.btn-primary { color: #fff; background: linear-gradient(180deg, #C94E1F, #B5441A); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 12px 28px -10px rgba(228, 96, 45, .7); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 16px 34px -10px rgba(228, 96, 45, .85); }
.btn-glass { color: var(--ink); background: rgba(255, 255, 255, .55); border: 1px solid var(--glass-line); box-shadow: inset 0 1px 0 #fff, 0 10px 24px -14px rgba(11, 27, 54, .4); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.btn-glass:hover { background: rgba(255, 255, 255, .8); transform: translateY(-1px); }
.btn-sm { min-height: 2.5rem; padding: 0 1.05rem; font-size: .875rem; }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* Header */
.site-header { position: fixed; top: .75rem; left: 0; right: 0; z-index: 50; padding: 0 var(--gutter); }
.bar { position: relative; max-width: calc(var(--max) - 2 * 2.5rem); margin: 0 auto; height: 3.75rem; display: flex; align-items: center; justify-content: space-between; padding: 0 .45rem 0 1.25rem; border-radius: 999px; }
/* Glass on a pseudo-element: a backdrop-filter on .bar itself would stop the dropdown menu inside it from blurring the page */
.bar.glass { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.bar.glass::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(180deg, rgba(255,255,255,.32), rgba(255,255,255,0) 45%), var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .bar.glass::before { background: rgba(255, 255, 255, .9); } }
.brand { display: inline-flex; color: var(--ink); }
.brand .logo { height: 1.75rem; width: auto; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav ul { display: flex; gap: .25rem; }
.nav ul a { display: block; padding: .55rem .85rem; border-radius: 999px; text-decoration: none; font-size: .9rem; color: var(--ink-2); transition: background-color .2s, color .2s; }
.nav ul a:hover { background: rgba(255, 255, 255, .7); color: var(--ink); }
.menu-toggle { display: none; }
/* Language switch: two links, the current language is the filled half */
.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(11, 27, 54, .06); border: 1px solid var(--glass-line); }
.lang a { padding: .5rem .6rem; border-radius: 999px; font: 500 .75rem/1 var(--mono); letter-spacing: .04em; text-decoration: none; color: var(--muted); transition: background-color .2s, color .2s; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current] { color: var(--ink); background: #fff; box-shadow: 0 2px 8px -3px rgba(11, 27, 54, .3); }
/* Narrow phones: only the other language, as a round button like the menu toggle */
@media (max-width: 400px) {
  .brand { flex-shrink: 0; }
  .nav { gap: .375rem; }
  .nav .btn-sm { padding: 0 .8rem; }
  .lang { padding: 0; background: none; border: 0; }
  .lang a[aria-current] { display: none; }
  .lang a { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0; border: 1px solid var(--glass-line); background: rgba(255, 255, 255, .6); color: var(--ink); }
}
@media (max-width: 880px) {
  .nav ul { display: none; }
  .nav { gap: .5rem; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--glass-line); background: rgba(255, 255, 255, .6); color: var(--ink); cursor: pointer; }
  .menu-toggle svg { width: 18px; height: 18px; }
  .menu-toggle .x { display: none; }
  .menu-toggle[aria-expanded="true"] .x { display: block; }
  .menu-toggle[aria-expanded="true"] .bars { display: none; }
  .nav.is-open ul { display: flex; flex-direction: column; gap: 0; position: absolute; top: calc(100% + .6rem); left: 0; right: 0; padding: .5rem; border-radius: 1.5rem; background: rgba(255, 255, 255, .66); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
  .nav.is-open ul a { padding: 1rem 1.1rem; font-size: 1.125rem; color: var(--ink); border-radius: 1rem; }
}

/* Footer */
.site-footer { padding: 0 0 1.25rem; font-size: .875rem; color: var(--muted); }
.footer-card { padding: clamp(1.75rem, 4vw, 2.75rem); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 2rem var(--gutter); }
.footer-grid h2 { font: 500 .75rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin-bottom: .9rem; }
.footer-grid li { margin-bottom: .4rem; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--ink); }
.footer-base { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font: 400 .75rem/1.4 var(--mono); }
@media (max-width: 880px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* Page head */
.page-head { padding: calc(3.75rem + clamp(3.5rem, 8vw, 6rem)) 0 clamp(2rem, 4vw, 3rem); }
.page-head h1 { font: 600 clamp(2.4rem, 5.6vw, 4.6rem)/1.03 var(--display); letter-spacing: -.045em; margin: clamp(1.6rem, 3vw, 2.4rem) 0 1.1rem; max-width: 16ch; }
.page-head h1 .grad { background: linear-gradient(95deg, var(--ink) 5%, #7A3A5E 45%, var(--signal-deep) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-head .lead { font-size: clamp(1.0625rem, 1.4vw, 1.2rem); color: var(--ink-2); max-width: 38rem; }

/* Category filter */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.chip { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.5rem; padding: 0 1rem; border-radius: 999px; font: 500 .875rem/1 var(--sans); color: var(--ink-2); text-decoration: none; background: rgba(255, 255, 255, .5); border: 1px solid var(--glass-line); box-shadow: inset 0 1px 0 #fff; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: background-color .2s, color .2s, transform .25s var(--ease); }
.chip:hover { background: rgba(255, 255, 255, .85); color: var(--ink); transform: translateY(-1px); }
.chip small { font: 500 .6875rem/1 var(--mono); color: var(--muted); }
.chip[aria-current="page"] { color: #fff; background: var(--ink); border-color: var(--ink); box-shadow: 0 10px 22px -12px rgba(11, 27, 54, .7); }
.chip[aria-current="page"] small { color: rgba(255, 255, 255, .65); }

/* Meta line: category · date */
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .75rem; font: 500 .75rem/1.2 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.meta .cat { color: var(--signal-deep); }
.meta > * + *::before { content: ""; display: inline-block; width: 3px; height: 3px; margin-right: .75rem; vertical-align: middle; border-radius: 50%; background: currentColor; opacity: .5; }

/* Featured (latest) */
.featured { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); overflow: hidden; text-decoration: none; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.featured:hover, .card:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 1px 2px rgba(11,27,54,.06), 0 36px 70px -30px rgba(11,27,54,.45); }
.featured .media { margin: .6rem; border-radius: calc(var(--r) - 8px); aspect-ratio: auto; min-height: 22rem; }
.featured .body { display: flex; flex-direction: column; justify-content: center; gap: 1rem; padding: clamp(1.5rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem) clamp(.9rem, 2vw, 1.5rem); }
.featured .badge { align-self: flex-start; }
.featured h2 { font: 600 clamp(1.5rem, 2.8vw, 2.3rem)/1.12 var(--display); letter-spacing: -.035em; }
.featured p { color: var(--ink-2); }
.featured .more { margin-top: .5rem; }
@media (max-width: 880px) { .featured { grid-template-columns: minmax(0, 1fr); } .featured .media { margin-bottom: 0; aspect-ratio: 16 / 10; min-height: 0; } .featured .body { padding: 1.5rem; } }

.media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: linear-gradient(160deg, rgba(255,255,255,.75), rgba(255,255,255,.3)); border: 1px solid rgba(255, 255, 255, .9); }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.media.contain img { object-fit: contain; padding: 8%; }
.featured:hover .media img, .card:hover .media img { transform: scale(1.035); }
.more { display: inline-flex; align-items: center; gap: .45rem; font: 500 .875rem/1 var(--sans); color: var(--signal-deep); }
.more .arr { transition: transform .25s var(--ease); }
a:hover .more .arr { transform: translateX(3px); }

/* Year groups */
.archive { padding: clamp(3rem, 7vw, 5rem) 0 clamp(4rem, 9vw, 7rem); display: grid; gap: clamp(3rem, 7vw, 5rem); }
.year { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1.5rem var(--gutter); }
.year-label { position: sticky; top: 6rem; align-self: start; }
.year-label h2 { font: 600 clamp(2.4rem, 4.5vw, 3.4rem)/1 var(--display); letter-spacing: -.05em; background: linear-gradient(180deg, var(--ink), rgba(11, 27, 54, .45)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.year-label p { margin-top: .6rem; font: 500 .75rem/1.2 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.year-label::after { content: ""; display: block; width: 2.5rem; height: 2px; margin-top: 1rem; border-radius: 2px; background: linear-gradient(90deg, #6284FF, var(--signal)); }
@media (max-width: 880px) {
  .year { grid-template-columns: minmax(0, 1fr); }
  .year-label { position: static; display: flex; align-items: baseline; gap: 1rem; }
  .year-label p { margin: 0; }
  .year-label::after { display: none; }
}

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr)); gap: 1.25rem; }
.card { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.card .media { margin: .5rem .5rem 0; border-radius: calc(var(--r) - 8px); }
.card .body { display: flex; flex-direction: column; gap: .7rem; flex: 1; padding: 1.15rem 1.35rem 1.4rem; }
.card h3 { font: 600 1.125rem/1.3 var(--display); letter-spacing: -.02em; }
.card p { font-size: .9375rem; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .more { margin-top: auto; padding-top: .35rem; }
.empty { padding: 2.5rem; text-align: center; color: var(--ink-2); }

/* Single post */
.post-head { padding: calc(3.75rem + clamp(3rem, 7vw, 5rem)) 0 clamp(1.75rem, 4vw, 2.5rem); }
.post-head .inner { max-width: 50rem; margin: 0 auto; }
.post-head .back { display: flex; width: max-content; }
.back { display: inline-flex; align-items: center; gap: .45rem; font: 500 .875rem/1 var(--sans); color: var(--ink-2); text-decoration: none; margin-bottom: 1.75rem; }
.back:hover { color: var(--ink); }
.back .arr { transition: transform .25s var(--ease); }
.back:hover .arr { transform: translateX(-3px); }
.post-head h1 { font: 600 clamp(2rem, 4.6vw, 3.6rem)/1.08 var(--display); letter-spacing: -.04em; margin: 1.2rem 0 1.4rem; }
.cover { max-width: 64rem; margin: 0 auto; padding: .6rem; }
.cover .media { border-radius: calc(var(--r) - 8px); aspect-ratio: auto; display: grid; place-items: center; }
.cover .media img { position: static; height: auto; max-height: 34rem; }
.cover .media.contain img { width: auto; max-width: 100%; max-height: 22rem; padding: 2.5rem; }

.post-body { max-width: 50rem; margin: clamp(1.25rem, 3vw, 2rem) auto 0; padding: clamp(1.5rem, 5vw, 3.5rem); }
.legal { padding-bottom: clamp(4rem, 9vw, 7rem); }
.legal-head .wrap { max-width: calc(50rem + 2 * var(--gutter)); }
.prose { font-size: 1.0625rem; line-height: 1.75; color: var(--ink-2); }
.prose > * + * { margin-top: 1.15em; }
.prose h2, .prose h3, .prose h4, .prose h5 { font-family: var(--display); color: var(--ink); letter-spacing: -.025em; line-height: 1.25; margin-top: 2em; }
.prose h2 { font-size: 1.75rem; font-weight: 600; }
.prose h3 { font-size: 1.375rem; font-weight: 600; }
.prose h4, .prose h5 { font-size: 1.125rem; font-weight: 600; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--signal-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; overflow-wrap: anywhere; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose ul > li { position: relative; }
.prose ul > li::before { content: ""; position: absolute; left: -1.1rem; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px rgba(228, 96, 45, .15); }
.prose ol { list-style: decimal; }
.prose ol > li::marker { font: 500 .9em var(--mono); color: var(--signal-deep); }
.prose li + li { margin-top: .45em; }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 1.25rem 1.5rem; border-radius: 18px; background: rgba(255, 255, 255, .55); border: 1px solid var(--glass-line); border-left: 3px solid var(--signal); color: var(--ink); font-size: 1.125rem; }
.prose blockquote > * + * { margin-top: .8em; }
.prose hr { border: 0; height: 1px; margin: 2.5em 0; background: var(--line); }
.prose img { border-radius: 16px; }
.prose figure { margin-left: 0; margin-right: 0; }
.prose figure img { margin: 0 auto; border: 1px solid var(--glass-line); }
.prose figure.small img { width: auto; max-width: min(100%, 14rem); max-height: 9rem; border: 0; border-radius: 0; }
.prose .small-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(1.5rem, 5vw, 3rem); }
.prose .small-row img { width: auto; max-width: min(100%, 14rem); max-height: 7rem; border-radius: 0; }
.prose figcaption { margin-top: .7rem; text-align: center; font: 400 .8125rem/1.5 var(--mono); color: var(--muted); }
.prose .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); gap: .6rem; }
.prose .gallery button { display: block; padding: 0; border: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 1; cursor: zoom-in; background: rgba(255, 255, 255, .5); }
.prose .gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .6s var(--ease); }
.prose .gallery button:hover img { transform: scale(1.05); }
.prose .video { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--ink); }
.prose .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.post-foot { max-width: 50rem; margin: 1.25rem auto 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.share { display: flex; align-items: center; gap: .5rem; font: 500 .75rem/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.share a, .share button { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; color: var(--ink); background: rgba(255, 255, 255, .6); border: 1px solid var(--glass-line); cursor: pointer; transition: background-color .2s, transform .25s var(--ease); }
.share a:hover, .share button:hover { background: #fff; transform: translateY(-1px); }
.share svg { width: 16px; height: 16px; }
.share .copied { position: relative; }
.share .copied::after { content: "Kopirano"; position: absolute; bottom: calc(100% + .4rem); left: 50%; transform: translateX(-50%); padding: .35rem .55rem; border-radius: 8px; background: var(--ink); color: #fff; font: 500 .6875rem/1 var(--mono); white-space: nowrap; }

.pager { max-width: 50rem; margin: clamp(2rem, 5vw, 3rem) auto 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.pager a { display: flex; flex-direction: column; gap: .5rem; padding: 1.25rem 1.4rem; text-decoration: none; transition: transform .4s var(--ease); }
.pager a:hover { transform: translateY(-2px); }
.pager span { font: 500 .6875rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pager strong { font: 600 1rem/1.35 var(--display); letter-spacing: -.015em; }
.pager .next { grid-column: 2; text-align: right; }
@media (max-width: 560px) { .pager { grid-template-columns: minmax(0, 1fr); } .pager .next { grid-column: auto; } }

.related { padding: clamp(4rem, 9vw, 6rem) 0; }
.related-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.related-head h2 { font: 600 clamp(1.75rem, 3.4vw, 2.6rem)/1.08 var(--display); letter-spacing: -.035em; margin-top: 1rem; }
.related .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .related .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .related .cards { grid-template-columns: minmax(0, 1fr); } }

/* Lightbox */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: clamp(1rem, 4vw, 3rem); border: 0; background: transparent; }
.lightbox::backdrop { background: rgba(11, 27, 54, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 6rem); border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); }
.lightbox button { position: fixed; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.25rem; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .26); }
.lightbox .lb-close { top: 1rem; right: 1rem; }
.lightbox .lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%); font: 500 .75rem/1 var(--mono); color: rgba(255, 255, 255, .75); }

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .orb-1 { animation: drift-a 26s ease-in-out infinite alternate; }
  .orb-2 { animation: drift-b 32s ease-in-out infinite alternate; }
  .orb-3 { animation: drift-a 38s ease-in-out infinite alternate-reverse; }
  .orb-4 { animation: drift-b 24s ease-in-out infinite alternate-reverse; }
  @keyframes drift-a { to { transform: translate3d(-8rem, 6rem, 0) scale(1.1); } }
  @keyframes drift-b { to { transform: translate3d(7rem, -5rem, 0) scale(.92); } }
  .js [data-reveal] { opacity: 0; transform: translateY(20px); filter: blur(8px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
  .js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
  /* Own GPU layer, so the slow end of the ease glides instead of stepping a
     whole pixel at a time. It is kept after the animation: dropping it would
     snap the text to the pixel grid, a visible jump at the very end */
  .js .page-head .wrap > *, .js .post-head .inner > * { will-change: transform; }
  .js .page-head .wrap > *, .js .post-head .inner > * { animation: rise 1s var(--ease) both; }
  .js .page-head .wrap > :nth-child(2), .js .post-head .inner > :nth-child(2) { animation-delay: .07s; }
  .js .page-head .wrap > :nth-child(3), .js .post-head .inner > :nth-child(3) { animation-delay: .14s; }
  .js .page-head .wrap > :nth-child(4), .js .post-head .inner > :nth-child(4) { animation-delay: .21s; }
  @keyframes rise { from { opacity: 0; transform: translateY(22px); filter: blur(10px); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
