/* Shoalin Harischandre portfolio v2
   Palette is taken from a circuit board: laminate, solder mask, silkscreen, copper, and the signal teal from the DJDB8 film. */
@font-face { font-family: "Chakra Petch"; font-weight: 500; font-display: swap; src: url(../fonts/chakra-petch-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 600; font-display: swap; src: url(../fonts/chakra-petch-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-display: swap; src: url(../fonts/instrument-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 500; font-display: swap; src: url(../fonts/instrument-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-display: swap; src: url(../fonts/instrument-sans-latin-600-normal.woff2) format("woff2"); }
:root {
  --laminate: #0a1215;
  --mask: #0f1c1b;
  --mask-2: #142624;
  --line: #22403c;
  --silk: #e6ece7;
  --dim: #92a3a0;
  --copper: #d58a52;
  --copper-dim: #8a5a37;
  --signal: #46d2c4;
  --display: "Chakra Petch", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --chamfer: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--laminate); color: var(--silk);
  font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* type */
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(44px, 7.4vw, 104px); }
h2 { font-size: clamp(30px, 3.6vw, 48px); }
h3 { font-size: 22px; line-height: 1.25; }
p { margin: 0 0 1em; max-width: 66ch; }
.lede { font-size: clamp(18px, 1.6vw, 22px); color: var(--silk); max-width: 46ch; }
.muted { color: var(--dim); }

/* chamfered shapes: the sharp-cornered frames from the film */
.cham { clip-path: polygon(var(--chamfer) 0, 100% 0, 100% calc(100% - var(--chamfer)), calc(100% - var(--chamfer)) 100%, 0 100%, 0 var(--chamfer)); }

/* nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 40; transition: background .3s; }
.nav.solid { background: rgba(10, 18, 21, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.mono { font: 600 20px var(--display); text-decoration: none; display: flex; gap: 10px; align-items: center; }
.mono b { width: 34px; height: 34px; display: grid; place-items: center; background: var(--copper); color: var(--laminate); font-size: 15px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.nav ul { list-style: none; display: flex; gap: clamp(14px, 2.4vw, 34px); margin: 0; padding: 0; }
.nav ul a { text-decoration: none; color: var(--dim); font-size: 15px; transition: color .2s; }
.nav ul a:hover, .nav ul a[aria-current] { color: var(--silk); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 600 15px var(--display); text-decoration: none; padding: 14px 24px;
  background: var(--copper); color: var(--laminate); border: 0; cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); transition: background .2s; }
.btn:hover { background: #e59c65; }
.btn.ghost { background: transparent; color: var(--silk); box-shadow: inset 0 0 0 1px var(--line); clip-path: none; }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--signal); color: var(--signal); }
.row { display: flex; gap: 14px; flex-wrap: wrap; }

/* hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; animation: push 26s ease-out both; }
@keyframes push { from { transform: scale(1.12); } to { transform: scale(1.0); } }
.hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,18,21,.94) 0%, rgba(10,18,21,.7) 38%, rgba(10,18,21,.05) 72%), linear-gradient(0deg, var(--laminate) 0%, transparent 32%); }
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(56px, 10vh, 120px); }
.hero h1 { max-width: 9ch; }
.hero .lede { margin: 22px 0 34px; }
.hero-caption { position: absolute; right: var(--gutter); bottom: 28px; z-index: 2; font-size: 13px; color: var(--dim); text-decoration: none; }
.hero-caption:hover { color: var(--signal); }

/* sections */
section { padding: clamp(72px, 11vw, 140px) 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px 64px; align-items: end; margin-bottom: 56px; }
.sec-head p { margin: 0; color: var(--dim); }

/* focus areas: three disciplines across the stack */
.stack { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stack > div { padding: 32px 28px 8px 0; border-right: 1px solid var(--line); }
.stack > div + div { padding-left: 28px; }
.stack > div:last-child { border-right: 0; }
.stack .layer { font: 500 14px var(--display); color: var(--copper); margin-bottom: 18px; display: block; }
.stack h3 { margin-bottom: 12px; }
.stack p { color: var(--dim); font-size: 16px; }
.stack .tools { font-size: 14px; color: var(--silk); opacity: .8; }

/* featured project */
.feature { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 0; background: var(--mask); }
.feature .pic { position: relative; min-height: 420px; }
.feature .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature .txt { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; }
.feature .txt h2 { margin: 10px 0 18px; }
.kicker { font: 500 14px var(--display); color: var(--signal); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; margin: 26px 0 34px; }
.stat b { display: block; font: 600 32px var(--display); color: var(--silk); }
.stat span { font-size: 14px; color: var(--dim); }
.feature .btn { align-self: flex-start; margin-top: auto; }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 80px; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding: 0 0 30px 28px; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 8px; width: 9px; height: 9px; background: var(--copper); transform: rotate(45deg); }
.timeline li.planned::before { background: var(--laminate); box-shadow: inset 0 0 0 1.5px var(--signal); }
.timeline .when { font: 500 14px var(--display); color: var(--dim); }
.timeline h3 { font-size: 19px; margin: 4px 0 4px; }
.timeline p { color: var(--dim); font-size: 15px; margin: 0; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 64px 0 40px; }
footer .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
footer h2 { margin-bottom: 14px; }
footer a.mail { font: 500 clamp(20px, 2.4vw, 30px) var(--display); color: var(--copper); text-decoration: none; }
footer a.mail:hover { color: var(--silk); }
footer small { color: var(--dim); font-size: 13px; }

/* projects index */
.page-head { padding: 160px 0 56px; }
.page-head p { margin-top: 20px; color: var(--dim); max-width: 58ch; }
.pcard { text-decoration: none; display: block; background: var(--mask); transition: background .25s; }
.pcard:hover { background: var(--mask-2); }
.pcard .pic { overflow: hidden; aspect-ratio: 16 / 10; background: #000; }
.pcard .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.pcard:hover .pic img { transform: scale(1.04); }
.pcard .body { padding: 24px 26px 28px; }
.pcard h3 { margin: 6px 0 8px; }
.pcard p { color: var(--dim); font-size: 15px; margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 0; list-style: none; }
.tags li { font-size: 13px; color: var(--silk); padding: 4px 10px; box-shadow: inset 0 0 0 1px var(--line); }
.pcard.big { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); margin-bottom: 24px; }
.pcard.big .pic { aspect-ratio: auto; min-height: 440px; }
.pcard.big .body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.pcard.big h3 { font-size: clamp(28px, 3vw, 40px); }
.pcard.big p { font-size: 17px; }
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.badge { font: 500 13px var(--display); color: var(--copper); }
.badge.wip { color: var(--signal); }

/* case study */
.cs-hero { position: relative; padding: 150px 0 0; }
.cs-hero h1 { font-size: clamp(40px, 6vw, 84px); max-width: 14ch; }
.cs-hero .lede { margin: 24px 0 0; max-width: 54ch; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: 56px; }
.facts div { padding: 20px 20px 22px 0; }
.facts dt { font-size: 13px; color: var(--dim); }
.facts dd { margin: 4px 0 0; font: 500 17px var(--display); }
.cs-banner { margin-top: 8px; aspect-ratio: 21 / 9; overflow: hidden; }
.cs-banner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }

.subnav { position: sticky; top: 72px; z-index: 30; background: rgba(10,18,21,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: var(--max); display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.subnav a { display: block; padding: 16px 0 14px; font-size: 15px; color: var(--dim); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.subnav a.on { color: var(--silk); border-color: var(--copper); }

.cs-sec { padding: clamp(64px, 9vw, 120px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 120px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px 80px; }
.split h2 { position: sticky; top: 150px; align-self: start; }

/* film player */
.film { display: grid; grid-template-columns: minmax(260px, 400px) minmax(0, 1fr); gap: 40px 72px; align-items: start; }
.frame { position: relative; background: #000; padding: 10px; box-shadow: 0 0 0 1px var(--line);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px); }
.frame video { width: 100%; aspect-ratio: 9 / 16; background: #000; }
.switch { display: inline-flex; margin: 26px 0 30px; box-shadow: inset 0 0 0 1px var(--line); }
.switch button { font: 500 14px var(--body); background: none; color: var(--dim); border: 0; padding: 10px 16px; cursor: pointer; }
.switch button[aria-pressed="true"] { background: var(--mask-2); color: var(--silk); box-shadow: inset 0 -2px 0 var(--copper); }
.chapters { list-style: none; margin: 0; padding: 0; counter-reset: ch; }
.chapters button { width: 100%; display: grid; grid-template-columns: 56px 1fr; gap: 12px; text-align: left; background: none; border: 0;
  border-top: 1px solid var(--line); padding: 13px 0; color: var(--silk); font: 400 16px var(--body); cursor: pointer; }
.chapters button:hover .t, .chapters button.on .t { color: var(--signal); }
.chapters .t { font: 500 15px var(--display); color: var(--dim); }
.chapters small { display: block; color: var(--dim); font-size: 14px; }

/* system diagram */
.diagram { margin-top: 48px; background: var(--mask); padding: clamp(16px, 3vw, 36px); }
.diagram svg { width: 100%; height: auto; display: block; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.gallery button { padding: 0; border: 0; background: #000; cursor: zoom-in; overflow: hidden; grid-column: span 2; aspect-ratio: 16 / 9; }
.gallery button.wide { grid-column: span 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s; }
.gallery button:hover img { transform: scale(1.03); }
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(4,8,10,.95); display: none; place-items: center; padding: 24px; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 86vh; width: auto; }
.lightbox p { text-align: center; color: var(--dim); margin: 14px auto 0; font-size: 15px; }
.lightbox .close, .lightbox .nx, .lightbox .pv { position: absolute; background: none; border: 0; color: var(--silk); font: 500 15px var(--display); cursor: pointer; padding: 12px; }
.lightbox .close { top: 16px; right: 16px; }
.lightbox .pv { left: 8px; top: 50%; } .lightbox .nx { right: 8px; top: 50%; }

/* empty states for content still to come */
.slot { border: 1px dashed var(--copper-dim); padding: 40px 32px; display: grid; gap: 8px; align-content: center; min-height: 220px; background: rgba(213,138,82,.03); }
.slot h3 { font-size: 19px; }
.slot p { color: var(--dim); font-size: 15px; margin: 0; }
.slot code { font-size: 13px; color: var(--copper); }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.slots .slot.span2 { grid-column: span 2; }
.report { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 40px 72px; align-items: start; }

.next { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 56px 0; }
.next a { text-decoration: none; }

/* intro: the board routes itself, then hands over to the hero */
.intro { position: fixed; inset: 0; z-index: 100; background: var(--laminate); display: grid; place-items: center; transition: opacity .9s ease, visibility .9s; }
.intro.done { opacity: 0; visibility: hidden; }
.intro canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro .name { position: relative; text-align: center; opacity: 0; transform: translateY(8px); transition: opacity .8s ease, transform .8s ease; }
.intro.named .name { opacity: 1; transform: none; }
.intro .name strong { display: block; font: 600 clamp(30px, 5vw, 64px) var(--display); }
.intro .name span { color: var(--dim); font-size: clamp(15px, 1.4vw, 18px); }
.intro .skip { position: absolute; right: 24px; bottom: 22px; background: none; border: 0; color: var(--dim); font: 500 14px var(--body); cursor: pointer; padding: 10px; }
.intro .skip:hover { color: var(--silk); }

@media (max-width: 960px) {
  .sec-head, .about, .split, .film, .report { grid-template-columns: minmax(0, 1fr); }
  .split h2 { position: static; }
  .feature, .pcard.big { grid-template-columns: minmax(0, 1fr); }
  .feature .pic, .pcard.big .pic { min-height: 0; aspect-ratio: 16 / 10; }
  .feature .pic img { position: static; }
  .pgrid, .slots { grid-template-columns: minmax(0, 1fr); }
  .slots .slot.span2 { grid-column: auto; }
  .stack { grid-template-columns: minmax(0, 1fr); }
  .stack > div, .stack > div + div { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px 0 12px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .gallery button, .gallery button.wide { grid-column: auto; }
  .film .frame { max-width: 360px; }
}
@media (max-width: 640px) {
  .nav ul li.opt { display: none; }
  .hero::after { background: linear-gradient(0deg, rgba(10,18,21,.97) 18%, rgba(10,18,21,.55) 60%, rgba(10,18,21,.25) 100%); }
  .hero-caption { display: none; }
  .cs-banner { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
@media (max-width: 760px) { .opt-name { display: none; } }
.stat b { white-space: nowrap; }
.stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 40px; }
@media (max-width: 760px) { .stats.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* real build: photos and a clip, then design files */
.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ph, .dz, .fig { margin: 0; }
.ph button, .dz button, .fig button { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; overflow: hidden; }
.ph button, .ph video { aspect-ratio: 9 / 14; background: #000; }
.ph video { width: 100%; object-fit: cover; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ph button:hover img, .dz button:hover img { transform: scale(1.03); }
figcaption { font-size: 14px; color: var(--dim); margin-top: 10px; }
.sub-h { margin: 64px 0 20px; font-size: 22px; }
.design-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, .7fr); gap: 14px; align-items: start; }
.dz button { background: #05090a; aspect-ratio: 4 / 3; display: grid; place-items: center; }
.dz.wide button { aspect-ratio: 8 / 3; }
.dz img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s ease; }
/* results */
.spec-wrap { overflow-x: auto; margin-bottom: 48px; }
.spec { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 720px; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 16px 18px 16px 0; border-bottom: 1px solid var(--line); }
.spec thead th { font: 500 14px var(--display); color: var(--copper); border-bottom-color: var(--copper-dim); }
.spec tbody th { font: 600 16px var(--display); width: 16%; }
.spec td { color: var(--dim); width: 38%; }
.spec td:last-child { color: var(--silk); width: 46%; }
.fig-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.fig button { background: #fff; padding: 14px; aspect-ratio: 16 / 10; display: grid; place-items: center; }
.fig img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pdf-frame { background: #2a2f31; height: min(82vh, 860px); }
.pdf-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 960px) {
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .design-grid, .fig-grid { grid-template-columns: minmax(0, 1fr); }
  .pdf-frame { height: 70vh; }
}
.pdf-cover { display: none; }
@media (max-width: 960px) {
  .pdf-frame { height: auto; background: none; }
  .pdf-frame iframe { display: none; }
  .pdf-cover { display: block; position: relative; text-decoration: none; }
  .pdf-cover img { width: 100%; max-width: 420px; }
  .pdf-cover span { display: inline-block; margin-top: 12px; color: var(--copper); font: 500 15px var(--display); }
}

/* ================= motion ================= */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vt-in .45s cubic-bezier(0, 0, .2, 1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }
html.page-enter body { opacity: 0; }
body { transition: opacity .45s ease; }
html.page-leave body { opacity: 0; transition-duration: .22s; }

/* intro hands over: name lifts away while the die opens to the hero */
.intro.leaving .name { opacity: 0; transform: translateY(-14px) scale(.98); transition: opacity .45s ease, transform .6s ease; }
.intro { transition: opacity .55s ease .05s, visibility .6s; }

/* hero entrance */
.hero h1 .w { display: inline-block; white-space: nowrap; }
.hero h1 .ch { display: inline-block; opacity: 0; transform: translateY(.35em); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.hero-in .hero h1 .w { display: inline-block; white-space: nowrap; }
.hero h1 .ch { opacity: 1; transform: none; }
.hero .lede, .hero .row { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.hero-in .hero .lede { opacity: 1; transform: none; transition-delay: .65s; }
.hero-in .hero .row { opacity: 1; transform: none; transition-delay: .85s; }
.hero-caption { opacity: 0; transition: opacity .8s ease 1.2s, color .2s; }
.hero-in .hero-caption { opacity: 1; }
.hero-media img { animation-play-state: paused; }
.hero-in .hero-media img, .no-intro .hero-media img { animation-play-state: running; }

/* diagrams */
.pre-draw polygon, .pre-draw rect, .pre-draw text { opacity: 0; transform: translateY(6px); transition: opacity .5s ease, transform .5s ease; transform-box: fill-box; }
.pre-draw.drawn polygon, .pre-draw.drawn rect, .pre-draw.drawn text { opacity: 1; transform: none; }

/* results rows */
.rv { opacity: 0; transform: translateX(-14px); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.rv.in { opacity: 1; transform: none; }

/* hover details */
.pcard { position: relative; transition: background .25s, transform .35s cubic-bezier(.2, .8, .2, 1); }
.pcard::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2, .8, .2, 1); z-index: 2; }
.pcard:hover { transform: translateY(-4px); }
.pcard:hover::before { transform: scaleX(1); }
.pcard:hover h3 { color: var(--signal); }
.pcard h3 { transition: color .25s; }
.btn { background-image: linear-gradient(100deg, transparent 0 40%, rgba(255, 255, 255, .28) 50%, transparent 60% 100%); background-size: 250% 100%; background-position: 130% 0; background-repeat: no-repeat;
  transition: background-color .2s, background-position .6s ease, box-shadow .2s, color .2s; }
.btn:hover { background-position: -30% 0; }
.btn.ghost { background-image: linear-gradient(100deg, transparent 0 40%, rgba(70, 210, 196, .16) 50%, transparent 60% 100%); }
.nav ul a { position: relative; padding: 6px 0; }
.nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--copper); transform: scaleX(0); transform-origin: right; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.nav ul a:hover::after, .nav ul a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.gallery button, .ph button, .dz button, .fig button { transition: box-shadow .25s; }
.gallery button:hover, .ph button:hover, .dz button:hover, .fig button:hover { box-shadow: 0 0 0 2px var(--signal); }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .hero h1 .ch, .hero .lede, .hero .row, .hero-caption, .rv, .pre-draw polygon, .pre-draw rect, .pre-draw text { opacity: 1 !important; transform: none !important; }
  .pcard:hover { transform: none; }
}
