:root {
  --paper: #0f0e0d;
  --paper-2: #1c1a17;
  --ink: #efebe3;
  --ink-2: #c4beb2;
  --muted: #8d877c;
  --line: #2d2a25;
  --on-acc: #141413;
  --acc: #f4a711;
  --r-sm: 16px;
  --r: 24px;
  --r-lg: 40px;
  --gutter: clamp(16px, 3.4vw, 48px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --display: "Inter Tight", "Noto Sans TC", system-ui, -apple-system, "PingFang TC", sans-serif;
  --sans: "Inter Tight", "Noto Sans TC", system-ui, -apple-system, "PingFang TC", sans-serif;
  --tc: "Noto Sans TC", "Inter Tight", system-ui, -apple-system, "PingFang TC", sans-serif;
  --script: "Mrs Saint Delafield", cursive;
  --serif: "Instrument Serif", "Noto Serif TC", Georgia, serif;
  --zhs: "Noto Serif TC", serif;
  --mono: "Geist Mono", "Noto Sans TC", ui-monospace, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.15; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--acc); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.display {
  font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; line-height: .9;
}
.label {
  font: 400 11px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0;
}

/* Résumé-style kicker: "01 — 作品集 / Portfolio" */
.kick { margin: 0 0 clamp(20px, 3vw, 40px); font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.kick b { color: var(--acc); font-weight: 500; }
.cta .kick, .cta .kick b { color: var(--on-acc); }

/* Vertical column lines with crosshairs, drifting slowly (as on the résumé) */
.bgrid {
  position: fixed; inset: 0 -320px 0 0; z-index: -1; pointer-events: none; opacity: .8;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='180'><path d='M160 174v12M154 180h12' stroke='%23efebe3' stroke-opacity='.35'/></svg>") 0 0 / 320px 180px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 160px 100%;
  animation: grid-drift 40s linear infinite;
}
@keyframes grid-drift { to { transform: translateX(-320px); } }

/* Paper texture (same recipe as the résumé site) */
body { position: relative; }
body::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='600'><filter id='p' x='0' y='0'><feTurbulence type='fractalNoise' baseFrequency='.035 .06' numOctaves='5' seed='3' stitchTiles='stitch'/><feDiffuseLighting lighting-color='%23fff' surfaceScale='1.6'><feDistantLight azimuth='45' elevation='58'/></feDiffuseLighting></filter><rect width='600' height='600' filter='url(%23p)'/></svg>");
  background-size: 600px 600px; mix-blend-mode: soft-light; opacity: .5;
}
body::after {
  content: ""; position: fixed; inset: -100px; z-index: 150; pointer-events: none; opacity: .09; mix-blend-mode: screen; filter: invert(1);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain .8s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-37px, 21px); } 40% { transform: translate(24px, -43px); }
  60% { transform: translate(-12px, 38px); } 80% { transform: translate(41px, 9px); } 100% { transform: translate(0, 0); }
}
.glow {
  position: fixed; z-index: -2; width: 1100px; height: 1100px; left: 35%; top: -35%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(244, 167, 17, .12), transparent 60%);
  animation: glow 28s ease-in-out infinite alternate;
}
@keyframes glow { 33% { transform: translate(-36vw, 22vh); } 66% { transform: translate(6vw, 48vh); } 100% { transform: translate(-18vw, 8vh); } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: 1600px; margin: 0 auto; padding: 14px clamp(20px, 6vw, 120px);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--acc); transform-origin: left; transform: scaleX(var(--p, 0)); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 17px/1 var(--sans); letter-spacing: -.02em; justify-self: start; }
.brand img { width: 34px; height: 34px; transition: transform .5s var(--ease); }
.brand:hover img { transform: rotate(-12deg) scale(1.06); }
.nav { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 9%, transparent); }
.nav a {
  font: 500 11.2px/1 var(--sans); text-decoration: none; padding: 8px 13px; border-radius: 999px;
  transition: background .2s, color .2s;
}
.nav a:hover { background: var(--acc); color: var(--on-acc); }
.nav a[aria-current] { background: var(--ink); color: var(--paper); }
.nav a[aria-current]:hover { background: var(--ink); color: var(--paper); }
.status { justify-self: end; display: flex; align-items: center; font: 500 13px/1 var(--sans); color: var(--ink); text-decoration: none; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); margin-right: 10px; }

/* Micro-motion */
.hero-title .ln { display: block; overflow-x: visible; overflow-y: clip; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-title .ln > span { display: block; animation: rise 1.1s var(--ease) both; animation-delay: calc(.12s + var(--i) * .12s); }
@keyframes rise { from { transform: translateY(105%); } }
.hero-card { animation: card-in 1.2s var(--ease) .2s both; }
@keyframes card-in { from { clip-path: inset(12% 10% 12% 10% round 40px); } to { clip-path: inset(0 round 40px); } }
.hero-portrait { transform: translate(calc(var(--mx, 0) * -16px), calc(var(--py, 0px) + var(--my, 0) * -12px)) scale(1.08); transition: transform .5s var(--ease); will-change: transform; }
.hero-row, .hero-stats { animation: fade-up .9s var(--ease) .55s both; }
.hero-stats { animation-delay: .7s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } }
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* Hero pointer effects */
.hero-title .ch { display: inline-block; transition: transform .45s var(--ease), color .3s; }
.hero-title .stop { color: var(--acc); font-style: italic; }
.hero-card {
  --rx: 0deg; --ry: 0deg; --mx: 0; --my: 0; --gx: 50%; --gy: 50%;
  transform: perspective(1400px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .6s var(--ease); will-change: transform;
}
.hero-card.tilting { transition: transform .12s linear; }
.hero-card::after {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 255, 255, .28), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.hero-card.tilting::after { opacity: 1; }
.sr-filter { position: absolute; width: 0; height: 0; }
.hero-card.warping .hero-portrait { filter: url(#warp); }
.hero-noise {
  position: absolute; inset: -60px; z-index: 2; pointer-events: none; opacity: 0; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  transition: opacity .35s;
}
.hero-card.warping .hero-noise { opacity: .55; animation: grain .5s steps(5) infinite; }
.hero-badge {
  position: absolute; z-index: 3; right: 20px; top: 20px; width: 99px; height: 99px; border-radius: 50%;
  background: var(--paper); fill: var(--ink); font: 600 9px/1 var(--sans);
  animation: spin 22s linear infinite; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .35);
}
.hero-badge-mark { position: absolute; z-index: 4; right: 49px; top: 49px; width: 41px; height: 41px; transition: transform .5s var(--ease); }
.hero-card:hover .hero-badge { animation-duration: 8s; }
.hero-card:hover .hero-badge-mark { transform: rotate(-20deg) scale(1.1); }
.hero-badge-mark img { display: block; width: 100%; height: 100%; }
@keyframes spin { to { transform: rotate(360deg); } }
.circles a { will-change: transform; }

/* Notched round buttons that sit in a cut-out of a card */
.notch-btn {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: var(--ink); color: var(--paper); text-decoration: none;
  transition: transform .35s var(--ease), background .2s, color .2s;
}
.notch-btn:hover { transform: rotate(45deg); background: var(--acc); color: var(--on-acc); }
.notch-btn svg { width: 22px; height: 22px; }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px);
  padding-top: clamp(24px, 4vw, 56px); padding-bottom: clamp(56px, 8vw, 112px);
}
.hero-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding-top: clamp(16px, 4vw, 64px); }
.hero-copy { container-type: inline-size; }
/* "Portfolio" is ~3.55em wide, so 26.5% of the column keeps it inside with a little room */
.hero-title { font-size: clamp(64px, 12vw, 190px); font-size: min(32cqi, 220px); margin-left: -.04em; white-space: nowrap; }
.hero-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; }
.circles { display: flex; align-items: center; }
.circles a {
  display: grid; place-items: center; width: 48px; height: 48px; margin-right: -6px; border-radius: 50%;
  border: 1.5px solid var(--ink); background: var(--paper); font: 400 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  transition: background .2s, transform .25s var(--ease);
}
.circles a:hover { background: var(--acc); border-color: var(--acc); color: var(--on-acc); transform: translateY(-3px); position: relative; }
.hero-lede { margin: 0; font: 500 clamp(15px, 1.25vw, 18px)/1.5 var(--sans); max-width: 26em; text-align: right; justify-self: end; }
.hero-stats { list-style: none; margin: 0; padding: 28px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.hero-stats li { display: grid; gap: 10px; }
.hero-stats b { font: 400 clamp(64px, 7vw, 112px)/.9 var(--serif); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hero-stats sup { font-size: .42em; vertical-align: top; position: relative; top: .2em; margin-left: .04em; color: var(--acc); }
.hero-stats li > span { font-size: 14px; line-height: 1.45; color: var(--ink-2); max-width: 17em; }

.hero-card {
  position: relative; align-self: stretch; min-height: clamp(420px, 44vw, 680px);
  background: var(--acc); border-radius: var(--r-lg); overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
  box-shadow: 0 40px 80px -40px rgba(140, 80, 0, .45);
}
.hero-portrait { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% 30%; }
.signature {
  position: absolute; z-index: 2; top: 9%; left: 9%; color: #fff; pointer-events: none;
  font: 400 clamp(64px, 8vw, 132px)/1 var(--script); transform: rotate(-8deg);
  text-shadow: 0 2px 20px rgba(0, 0, 0, .06);
}

/* Section heads */
.section-head { display: grid; gap: 20px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-title { font-size: clamp(60px, 9vw, 150px); }

/* Work grid */
.work { padding-bottom: clamp(96px, 12vw, 180px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: 400 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 11px 16px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--ink); border: 1.5px solid color-mix(in srgb, var(--ink) 75%, transparent);
  transition: background .2s, border-color .2s, color .2s, transform .15s;
}
.chip sup { font-size: 10px; color: var(--muted); margin-left: 3px; vertical-align: 5px; }
.chip:hover { background: var(--acc); border-color: var(--acc); color: var(--on-acc); }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip[aria-pressed="true"] sup { color: var(--acc); }

.grid {
  container-type: inline-size;
  list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: dense;
  grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) clamp(14px, 1.6vw, 24px);
}
.card { grid-column: span 4; }
.card.s5 { grid-column: span 5; }
.card.s7 { grid-column: span 7; }
.grid.filtered .card { grid-column: span 4; }
.card[hidden] { display: none; }
.card a { display: block; text-decoration: none; }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); background: var(--paper-2); }
/* the wide card lands at about 16:10, the narrow one a little taller than square */
.card.s5 .card-media, .card.s7 .card-media { aspect-ratio: auto; height: 36cqi; }
.grid.filtered .card .card-media { aspect-ratio: 4 / 3; height: auto; }
.card-media img, .card-media video { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
/* Title and categories rise in over the image on hover; always shown on touch screens */
.card-info {
  position: absolute; inset: auto 0 0 0; z-index: 1; padding: 64px 20px 18px; color: #fff;
  background: linear-gradient(to top, rgba(15, 12, 8, .72), rgba(15, 12, 8, .35) 55%, transparent);
  pointer-events: none;
}
.card-info h3 { font: 600 18px/1.3 var(--sans); letter-spacing: -.015em; }
.card-info p { margin: 6px 0 0; font: 400 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
@media (hover: hover) {
  .card-info { opacity: 0; transition: opacity .4s var(--ease); }
  .card-info h3, .card-info p { transform: translateY(14px); transition: transform .5s var(--ease); }
  .card-info p { transition-delay: .04s; }
  .card a:hover .card-info, .card a:focus-visible .card-info { opacity: 1; }
  .card a:hover .card-info h3, .card a:hover .card-info p,
  .card a:focus-visible .card-info h3, .card a:focus-visible .card-info p { transform: none; }
  .card a:hover .card-media img, .card a:hover .card-media video { transform: scale(1.035); }
}
.js .card { opacity: 0; transform: translateY(28px); }
.js .card.in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }

/* Project page */
.project-head { padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(32px, 4vw, 56px); }
.back { display: inline-flex; font: 500 14px/1 var(--sans); text-decoration: none; color: var(--ink-2); padding: 10px 16px; border-radius: 999px; background: var(--paper-2); margin-bottom: clamp(32px, 5vw, 64px); transition: background .2s; }
.back:hover { background: var(--acc); color: var(--on-acc); }
.project-head { container-type: inline-size; }
/* one line for every title: the longest (小瓦掃地機器人募資頁) is ~9.8em wide */
.project-title { font: 400 min(10cqi, 116px)/1.1 var(--serif); letter-spacing: -.02em; white-space: nowrap; }
.project-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: clamp(32px, 5vw, 64px); }
.project-top .back { margin-bottom: 0; }
.project-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.project-tags a {
  display: inline-block; padding: 9px 14px; border-radius: 999px; text-decoration: none;
  font: 400 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  border: 1.5px solid color-mix(in srgb, var(--ink) 75%, transparent); transition: background .2s, border-color .2s, color .2s;
}
.project-tags a:hover { background: var(--acc); border-color: var(--acc); color: var(--on-acc); }
.project-rule { margin-top: clamp(32px, 4vw, 56px); padding-top: 18px; border-top: 1px solid var(--ink); min-height: 1px; }
.project-link { font: 500 15px/1.4 var(--sans); text-decoration: underline; text-decoration-color: var(--acc); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.project-link:hover { color: var(--acc); }

.desc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 96px); padding-bottom: clamp(48px, 6vw, 88px); }
.desc-col .label { margin-bottom: 16px; }
.desc-col p { margin: 0 0 1em; color: var(--ink-2); font-family: var(--tc); line-height: 1.85; }
.desc-col[lang="en"] p { font-family: var(--sans); line-height: 1.65; font-size: 16px; }
.desc-col b, .desc-col strong { color: var(--ink); font-weight: 600; }

.gallery { display: grid; gap: clamp(12px, 1.4vw, 20px); }
.shot { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--paper-2); cursor: zoom-in; }
.shot img, .shot video { width: 100%; }

.pager { display: grid; grid-template-columns: 1fr 1.7fr; gap: clamp(12px, 1.4vw, 20px); padding-top: clamp(80px, 10vw, 140px); padding-bottom: clamp(24px, 3vw, 40px); }
.pager a {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; min-height: 220px;
  padding: 28px; border-radius: var(--r); text-decoration: none; overflow: hidden;
  background: var(--paper-2); transition: background .25s;
}
.pager a:hover { background: #e0ddd2; }
.pager b { font: 400 clamp(26px, 3vw, 44px)/1.1 var(--serif); letter-spacing: -.01em; position: relative; z-index: 1; }
.pager a.pager-next { background: var(--ink); color: var(--paper); padding-right: 46%; }
.pager-next .label { color: var(--acc); }
.pager-thumb { position: absolute; inset: 10px 10px 10px auto; width: calc(44% - 10px); border-radius: var(--r-sm); overflow: hidden; }
.pager-thumb img, .pager-thumb video { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.pager-next:hover .pager-thumb img, .pager-next:hover .pager-thumb video { transform: scale(1.05); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(15, 15, 14, .96);
  display: grid; grid-template-columns: 64px 1fr 64px; align-items: center;
  animation: fade .2s ease;
}
.lightbox[hidden] { display: none; }
.lb-stage { height: 100dvh; display: grid; place-items: center; padding: 56px 0; overflow: auto; }
.lb-stage img, .lb-stage video { max-height: calc(100dvh - 112px); width: auto; max-width: 100%; object-fit: contain; border-radius: 8px; }
.lightbox button {
  background: none; border: 0; color: #fff; font: 400 26px/1 var(--sans); cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%; justify-self: center;
}
.lightbox button:hover { background: rgba(255, 255, 255, .12); }
.lb-close { position: absolute; top: 10px; right: 10px; font-size: 34px !important; }
.lb-count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; margin: 0; color: #aaa; font: 500 13px/1 var(--sans); }
@keyframes fade { from { opacity: 0; } }

/* Footer */
.site-footer { padding-bottom: 8px; }
.cta {
  position: relative; background: var(--acc); color: var(--on-acc); --ink: var(--on-acc); border-radius: var(--r-lg);
  padding: clamp(40px, 6vw, 88px) clamp(24px, 5vw, 80px) clamp(48px, 6vw, 88px);
}
.cta-title { font-size: clamp(76px, 15vw, 240px); margin: 0 0 clamp(28px, 4vw, 48px) -.04em; }
.cta-title i { font-style: italic; }
.cta-mail { font: 600 clamp(18px, 2.2vw, 30px)/1.2 var(--sans); letter-spacing: -.02em; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; word-break: break-all; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding: 28px 4px 24px; font: 400 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1 var(--sans); text-decoration: none;
  padding: 14px 22px; border-radius: 999px; background: var(--ink); color: var(--paper);
}
.btn:hover { background: var(--acc); color: var(--on-acc); }
.hero-404 { min-height: 60vh; padding-top: 10vh; display: grid; align-content: start; gap: 24px; }
.hero-404 .hero-lede { text-align: left; justify-self: start; }

/* Responsive */
@media (max-width: 1100px) {
  .status { display: none; }
  .site-header__inner { grid-template-columns: auto 1fr; }
  .nav { justify-self: end; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding-top: 8px; }
  .hero-card { min-height: 0; aspect-ratio: 1 / 1.02; }
  .hero-badge { width: 78px; height: 78px; right: 14px; top: 14px; }
  .hero-badge-mark { width: 32px; height: 32px; right: 37px; top: 37px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card, .card.s5, .card.s7, .grid.filtered .card { grid-column: span 1; }
  .card.s5 .card-media, .card.s7 .card-media { aspect-ratio: 4 / 3; height: auto; }
}
@media (max-width: 720px) {
  .hero-row { grid-template-columns: 1fr; }
  .hero-lede { text-align: left; justify-self: start; }
  .desc { grid-template-columns: 1fr; }
  .pager { grid-template-columns: 1fr; }
  .pager a { min-height: 140px; }
  .pager a.pager-next { padding-right: 28px; padding-top: 216px; }
  .pager-thumb { inset: 10px 10px auto 10px; width: auto; height: 186px; }
  .lightbox { grid-template-columns: 1fr; }
  .lb-prev, .lb-next { position: absolute; bottom: 4px; }
  .lb-prev { left: 12px; } .lb-next { right: 12px; }
  .brand span { display: none; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
  .hero-stats b { font-size: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .card, .js .reveal { opacity: 1; transform: none; }
}
