/* Singapore HR News — mobile-first */
:root {
  --paper: #fbfaf7;
  --white: #ffffff;
  --tint: #f3f0e9;
  --navy: #0f1c2e;
  --ink: #121d2d;
  --ink-2: #485364;
  --ink-3: #6f7989;
  --line: #e2ded5;
  --accent: #a6192e;
  --accent-dark: #7f1323;
  --gold: #b08d57;
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1200px;
  --gut: 18px;
  --r: 3px;
  --ease: cubic-bezier(.22, .68, .2, 1);
  --mast-h: 60px;
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.menu-open { overflow: hidden; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.16; margin: 0; letter-spacing: -.012em; text-wrap: balance; font-optical-sizing: auto; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--navy); color: #fff; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: max(var(--gut), env(safe-area-inset-left)) max(var(--gut), env(safe-area-inset-right)); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; background: var(--navy); color: #fff; padding: 12px 16px; border-radius: var(--r); z-index: 200; transition: top .2s; }
.skip:focus { top: 12px; }

/* ---------- utility bar (tablet and up) ---------- */
.util { display: none; border-bottom: 1px solid var(--line); font-size: 12px; letter-spacing: .02em; color: var(--ink-3); }
.util-in { display: flex; align-items: center; gap: 20px; min-height: 36px; }
.util-tag { margin-left: auto; font-style: italic; font-family: var(--serif); font-size: 13.5px; }
.util-links { display: flex; gap: 18px; padding-left: 20px; border-left: 1px solid var(--line); }
.util-links a { font-weight: 500; color: var(--ink-2); transition: color .2s; }
.util-links a:hover { color: var(--accent); }

/* ---------- masthead ---------- */
.mast { position: sticky; top: 0; z-index: 60; background: rgba(251, 250, 247, .94); backdrop-filter: blur(12px) saturate(1.3); -webkit-backdrop-filter: blur(12px) saturate(1.3); border-bottom: 1px solid var(--line); }
.mast-in { display: flex; align-items: center; justify-content: space-between; height: var(--mast-h); }
.logo { display: inline-flex; align-items: center; gap: 11px; min-height: 44px; }
.logo-mark svg { transition: transform .5s var(--ease); }
.logo:hover .logo-mark svg { transform: rotate(-5deg); }
.logo-words { display: flex; flex-direction: column; }
.logo-text { font-family: var(--serif); font-size: 21px; font-weight: 400; letter-spacing: -.015em; line-height: 1.1; white-space: nowrap; }
.logo-text b { font-weight: 600; }
.logo-sub { display: none; font-size: 10.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-top: 7px; }
.menu-btn { width: 48px; height: 48px; margin-right: -10px; border: 0; background: none; cursor: pointer; display: grid; place-content: center; gap: 7px; }
.menu-btn span:not(.sr) { display: block; width: 24px; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease); }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.25px) rotate(-45deg); }

/* nav: full-height panel on mobile */
.navbar { position: fixed; inset: var(--mast-h) 0 0 0; z-index: 55; background: var(--paper); overflow-y: auto; overscroll-behavior: contain; visibility: hidden; opacity: 0; transition: opacity .3s var(--ease), visibility 0s .3s; }
.navbar.open { visibility: visible; opacity: 1; transition-delay: 0s; }
.navbar-in { display: flex; flex-direction: column; padding-block: 10px 40px; }
.navbar-mark { display: none; }
.nav { display: flex; flex-direction: column; }
.nav a { display: flex; align-items: center; justify-content: space-between; min-height: 58px; font-family: var(--serif); font-size: 24px; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(10px); transition: opacity .4s var(--ease), transform .4s var(--ease), color .2s; }
.nav a::after { content: '→'; font-family: var(--sans); font-size: 16px; color: var(--gold); }
.nav a[aria-current] { color: var(--accent); }
.navbar.open .nav a { opacity: 1; transform: none; }
.navbar.open .nav a:nth-child(1) { transition-delay: .04s; } .navbar.open .nav a:nth-child(2) { transition-delay: .08s; }
.navbar.open .nav a:nth-child(3) { transition-delay: .12s; } .navbar.open .nav a:nth-child(4) { transition-delay: .16s; }
.navbar.open .nav a:nth-child(5) { transition-delay: .2s; } .navbar.open .nav a:nth-child(6) { transition-delay: .24s; }
.nav-all { margin-top: 26px; display: flex; align-items: center; justify-content: center; min-height: 50px; background: var(--navy); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; border-radius: var(--r); transition: background .25s; }
.nav-all:hover, .nav-all[aria-current] { background: var(--accent); }

/* ---------- latest headline line ---------- */
.flash { border-bottom: 1px solid var(--line); background: var(--white); font-size: 13.5px; }
.flash-in { display: flex; align-items: center; gap: 14px; min-height: 44px; }
.flash-label { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); flex-shrink: 0; }
.flash-label i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s ease-out infinite; }
.flash-items { position: relative; flex: 1; min-width: 0; height: 44px; }
.flash-items a { position: absolute; inset: 0; display: block; line-height: 44px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); opacity: 0; transform: translateY(9px); pointer-events: none; transition: opacity .5s var(--ease), transform .5s var(--ease), color .2s; }
.flash-items a.on { opacity: 1; transform: none; pointer-events: auto; }
.flash-items a.out { transform: translateY(-9px); }
.flash-items a:hover { color: var(--accent); }
.flash-items time { display: none; font-weight: 600; color: var(--ink); margin-right: 10px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(166, 25, 46, .45); } 70%, 100% { box-shadow: 0 0 0 7px rgba(166, 25, 46, 0); } }

/* ---------- shared ---------- */
.kicker { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); transition: color .2s; }
.kicker::before { content: ''; width: 14px; height: 1px; background: var(--gold); transition: width .3s var(--ease); }
.kicker:hover { color: var(--accent-dark); }
.kicker:hover::before { width: 22px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; font-size: 12.5px; color: var(--ink-3); letter-spacing: .01em; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gold); }
h1 a, h3 a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease), color .25s; }
h1 a:hover, h3 a:hover { background-size: 100% 1px; color: var(--accent-dark); }
.ph { display: block; align-self: start; overflow: hidden; border-radius: var(--r); background: var(--tint); }
.ph img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .9s var(--ease), opacity .7s var(--ease); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding-bottom: 14px; margin-bottom: 20px; border-bottom: 1px solid var(--ink); }
.sec-head h2 { position: relative; font-size: 25px; padding-top: 14px; }
.sec-head h2::before { content: ''; position: absolute; left: 0; top: 0; width: 34px; height: 2px; background: var(--gold); transform-origin: left; transition: transform .8s var(--ease) .15s; }
.more { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.more span { transition: transform .3s var(--ease); }
.more:hover span { transform: translateX(5px); }
.btn { display: inline-flex; align-items: center; min-height: 48px; margin-top: 22px; padding: 0 24px; background: var(--navy); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; border-radius: var(--r); transition: background .25s; }
.btn:hover { background: var(--accent); }

/* ---------- hero ---------- */
.hero { display: grid; gap: 30px; padding-block: 0 34px; }
.lead .ph { margin-inline: calc(var(--gut) * -1); border-radius: 0; }
.lead-body { padding-top: 16px; }
.lead h1 { font-size: clamp(27px, 7.4vw, 46px); margin: 6px 0 12px; }
.lead-dek { font-size: 16.5px; line-height: 1.55; color: var(--ink-2); margin-bottom: 14px; }
.top-h { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.top-list li { display: grid; grid-template-columns: 34px 1fr; gap: 8px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.top-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.top-n { font-family: var(--serif); font-style: italic; font-size: 30px; font-weight: 400; line-height: 1.05; color: var(--gold); transition: color .3s, transform .3s var(--ease); }
.top-list li:hover .top-n { color: var(--accent); transform: translateX(2px); }
.top-list h3 { font-size: 18px; line-height: 1.25; margin: 2px 0 6px; }

/* ---------- stats ---------- */
.stats { background: var(--navy); color: #fff; position: relative; }
.stats::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, var(--gold), rgba(176, 141, 87, 0) 70%); }
.stats-in { padding-block: 28px 30px; }
.stats-label { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.stats ul { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; }
.stats a { display: block; padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .2); transition: border-color .3s; }
.stats a:hover { border-color: var(--gold); }
.stats b { display: block; font-family: var(--serif); font-size: clamp(30px, 8vw, 44px); font-weight: 400; line-height: 1.05; font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.02em; }
.stats span { display: block; margin-top: 6px; font-size: 13px; line-height: 1.4; color: #aeb7c4; }

/* ---------- list + sidebar ---------- */
.split { display: grid; gap: 40px; padding-block: 40px; align-items: start; }
.row { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 14px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.rows .row:first-child { padding-top: 0; }
.rows .row:last-child { border-bottom: 0; padding-bottom: 0; }
.row .ph img { aspect-ratio: 1 / 1; }
.row .kicker { min-height: 26px; font-size: 10.5px; }
.row h3 { font-size: 17px; line-height: 1.25; margin: 1px 0 7px; }
.row-dek { display: none; }
.month { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); padding-bottom: 12px; margin: 38px 0 20px; border-bottom: 1px solid var(--ink); }
.month:first-child { margin-top: 0; }

.side { display: grid; gap: 22px; }
.box { background: var(--white); border: 1px solid var(--line); border-top: 2px solid var(--navy); border-radius: var(--r); padding: 22px 20px; }
.box-h { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 18px; }
.dates li { position: relative; padding: 0 0 18px 22px; border-left: 1px solid var(--line); }
.dates li:last-child { padding-bottom: 0; }
.dates li::before { content: ''; position: absolute; left: -5px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--white); border: 1.5px solid var(--gold); transition: background .3s, border-color .3s; }
.dates li:hover::before { background: var(--gold); }
.dates li.next::before { background: var(--accent); border-color: var(--accent); animation: pulse 2.4s ease-out infinite; }
.dates-d { display: block; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 2px; }
.dates a { display: block; padding-block: 3px; font-size: 14.5px; line-height: 1.45; transition: color .2s; }
.dates a:hover { color: var(--accent-dark); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; font-weight: 500; transition: border-color .25s, color .25s, background .25s; }
.chips a:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.chips span { font-size: 11.5px; color: var(--gold); }
.mini li { padding-block: 12px; border-bottom: 1px solid var(--line); }
.mini li:first-child { padding-top: 0; }
.mini a { display: block; font-family: var(--serif); font-size: 16.5px; line-height: 1.3; transition: color .2s; }
.mini a:hover { color: var(--accent-dark); }
.mini time { display: block; margin-top: 5px; font-size: 12px; color: var(--ink-3); }
.box > .more { margin-top: 12px; }

/* ---------- bands ---------- */
.band { padding-block: 40px; border-top: 1px solid var(--line); background: var(--white); }
.band + .band:nth-of-type(odd) { background: var(--paper); }
.band-plain { background: var(--paper); }
.cards { display: grid; gap: 0; }
.card { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 14px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.cards .card:first-child { padding-top: 0; }
.cards .card:last-child { border-bottom: 0; padding-bottom: 0; }
.card .ph img { aspect-ratio: 1 / 1; }
.card .kicker { min-height: 26px; font-size: 10.5px; }
.card h3 { font-size: 17px; line-height: 1.25; margin: 1px 0 7px; }
.also { display: grid; }
.also li { padding-block: 16px; border-bottom: 1px solid var(--line); }
.also li:first-child { padding-top: 0; }
.also li:last-child { border-bottom: 0; }
.also h3 { font-size: 19px; line-height: 1.25; margin: 2px 0 7px; }

/* ---------- page heads ---------- */
.page-head { padding-block: 26px 4px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .04em; color: var(--ink-3); margin-bottom: 14px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 28px; font-weight: 500; color: var(--ink-2); transition: color .2s; }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--accent); font-weight: 500; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.page-head h1 { font-size: clamp(32px, 8.5vw, 54px); font-weight: 400; }
.page-dek { font-size: 17px; color: var(--ink-2); margin-top: 12px; max-width: 60ch; }
.topic-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.topic-nav a { display: inline-flex; align-items: center; min-height: 32px; font-weight: 500; color: var(--ink); border-bottom: 1px solid transparent; transition: color .2s; }
.topic-nav a:hover { color: var(--accent); }
.page-head + .split, .page-head + .art-grid { padding-top: 30px; }

/* ---------- article ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 80; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); transform: scaleX(0); transform-origin: left; }
.art-head { padding-block: 24px 22px; }
.art-head .crumbs [aria-current] { display: none; }
.art-head h1 { font-size: clamp(28px, 7.6vw, 50px); }
.art-dek { font-family: var(--serif); font-size: clamp(18px, 4.6vw, 22px); line-height: 1.45; color: var(--ink-2); margin: 14px 0 18px; }
.art-head .meta { padding-top: 16px; border-top: 1px solid var(--line); }
.art-fig { margin-block: 0; }
.art-fig .ph { margin-inline: calc(var(--gut) * -1); border-radius: 0; }
.art-fig figcaption { font-size: 12px; color: var(--ink-3); margin-top: 8px; font-style: italic; }
.art-grid { display: grid; gap: 44px; padding-block: 28px 48px; align-items: start; }
.art-main { min-width: 0; }
.prose { font-size: 17px; line-height: 1.72; color: #1f2a3a; }
.prose > p { margin-bottom: 1.15em; }
.takeaways + p::first-letter { font-family: var(--serif); font-size: 3.5em; line-height: .82; float: left; padding: .08em .1em 0 0; color: var(--accent); font-weight: 500; }
.prose > h2 { font-size: 24px; margin: 1.7em 0 .55em; }
.prose > ul { margin: 0 0 1.25em; display: grid; gap: .55em; }
.prose > ul li { position: relative; padding-left: 22px; }
.prose > ul li::before { content: ''; position: absolute; left: 2px; top: .78em; width: 10px; height: 1px; background: var(--gold); }
.prose p a, .prose > ul a { color: var(--accent-dark); background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 1px no-repeat; padding-bottom: 1px; transition: background-size .3s var(--ease), color .2s; }
.prose p a:hover, .prose > ul a:hover { background-size: 100% 2px; color: var(--accent); }
.takeaways { background: var(--white); border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: var(--r); padding: 20px 18px; margin-bottom: 28px; }
.takeaways h2 { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.takeaways ul { display: grid; gap: 9px; font-size: 15.5px; line-height: 1.5; }
.takeaways li { position: relative; padding-left: 24px; }
.takeaways li::before { content: ''; position: absolute; left: 2px; top: .45em; width: 11px; height: 6px; border-left: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(-45deg); }
.readmore { display: grid; gap: 4px; margin: 1.7em 0; padding: 16px 0 16px 18px; border-left: 2px solid var(--gold); }
.readmore span { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.readmore a { font-family: var(--serif); font-size: 19px; line-height: 1.3; transition: color .2s; }
.readmore a:hover { color: var(--accent-dark); }
.sources { margin-top: 38px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.5; }
.sources h2 { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; }
.sources ul { display: grid; gap: 10px; }
.sources a { color: var(--ink-2); text-decoration: underline; text-decoration-color: #cfc9bb; text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
.sources a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.filed { margin-top: 26px; font-size: 13.5px; color: var(--ink-3); }
.filed a { color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--gold); transition: color .2s; }
.filed a:hover { color: var(--accent); }
.prevnext { display: grid; gap: 12px; margin-top: 26px; }
.pn { display: grid; gap: 6px; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .3s, transform .3s var(--ease); }
.pn:hover { border-color: var(--navy); transform: translateY(-2px); }
.pn span { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.pn b { font-family: var(--serif); font-size: 17px; font-weight: 500; line-height: 1.3; }
.pn-empty { display: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #b9c1cd; position: relative; }
.site-footer::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, var(--gold), rgba(176, 141, 87, 0) 70%); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 24px; padding-block: 44px 30px; }
.footer-brand, .footer-latest { grid-column: 1 / -1; }
.logo-light .logo-text { color: #fff; }
.footer-about { margin-top: 14px; font-size: 14.5px; line-height: 1.6; max-width: 40ch; color: #95a0af; }
.footer-h { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 36px; font-size: 14.5px; line-height: 1.35; transition: color .2s; }
.footer-latest li a { font-family: var(--serif); font-size: 16px; padding-block: 6px; }
.site-footer li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 20px calc(26px + env(safe-area-inset-bottom)); font-size: 12.5px; line-height: 1.6; color: #7f8a9a; }

.totop { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; width: 46px; height: 46px; display: grid; place-content: center; background: var(--white); color: var(--navy); border: 1px solid var(--line); border-radius: 50%; box-shadow: 0 8px 24px -12px rgba(15, 28, 46, .45); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .35s var(--ease), transform .35s var(--ease), background .25s, color .25s; }
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--navy); color: #fff; }

/* ---------- motion ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal .ph img { transform: scale(1.07); opacity: .4; }
.js .reveal.in .ph img { transform: none; opacity: 1; transition-delay: var(--d, 0ms); }
.js .sec-head.reveal h2::before { transform: scaleX(0); }
.js .sec-head.reveal.in h2::before { transform: none; }
.js .reveal.in:hover .ph img, .lead:hover .ph img { transform: scale(1.04); transition-delay: 0s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes unveil { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes settle { from { transform: scale(1.08); } to { transform: none; } }
.lead-body > *, .top, .art-head > *, .page-head > * { animation: rise .8s var(--ease) both; }
.lead-body > :nth-child(2), .art-head > :nth-child(2), .page-head > :nth-child(2) { animation-delay: .08s; }
.lead-body > :nth-child(3), .art-head > :nth-child(3), .page-head > :nth-child(3) { animation-delay: .16s; }
.lead-body > :nth-child(4), .art-head > :nth-child(4), .page-head > :nth-child(4) { animation-delay: .24s; }
.top { animation-delay: .2s; }
.lead > .ph, .art-fig .ph { animation: unveil 1s var(--ease) both; }
.lead > .ph img, .art-fig .ph img { animation: settle 1.4s var(--ease) both; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .reveal .ph img { opacity: 1; transform: none; }
  .js .sec-head.reveal h2::before { transform: none; }
  .nav a { opacity: 1; transform: none; }
}

/* ---------- >= 480: roomier thumbnails ---------- */
@media (min-width: 480px) {
  :root { --gut: 22px; }
  .row, .card { grid-template-columns: 150px minmax(0, 1fr); gap: 18px; }
  .row .ph img, .card .ph img { aspect-ratio: 4 / 3; }
  .row h3, .card h3 { font-size: 19px; }
  .flash-items time { display: inline; }
}

/* ---------- >= 700: tablet ---------- */
@media (min-width: 700px) {
  :root { --gut: 28px; }
  .util { display: block; }
  .lead .ph, .art-fig .ph { margin-inline: 0; border-radius: var(--r); }
  .hero { padding-top: 28px; }
  .lead-dek { font-size: 18px; }
  .stats ul { grid-template-columns: repeat(4, 1fr); }
  .stats-in { padding-block: 34px; }
  .row { grid-template-columns: 220px minmax(0, 1fr); gap: 22px; padding-block: 22px; }
  .row .ph img { aspect-ratio: 16 / 10; }
  .row .kicker, .card .kicker { min-height: 26px; font-size: 11px; }
  .row h3 { font-size: 22px; margin-bottom: 8px; }
  .row-dek { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; line-height: 1.5; color: var(--ink-2); margin-bottom: 10px; }
  .side { grid-template-columns: 1fr 1fr; align-items: start; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
  .card { display: block; padding: 0; border: 0; }
  .card .ph img { aspect-ratio: 16 / 10; }
  .card-body { padding-top: 14px; }
  .card h3 { font-size: 19px; margin: 3px 0 9px; }
  .also { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .also li:nth-child(2) { padding-top: 0; }
  .also li:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
  .sec-head h2 { font-size: 29px; }
  .band { padding-block: 54px; }
  .split { padding-block: 54px; }
  .art-head { max-width: 860px; padding-block: 40px 28px; text-align: center; }
  .art-head .crumbs, .art-head .meta { justify-content: center; }
  .art-fig { max-width: 1000px; }
  .art-fig figcaption { text-align: center; }
  .prose { font-size: 18px; }
  .takeaways { padding: 24px 26px; }
  .prevnext { grid-template-columns: 1fr 1fr; }
  .pn-next { text-align: right; }
  .pn-empty { display: block; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; padding-block: 56px 36px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-latest { grid-column: auto; grid-row: span 1; }
  .page-head { padding-block: 44px 6px; }
}

/* ---------- >= 1000: desktop ---------- */
@media (min-width: 1000px) {
  :root { --gut: 32px; }
  .mast { position: static; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 0; }
  .mast-in { justify-content: center; height: auto; padding-block: 30px 26px; }
  .menu-btn { display: none; }
  .logo-mark svg { width: 42px; height: 42px; }
  .mast .logo { gap: 16px; }
  .mast .logo-text { font-size: 40px; }
  .mast .logo-sub { display: block; }
  .site-footer .logo-text { font-size: 24px; }

  .navbar { position: sticky; inset: auto; top: 0; z-index: 60; visibility: visible; opacity: 1; overflow: visible; background: rgba(251, 250, 247, .94); backdrop-filter: blur(12px) saturate(1.3); -webkit-backdrop-filter: blur(12px) saturate(1.3); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); transition: box-shadow .4s var(--ease); }
  .navbar.stuck { box-shadow: 0 10px 30px -22px rgba(15, 28, 46, .55); }
  .navbar-in { flex-direction: row; align-items: center; justify-content: center; padding-block: 0; min-height: 52px; position: relative; }
  .navbar-mark { display: block; position: absolute; left: var(--gut); top: 50%; opacity: 0; transform: translate(-8px, -50%); transition: opacity .4s var(--ease), transform .4s var(--ease); pointer-events: none; }
  .navbar.stuck .navbar-mark { opacity: 1; transform: translate(0, -50%); pointer-events: auto; }
  .nav { flex-direction: row; gap: 2px; }
  .nav a { position: relative; min-height: 52px; padding: 0 15px; font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-2); border-bottom: 0; opacity: 1; transform: none; transition: color .25s; white-space: nowrap; }
  .nav a::after { content: ''; position: absolute; left: 15px; right: 15px; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
  .nav a:hover, .nav a[aria-current] { color: var(--ink); }
  .nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
  .nav-all { position: absolute; right: var(--gut); top: 50%; transform: translateY(-50%); margin: 0; min-height: 32px; padding: 0 16px; font-size: 11px; }

  .hero { grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: 48px; padding-block: 40px 52px; }
  .lead-body { padding-top: 22px; }
  .lead h1 { font-size: clamp(36px, 3.5vw, 46px); margin: 8px 0 14px; }
  .lead-dek { max-width: 60ch; }
  .top { border-left: 1px solid var(--line); padding-left: 36px; }
  .top-list li { padding-block: 17px; }
  .stats-in { display: flex; align-items: center; gap: 44px; padding-block: 36px; }
  .stats-label { margin: 0; writing-mode: vertical-rl; transform: rotate(180deg); }
  .stats ul { flex: 1; gap: 28px; }
  .stats a { padding-left: 22px; }
  .split, .art-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 60px; }
  .split { padding-block: 64px; }
  .side { grid-template-columns: 1fr; position: sticky; top: 76px; }
  .row { grid-template-columns: 260px minmax(0, 1fr); gap: 26px; padding-block: 26px; }
  .row h3 { font-size: 24px; }
  .cards { gap: 36px; }
  .card h3 { font-size: 21px; }
  .band { padding-block: 64px; }
  .art-grid { padding-block: 44px 72px; }
  .art-main { max-width: 700px; }
  .prose { font-size: 18.5px; }
  .prose > h2 { font-size: 28px; }
  .footer-grid { grid-template-columns: 1.5fr .8fr 1.5fr .9fr; gap: 48px; }
  .footer-brand { grid-column: auto; }
  .totop { right: 28px; bottom: 28px; }
}

/* ---------- partner content ---------- */
.partner-tag { display: inline-flex; align-items: center; min-height: 20px; margin-left: 10px; padding: 0 7px; font-size: 9.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); border: 1px solid var(--line); border-radius: 2px; vertical-align: middle; }
.disclosure { margin-top: 18px; font-size: 13px; line-height: 1.5; color: var(--ink-3); font-style: italic; }
@media (min-width: 700px) { .art-fig + .disclosure { max-width: 1000px; text-align: center; } }

/* ---------- 7-item nav: keep it on one line on smaller desktops ---------- */
@media (min-width: 1000px) {
  .nav-all { position: static; transform: none; margin-left: 14px; }
}
@media (min-width: 1000px) and (max-width: 1239px) {
  .navbar-mark { display: none; }
  .nav a { padding: 0 7px; font-size: 11px; letter-spacing: .06em; }
  .nav-all { white-space: nowrap; margin-left: 10px; padding: 0 12px; }
  .nav a::after { left: 7px; right: 7px; }
}
