/* isaiahnunez.com
   One idea carries the site: titles are cut through a mist-colored plate,
   so the work shows inside the letters. On tiles the plate retracts on
   hover to reveal the whole piece. */

:root {
  --mist: #F2F5F4;
  --card: #FBFCFC;
  --ink: #14231D;
  --body-ink: #2E4038;
  --green: #1E6F50;
  --green-deep: #14523B;
  --gold: #D9A441;
  --gold-ink: #8A6614;
  --sage: #5E6F68;
  --line: #D8E0DD;
  --mist-soft: color-mix(in srgb, var(--mist) 74%, var(--ink));

  --display: 'Bricolage Grotesque', 'Avenir Next', 'Segoe UI', sans-serif;
  --body: 'Newsreader', Georgia, serif;
  --mono: 'Spline Sans Mono', ui-monospace, 'SF Mono', Consolas, monospace;

  --wide: 76rem;
  --gutter: clamp(1.1rem, 3.2vw, 2rem);
  --ease: cubic-bezier(.65, 0, .35, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--mist); color: var(--ink);
  font-family: var(--body); font-size: 1.125rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }
[id] { scroll-margin-top: 5rem; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 1rem; top: -3rem; z-index: 50;
  background: var(--ink); color: var(--mist); padding: .5rem .9rem;
  font-family: var(--mono); font-size: .8rem; border-radius: 4px; text-decoration: none;
}
.skip:focus { top: 1rem; color: var(--mist); }

.label {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .05em;
  color: var(--sage); line-height: 1.5;
}

/* ---------- header / footer ---------- */

.site-head {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--mist) 90%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 3.75rem;
}
.mark {
  font-family: var(--display); font-weight: 800; font-size: 1.05rem;
  letter-spacing: -.01em; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.mark span { color: var(--green); }
.mark:hover { color: var(--ink); }
.nav { display: flex; gap: clamp(1rem, 2.4vw, 1.9rem); }
.nav a {
  font-family: var(--mono); font-size: .8rem; color: var(--sage); text-decoration: none;
  padding: .3rem 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--green-deep); }
.nav a[aria-current] { color: var(--ink); border-bottom-color: var(--gold); }

.site-foot { background: var(--ink); border-top: 1px solid color-mix(in srgb, var(--mist) 12%, var(--ink)); }
.site-foot .wrap {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  flex-wrap: wrap; padding-block: 1.6rem 2.4rem;
}
.site-foot p, .site-foot a { font-family: var(--mono); font-size: .75rem; color: var(--mist-soft); }
.site-foot nav { display: flex; gap: 1.2rem; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--gold); }

/* ---------- the cut-out ----------
   Two identical text layers sit over the image. The lower one paints mist
   boxes behind each line (the plate). The upper one paints the same image,
   aligned to the frame, through its letters. Result: the words are holes. */

.frame {
  position: relative; display: block; overflow: hidden; isolation: isolate;
  aspect-ratio: 1; border-radius: 4px; background: var(--ink);
}
.frame img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--pos, 50% 50%);
}
.cut {
  position: absolute; inset: -1px;
  font-family: var(--display); font-weight: 800;
  font-size: var(--cut-size, clamp(1.75rem, 3.1vw, 2.6rem));
  line-height: 1; letter-spacing: -.035em;
  clip-path: inset(0 0 0 0);
  transition: clip-path .55s var(--ease);
}
.cut-plate, .cut-letters {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
}
.cut .ln { display: block; padding: .1em .24em .13em .2em; white-space: nowrap; }
.cut-plate .ln { background: var(--mist); color: transparent; }
.cut-letters {
  background:
    linear-gradient(rgb(20 35 29 / var(--shade, .25)), rgb(20 35 29 / var(--shade, .25))),
    var(--img) var(--pos, 50% 50%) / cover no-repeat;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

/* ---------- tiles ---------- */

.grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.1rem, 2.4vw, 1.9rem) clamp(1rem, 2.2vw, 1.75rem);
}
.tile { display: block; color: inherit; text-decoration: none; }
.tile:hover { color: inherit; }
.tile[hidden] { display: none; }
.tile-meta {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: .7rem; font-family: var(--mono); font-size: .76rem; color: var(--sage);
}
.tile-meta span:last-child { color: var(--gold-ink); text-align: right; }
.tile:focus-visible { outline: none; }
.tile:focus-visible .frame { outline: 2px solid var(--green); outline-offset: 4px; }

@media (hover: hover) {
  .tile:hover .cut, .tile:focus-visible .cut { clip-path: inset(100% 0 0 0); }
  .tile:hover .tile-meta span:first-child { color: var(--green-deep); }
}

/* ---------- hero ---------- */

.hero { padding: clamp(2.6rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(11rem, 16.5rem);
  gap: 0 clamp(2rem, 4vw, 3.5rem); align-items: center;
}
.hero-grid .proof { grid-column: 1 / -1; }
.hero-name {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(3.7rem, 13.4vw, 12rem); line-height: .84; letter-spacing: -.045em;
  margin: 1.1rem 0 0;
}
.hero-name .meet {
  display: block; font-size: .27em; line-height: 1; letter-spacing: -.02em;
  color: var(--ink); margin-bottom: .16em;
}
/* the name is cut through to a strip of the actual work, panning slowly */
.hero-name .name {
  display: block; padding-bottom: .06em;
  background: url('/assets/hero-strip.webp') 0 50% / 14.4em 1.8em repeat-x;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: pan 110s linear infinite;
}
@keyframes pan { to { background-position-x: -14.4em; } }

.dek { max-width: 50ch; margin-top: 1.6rem; font-size: 1.2rem; color: var(--body-ink); }
.proof { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.8rem; list-style: none; }
.proof li {
  font-family: var(--mono); font-size: .72rem; color: var(--green-deep);
  border: 1px solid var(--line); background: var(--card);
  padding: .4rem .58rem; border-radius: 999px; white-space: nowrap;
}
.proof li.gold { color: var(--gold-ink); }

.hero-photo { position: relative; width: 100%; max-width: 19rem; justify-self: end; margin-bottom: .6rem; }
.hero-photo::before {
  content: ""; position: absolute; inset: 0; border-radius: 22px;
  background: var(--green); opacity: .13; transform: rotate(-4deg) translate(10px, 8px);
}
.hero-photo::after {
  content: ""; position: absolute; width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold); left: -15px; bottom: 30px; z-index: 3;
  animation: drift 5.5s ease-in-out infinite;
}
.hero-photo img {
  position: relative; z-index: 2; width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 22px; border: 1px solid var(--line);
}
.hero-photo .ring {
  position: absolute; z-index: 1; width: 88px; height: 88px; border-radius: 50%;
  border: 2px dashed var(--sage); opacity: .5; right: -24px; top: -22px;
  animation: drift 7s ease-in-out infinite reverse;
}
@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.rise { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .18s; } .d3 { animation-delay: .28s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- sections ---------- */

.work { padding: clamp(3rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--line); }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: .6rem 2rem; flex-wrap: wrap; margin-bottom: 1.3rem;
}
.section-head h2 {
  font-family: var(--display); font-weight: 800; letter-spacing: -.035em;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1;
}
.section-head a.label { text-decoration: none; }
.section-head a.label:hover { color: var(--green-deep); }
.hint-touch { display: none; }
@media (hover: none) { .hint-hover { display: none; } .hint-touch { display: inline; } }

.filters { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 2rem; }
.filters button {
  font: 500 .76rem/1 var(--mono); color: var(--green-deep); cursor: pointer;
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: .5rem .8rem; transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.filters button:hover { border-color: var(--green); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--mist); }

.doors { padding: 0 0 clamp(3.5rem, 7vw, 5.5rem); }
.doors-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.2vw, 1.75rem); }
.tile--door .frame { aspect-ratio: 16 / 9; --cut-size: clamp(2.2rem, 5vw, 4.2rem); }

/* ---------- contact band ---------- */

.contact { background: var(--ink); color: var(--mist); padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem); }
.contact .label { color: var(--mist-soft); }
.contact h2 {
  font-family: var(--display); font-weight: 800; letter-spacing: -.035em;
  font-size: clamp(2.1rem, 5.2vw, 3.8rem); line-height: 1.02; max-width: 17ch; margin-top: .9rem;
}
.contact p:not(.label) { margin-top: 1.2rem; max-width: 52ch; color: var(--mist-soft); }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
.btn {
  display: inline-block; font-family: var(--display); font-weight: 600; font-size: 1rem;
  color: var(--mist); text-decoration: none; padding: .85rem 1.5rem; border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--mist) 28%, var(--ink));
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover { color: var(--mist); border-color: var(--mist); transform: translateY(-1px); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #E4B458; border-color: #E4B458; color: var(--ink); }

/* ---------- project pages ---------- */

.project { padding-top: 1.6rem; }
.crumbs { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.crumbs a { font-family: var(--mono); font-size: .8rem; text-decoration: none; }
/* project titles: the page itself is the plate, the letters show this
   project's work, duotoned into the palette */
.title-cut {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(3rem, 9.6vw, 8.6rem); line-height: .86; letter-spacing: -.045em;
  margin: .2rem 0 clamp(1.2rem, 3vw, 2rem); padding-bottom: .06em;
  background: var(--tex) var(--pos, 50% 50%) / cover no-repeat;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.title-cut span { display: block; }
.frame--hero { aspect-ratio: 21 / 9; border-radius: 6px; }

.intro {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start;
  padding: clamp(1.8rem, 4vw, 2.8rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.lede { font-size: clamp(1.3rem, 2.3vw, 1.6rem); line-height: 1.4; color: var(--ink); max-width: 30ch; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 1.6rem; }
.facts div { border-top: 1px solid var(--line); padding-top: .7rem; }
.facts dd { font-family: var(--display); font-weight: 600; font-size: 1.02rem; line-height: 1.35; margin-top: .2rem; }

.article {
  display: grid; grid-template-columns: minmax(13rem, 19rem) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem); padding-block: clamp(2.4rem, 5vw, 3.6rem);
}
.side { align-self: start; position: sticky; top: 5.5rem; }
.line {
  font-family: var(--mono); font-size: .84rem; line-height: 1.55; color: var(--green-deep);
  background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0; padding: .9rem 1.1rem;
}
.line b {
  display: block; font-weight: 500; font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold-ink); margin-bottom: .45rem;
}
.out {
  display: inline-block; margin-top: 1.2rem; font-family: var(--mono); font-size: .82rem;
  text-decoration: none; border-bottom: 1px dashed var(--gold); padding-bottom: 2px;
}
.out:hover { border-bottom-style: solid; }

.prose { max-width: 40rem; }
.prose section + section { margin-top: 2.4rem; }
.prose h2 {
  font-family: var(--display); font-weight: 700; font-size: 1.45rem;
  letter-spacing: -.02em; line-height: 1.2; margin-bottom: .7rem;
}
.prose p { color: var(--body-ink); }
.prose p + p { margin-top: 1rem; }

.steps { list-style: none; counter-reset: step; display: grid; gap: 0; margin-top: .4rem; }
.steps li {
  counter-increment: step; display: grid; grid-template-columns: 2.4rem 1fr;
  column-gap: .9rem; position: relative; padding-bottom: 1.3rem;
}
.steps li::before {
  content: counter(step); grid-row: 1 / span 2;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--card); border: 1px solid var(--line);
  font: 500 .78rem/1 var(--mono); color: var(--gold-ink); position: relative; z-index: 1;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: calc(1.05rem - 1px); top: 2.1rem; bottom: 0;
  width: 2px; background: var(--line);
}
.steps li:last-child::before { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.step-h { font-family: var(--display); font-weight: 700; font-size: 1.08rem; line-height: 2.1rem; }
.step-t { color: var(--body-ink); font-size: 1rem; }

.pieces { list-style: none; margin-top: .6rem; }
.pieces li + li { border-top: 1px solid var(--line); }
.piece { display: block; text-decoration: none; color: inherit; padding: 1rem 0; }
.piece:hover { color: inherit; }
.piece-title { display: block; font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; margin-top: .25rem; }
.piece:hover .piece-title { color: var(--green-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.piece-sum { display: block; font-size: 1rem; color: var(--body-ink); margin-top: .3rem; }

.gallery { display: grid; gap: clamp(1rem, 2.4vw, 1.75rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); align-items: start; }
.g-2 { grid-template-columns: 1fr 1fr; }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.gallery img { width: 100%; border-radius: 6px; border: 1px solid var(--line); }
.gallery figcaption { font-family: var(--mono); font-size: .76rem; color: var(--sage); margin-top: .6rem; }

.next { border-top: 1px solid var(--line); padding: clamp(3rem, 6vw, 4.5rem) 0; }

/* ---------- profile & scrapbook ---------- */

.page-hero { padding: clamp(2.6rem, 6vw, 5rem) 0 clamp(2.4rem, 5vw, 3.6rem); }
.page-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(11rem, 17rem);
  gap: clamp(2rem, 6vw, 5rem); align-items: end;
}
.statement {
  font-family: var(--display); font-weight: 800; letter-spacing: -.04em;
  font-size: clamp(2.5rem, 6.4vw, 5.2rem); line-height: .98; max-width: 16ch; margin-top: 1rem;
}
.portrait img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 22px; border: 1px solid var(--line); }

.split {
  display: grid; grid-template-columns: minmax(11rem, 17rem) minmax(0, 1fr);
  gap: clamp(1rem, 5vw, 4rem); padding-block: clamp(2.2rem, 5vw, 3.2rem);
  border-top: 1px solid var(--line);
}
.split > h2 {
  font-family: var(--display); font-weight: 800; letter-spacing: -.03em;
  font-size: clamp(1.6rem, 2.8vw, 2.1rem); line-height: 1.05;
}
.note { color: var(--body-ink); margin-bottom: .6rem; }
.roles { list-style: none; }
.roles li {
  display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: baseline;
  padding: .9rem 0; border-bottom: 1px solid var(--line);
}
.roles li:last-child { border-bottom: 0; }
.roles .who { font-family: var(--display); font-weight: 700; font-size: 1.08rem; }
.roles .what { display: block; font-family: var(--body); font-weight: 400; font-size: 1rem; color: var(--body-ink); }
.roles .when { font-family: var(--mono); font-size: .78rem; color: var(--sage); white-space: nowrap; }
.creds { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 2rem; }
.creds div { border-top: 2px solid var(--ink); padding-top: .7rem; }
.creds dt { font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.creds dd { color: var(--body-ink); font-size: 1rem; margin-top: .2rem; }
.tools { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; align-self: start; }
.tools li {
  font-family: var(--mono); font-size: .8rem; color: var(--green-deep);
  background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: .45rem .75rem;
}

.scraps { columns: 3 17rem; column-gap: 1.6rem; padding: 14px 0 clamp(3.5rem, 7vw, 5.5rem); }
.scrap {
  position: relative; break-inside: avoid; display: inline-block; width: 100%; margin: 0 0 1.8rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 6px;
  padding: 1.1rem 1.25rem 1.3rem;
  transform: rotate(var(--r, 0deg)); transition: transform .35s var(--ease);
  box-shadow: 0 1px 0 var(--line), 0 10px 24px -18px rgb(20 35 29 / .5);
}
.scrap:hover { transform: rotate(0deg) translateY(-2px); }
.scrap-body { font-size: 1.12rem; line-height: 1.5; color: var(--ink); margin-top: .45rem; }
.scrap--photo { padding: .6rem .6rem .9rem; }
.scrap--photo::before {
  content: ""; position: absolute; top: -11px; left: 50%; width: 76px; height: 22px;
  transform: translateX(-50%) rotate(-3deg);
  background: color-mix(in srgb, var(--gold) 50%, transparent);
}
.scrap--photo img { width: 100%; border-radius: 3px; }
.scrap--photo figcaption { font-family: var(--mono); font-size: .76rem; color: var(--sage); margin: .7rem .3rem 0; line-height: 1.5; }
.scrap--gold { background: var(--gold); border-color: var(--gold); }
.scrap--gold .label { color: var(--ink); opacity: .75; }
.scrap--green { background: var(--green-deep); border-color: var(--green-deep); }
.scrap--green .label { color: var(--mist-soft); }
.scrap--green .scrap-body { color: var(--mist); }
.scrap-link { display: inline-block; margin-top: .8rem; font-family: var(--mono); font-size: .8rem; color: var(--ink); }
.scrap-link:hover { color: var(--ink); }
.scrap-list { list-style: none; margin-top: .6rem; }
.scrap-list li + li { margin-top: .35rem; }
.scrap-list a { font-family: var(--display); font-weight: 600; font-size: 1rem; }

.store { padding-top: .5rem; padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.store-head { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.2rem, 3vw, 2.2rem); align-items: center; max-width: 52rem; }
.store-logo { width: clamp(6.5rem, 14vw, 9.5rem); aspect-ratio: 1; border-radius: 6px; transform: rotate(-2deg); box-shadow: 0 10px 24px -16px rgb(20 35 29 / .6); }
.store-head h2 {
  font-family: var(--display); font-weight: 800; letter-spacing: -.035em;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1; margin-top: .35rem;
}
.store-head p:not(.label) { margin-top: .8rem; font-size: 1.12rem; color: var(--body-ink); max-width: 56ch; }
.store-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.4vw, 1.75rem); margin-top: clamp(1.8rem, 4vw, 2.6rem); }
.store-steps img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.store-steps figcaption { font-family: var(--mono); font-size: .76rem; color: var(--sage); margin-top: .6rem; line-height: 1.5; }
.store-steps figcaption span { color: var(--gold-ink); margin-right: .4rem; }
@media (max-width: 720px) {
  .store-steps { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 74%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .4rem; }
  .store-steps li { scroll-snap-align: start; }
}
@media (max-width: 480px) {
  .store-head { grid-template-columns: 1fr; }
}

/* ---------- page-to-page transitions (where supported) ---------- */

@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: .5s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro { grid-template-columns: 1fr; }
  .article { grid-template-columns: 1fr; gap: 2rem; }
  .side { position: static; }
  .g-3 { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 720px) {
  .site-head .wrap { flex-direction: column; align-items: flex-start; gap: .1rem; padding-block: .7rem .45rem; }
  .hero-grid, .page-hero-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 8.5rem; justify-self: start; order: -1; margin: 0 0 1.4rem 1rem; }
  .hero-photo .ring { width: 58px; height: 58px; right: -16px; top: -14px; }
  .hero-photo::after { width: 30px; height: 30px; left: -11px; bottom: 18px; }
  .hero-name { font-size: 18.6vw; }
  .portrait { max-width: 13rem; order: -1; }
  .doors-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 1rem; }
  .creds { grid-template-columns: 1fr; }
  .frame--hero { aspect-ratio: 4 / 3; }
  .g-2, .g-3 { grid-template-columns: 1fr; }
  .roles li { grid-template-columns: 1fr; gap: .2rem; }
  .btn { flex: 1 1 auto; text-align: center; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html { scroll-behavior: auto; }
  .rise, .cut--hero { animation: none; }
  .hero-name .name, .hero-photo::after, .hero-photo .ring { animation: none; }
  .cut, .scrap, .btn, .filters button { transition: none; }
  .scrap:hover, .btn:hover { transform: rotate(var(--r, 0deg)); }
  .btn:hover { transform: none; }
}
