/* ───────────── Tokens ───────────── */
:root {
  --bg: #000;
  --surface: #111;          /* cards, contact block, modal */
  --surface-2: #1a1a1a;     /* hover + nested panels */
  --surface-3: #262626;
  --ink: #fff;
  --muted: rgb(255 255 255 / .62);
  --line: rgb(255 255 255 / .12);
  --white: #fff;
  --black: #000;
  --pink: #ff77cd;
  --gold: #ffd23f;
  --orange: #ff5f04;

  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --display: "Michroma", "Schibsted Grotesk", Arial, sans-serif;

  --gutter: clamp(1rem, 4vw, 3rem);
  --radius: clamp(1.25rem, 2.4vw, 2rem);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ───────────── Base ───────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body:has(dialog[open]) { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, h5, p { margin: 0; }
em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
::selection { background: var(--white); color: var(--black); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.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: fixed; left: 1rem; top: 1rem; z-index: 100;
  transform: translateY(-200%);
  background: var(--gold); color: var(--black);
  padding: .75rem 1rem; border-radius: 999px; font-weight: 700; text-decoration: none;
  transition: transform .2s;
}
.skip:focus { transform: none; }

/* ───────────── Header ───────────── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--gutter);
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }

.logo {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--white); color: var(--black);
  text-decoration: none;
  width: 2.9rem; height: 2.9rem; border-radius: 999px;
}
.logo-mark {
  width: 1.6rem; height: 1.6rem;
  filter: invert(1);               /* white mark → black on the white pill */
  transition: transform .6s var(--ease);
}
.logo:hover .logo-mark { transform: rotate(180deg); }

.nav {
  display: flex; gap: .25rem;
  background: var(--white); color: var(--black);
  padding: .3rem; border-radius: 999px;
}
.nav a {
  text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: .5rem .95rem; border-radius: 999px;
  transition: background-color .25s, color .25s;
}
.nav a:hover { background: #ececec; }
.nav .nav-cta { background: var(--black); color: var(--white); }
.nav .nav-cta:hover { background: var(--surface-3); }

/* ───────────── Hero ───────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--bg);
  color: var(--ink);
  overflow: hidden;
}
.hero::before {
  /* soft glow behind the mark (only visible if WebGL is unavailable) */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(55vw 55vw at 50% 50%, rgb(255 255 255 / .09), transparent 65%);
}
/* 3D render (hero.js) + film grain sit behind the content */
.hero-canvas, .hero-grain {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.hero::after {
  /* fade the render into the page's black at the bottom */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgb(0 0 0 / 0) 72%, var(--bg) 100%);
}
.hero-grain {
  opacity: .08;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}
.hero-inner {
  position: relative; z-index: 1;
  flex: 1;
  display: flex; flex-direction: column;
  padding: 7rem var(--gutter) clamp(2rem, 5vw, 3rem);
}
.hero--plain .hero-inner { justify-content: center; }
.eyebrow {
  font-size: .9rem; font-weight: 700; letter-spacing: .02em;
  display: inline-flex; align-items: center; gap: .6rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.eyebrow::before {
  content: ""; width: .6rem; height: .6rem; border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 0 rgb(255 255 255 / .6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 .6rem rgb(255 255 255 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(255 255 255 / 0); }
}

.brand {
  position: relative; isolation: isolate;
  display: grid; justify-items: center;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  margin: auto;                    /* centre in the hero */
  padding: clamp(1.5rem, 4vw, 3rem) clamp(2rem, 6vw, 5rem);
  text-align: center;
}
.brand-mark {
  width: clamp(6.5rem, 14vw, 11rem); height: auto;
  transition: transform 1.2s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(180deg); }
.brand-name {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 7vw, 6.5rem);
  line-height: 1;
  letter-spacing: .02em;
}
.brand-name span {
  display: block;
  font-size: clamp(.85rem, 1.8vw, 1.6rem);
  letter-spacing: .6em;
  margin-top: .5em;
  padding-left: .6em;              /* balances the trailing letter-spacing */
  opacity: .85;
}

/* kept for the 404 page */
.hero-title {
  font-weight: 800;
  font-size: clamp(2.9rem, 9.2vw, 9rem);
  line-height: .92;
  letter-spacing: -0.055em;
  max-width: 14ch;
  text-wrap: balance;
}

.hero-foot {
  width: 100%;
  display: flex; flex-wrap: wrap; gap: 1.25rem 2rem;
  justify-content: space-between; align-items: flex-end;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.hero-sub {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem); color: var(--muted); max-width: 30ch;
  text-shadow: 0 1px 14px rgb(0 0 0 / .95);
}
.scroll-cue span { text-shadow: 0 1px 14px rgb(0 0 0 / .95); }

.scroll-cue {
  display: inline-flex; align-items: center; gap: .75rem;
  text-decoration: none; font-weight: 700;
}
.scroll-cue svg {
  width: 3rem; height: 3rem; padding: .8rem;
  border-radius: 50%; background: var(--white);
  stroke: var(--black); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .4s var(--ease);
}
.scroll-cue:hover svg { transform: translateY(4px); }

/* ───────────── Section shared ───────────── */
.section-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 1rem 2rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.section-head h2 {
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: .95; letter-spacing: -0.05em;
}
.section-head p { color: var(--muted); }

.work { padding: clamp(2.5rem, 5vw, 4.5rem) var(--gutter); }
.hero + .work { padding-top: clamp(5rem, 9vw, 8rem); }

/* ───────────── Projects ───────────── */
.projects {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 1.8vw, 1.5rem);
}
.project { grid-column: span 6; }
.span-5 { grid-column: span 5; }
.span-7 { grid-column: span 7; }
.project--wide { grid-column: 1 / -1; }

.project {
  --accent: var(--gold);
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(.6rem, 1vw, .8rem);
  text-decoration: none;
  isolation: isolate;
  transition: transform .6s var(--ease), background-color .4s, border-color .4s;
}
.project:hover { background: var(--surface-2); border-color: rgb(255 255 255 / .2); }
.project:active { transform: scale(.985); }

.project-art {
  position: relative;
  flex: 1;
  min-height: clamp(16rem, 32vw, 26rem);
  border-radius: calc(var(--radius) - .6rem);
  background: var(--accent);
  overflow: hidden;
  display: grid; place-items: center;
}
.project--wide .project-art { min-height: clamp(14rem, 26vw, 22rem); }

.project-meta {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem;
  padding: clamp(1rem, 2vw, 1.5rem) clamp(.6rem, 1.4vw, 1rem) clamp(.4rem, 1vw, .6rem);
}
.project h3 {
  font-weight: 800;
  font-size: clamp(1.8rem, 3.4vw, 2.75rem);
  line-height: 1; letter-spacing: -0.045em;
  margin-bottom: .5rem;
}
.project-meta p { color: var(--muted); max-width: 42ch; }

.tags {
  display: flex; flex-wrap: wrap; gap: .4rem;
  list-style: none; padding: 0; margin: 1rem 0 0;
}
.tags li {
  font-size: .8rem; font-weight: 700;
  padding: .3rem .7rem; border-radius: 999px;
  border: 1.5px solid rgb(255 255 255 / .3);
}

.go {
  flex: none;
  width: clamp(3rem, 5vw, 3.75rem); aspect-ratio: 1;
  border-radius: 50%;
  background: var(--white);
  display: grid; place-items: center;
  transition: transform .5s var(--ease), background-color .3s;
}
.go svg {
  width: 45%; stroke: var(--black); stroke-width: 2.4; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}
.project:hover .go { transform: rotate(45deg); background: var(--accent); }

/* Art: live-site screenshot, filling the whole panel */
.project-art:has(.shot) { background: var(--surface-2); }
.project--wide .project-art:has(.shot) { min-height: clamp(16rem, 36vw, 32rem); }
.shot {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: var(--shot-pos, center top);
  transition: transform .8s var(--ease);
}
.project:hover .shot { transform: scale(1.03); }

/* ───────────── Developers ───────────── */
.devs { display: grid; gap: clamp(1rem, 1.8vw, 1.5rem); }

.dev {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2.75rem);
  display: grid; justify-items: start;
  transition: background-color .4s, border-color .4s;
}
/* the whole card is a click target while collapsed */
.js .dev:not(.is-open) { cursor: pointer; }
.js .dev:not(.is-open):hover { background: var(--surface-2); border-color: rgb(255 255 255 / .2); }
.dev-head {
  width: 100%;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 1rem 1.25rem;
  cursor: pointer;
}
.dev-brief {
  margin-top: 1.25rem;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: rgb(255 255 255 / .78);
  max-width: 60ch;
  cursor: pointer;
}

/* collapsed by default; expands with a height animation */
.dev-more {
  width: 100%;
  display: grid; grid-template-rows: 1fr;
  transition: grid-template-rows .6s var(--ease);
}
.js .dev:not(.is-open) .dev-more { grid-template-rows: 0fr; }
.dev-more-inner { min-height: 0; overflow: hidden; }
.dev-more-content {
  display: grid; gap: clamp(2rem, 4vw, 3rem);
  margin-top: clamp(1.5rem, 3vw, 2rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--line);
  transition: opacity .5s .15s;
}
.js .dev:not(.is-open) .dev-more-content { opacity: 0; transition-delay: 0s; }

.dev-toggle {
  display: inline-flex; align-items: center; gap: .6rem;
  margin-top: 1.5rem;
  font: inherit; font-weight: 700; font-size: .95rem;
  background: var(--white); color: var(--black);
  border: 0; border-radius: 999px; cursor: pointer;
  padding: .45rem .45rem .45rem 1.1rem;
  transition: background-color .25s;
}
.dev-toggle:hover { background: #e4e4e4; }
.dev-toggle svg {
  width: 1.75rem; height: 1.75rem; padding: .4rem;
  border-radius: 50%; background: var(--black);
  stroke: var(--white); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .5s var(--ease);
}
.dev.is-open .dev-toggle svg { transform: rotate(180deg); }
html:not(.js) .dev-toggle { display: none; }
.avatar {
  flex: none;
  width: 4.5rem; aspect-ratio: 1; border-radius: 50%;
  background: var(--white); color: var(--black);
  display: grid; place-items: center;
  font-weight: 900; font-size: 1.5rem; letter-spacing: -0.04em;
}
.dev-head h3 {
  font-weight: 800;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1; letter-spacing: -0.045em;
}
.dev-role { color: var(--muted); font-weight: 600; margin-top: .4rem; }

.loc {
  display: inline-flex; align-items: center; gap: .6rem;
  margin-left: auto;
  font-weight: 600; color: var(--muted);
}
.loc-dot {
  width: .6rem; height: .6rem; border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 0 rgb(255 255 255 / .5);
  animation: pulse 2.2s infinite;
}

.dev-body {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.dev-bio { display: grid; gap: 1.25rem; }
.dev-bio p:not(.about-statement) {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: rgb(255 255 255 / .75);
  max-width: 58ch;
}
.about-statement {
  font-weight: 700;
  font-size: clamp(1.7rem, 3.2vw, 2.9rem);
  line-height: 1.05; letter-spacing: -0.04em;
  max-width: 22ch;
  text-wrap: pretty;
  margin-bottom: .5rem;
}

.label {
  font-size: .8rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.contact-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - .4rem);
  padding: clamp(1.25rem, 2.4vw, 2rem);
}
.nodes { margin: 0; display: grid; }
.nodes > div {
  display: grid; gap: .15rem;
  padding: .85rem 0;
  border-top: 1px solid var(--line);
}
.nodes dt { font-size: .8rem; font-weight: 700; color: var(--muted); }
.nodes dd { margin: 0; font-weight: 700; font-size: clamp(1.05rem, 1.5vw, 1.2rem); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.nodes a {
  text-decoration: none;
  background: linear-gradient(var(--white), var(--white)) 0 100% / 0 2px no-repeat;
  transition: background-size .4s var(--ease);
}
.nodes a:hover { background-size: 100% 2px; }

.stack { padding-top: 1.5rem; border-top: 1px solid var(--line); }
.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.stack-group h5 {
  margin: 0 0 .85rem;
  font-weight: 800; font-size: 1.15rem; letter-spacing: -0.03em;
}
.chips {
  display: flex; flex-wrap: wrap; gap: .4rem;
  list-style: none; padding: 0; margin: 0;
}
.chips li {
  font-size: .9rem; font-weight: 600;
  padding: .35rem .8rem; border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition: background-color .25s, color .25s, border-color .25s;
}
.chips li:hover { background: var(--white); color: var(--black); border-color: var(--white); }

/* ───────────── Contact ───────────── */
.contact {
  margin: clamp(2.5rem, 5vw, 4.5rem) clamp(.5rem, 1.2vw, 1rem) 0;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(4rem, 10vw, 9rem) var(--gutter);
  display: grid; justify-items: start; gap: clamp(1.5rem, 3vw, 2.5rem);
  position: relative; overflow: hidden;
}
.contact::after {
  /* big decorative ring */
  content: ""; position: absolute;
  width: clamp(18rem, 45vw, 40rem); aspect-ratio: 1;
  right: -10%; bottom: -35%;
  border-radius: 50%;
  border: clamp(2.5rem, 6vw, 5rem) solid var(--surface-2);
  z-index: 0;
}
.contact > * { position: relative; z-index: 1; }
.contact-title {
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 7.5rem);
  line-height: .93; letter-spacing: -0.055em;
  max-width: 12ch;
}
.contact-title em { color: var(--muted); }

/* the "input field" that opens the modal */
.ask {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: min(100%, 40rem);
  background: var(--white); color: var(--black);
  border: 0; cursor: pointer; text-align: left;
  font: inherit; font-weight: 600; font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  padding: .7rem .7rem .7rem 1.5rem; border-radius: 999px;
  transition: box-shadow .3s, transform .4s var(--ease);
}
.ask:hover { box-shadow: 0 0 0 5px rgb(255 255 255 / .16); }
.ask:active { transform: scale(.99); }
.ask-placeholder { color: rgb(0 0 0 / .5); }
.ask-send {
  flex: none;
  width: 2.75rem; aspect-ratio: 1; border-radius: 50%;
  background: var(--black);
  display: grid; place-items: center;
  transition: transform .5s var(--ease);
}
.ask-send svg {
  width: 45%; stroke: var(--white); stroke-width: 2.4; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}
.ask:hover .ask-send { transform: translateX(3px); }

/* ───────────── Modal ───────────── */
.modal {
  margin: auto; padding: 0;
  width: min(92vw, 34rem);
  max-height: 90vh; overflow: auto;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -20px rgb(0 0 0 / .9);
}
.modal::backdrop { background: rgb(0 0 0 / .7); backdrop-filter: blur(10px); }
.modal[open] { animation: modal-in .5s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }

.modal-form { display: grid; gap: 1rem; padding: clamp(1.5rem, 3vw, 2.25rem); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .5rem; }
.modal-head h2 { font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.04em; line-height: 1; }
.modal-head p { color: var(--muted); margin-top: .5rem; }
.modal-x {
  flex: none; width: 2.5rem; aspect-ratio: 1; border-radius: 50%;
  background: var(--surface-2); color: var(--ink);
  border: 1px solid var(--line); cursor: pointer;
  display: grid; place-items: center;
  transition: background-color .25s;
}
.modal-x:hover { background: var(--surface-3); }
.modal-x svg { width: 40%; stroke: currentColor; stroke-width: 2.4; fill: none; stroke-linecap: round; }

.field { display: grid; gap: .4rem; }
.field span { font-size: .85rem; font-weight: 700; color: var(--muted); }
.field input, .field textarea {
  font: inherit; color: var(--ink); width: 100%;
  background: var(--surface-2);
  border: 1.5px solid var(--line); border-radius: 1rem;
  padding: .85rem 1rem;
  transition: border-color .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 7.5rem; }
.field input::placeholder, .field textarea::placeholder { color: rgb(255 255 255 / .35); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--surface-3); }

.modal-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .25rem; }
.btn {
  font: inherit; font-weight: 700;
  padding: .8rem 1.3rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  transition: background-color .25s, color .25s;
}
.btn:hover { background: var(--surface-2); }
.btn-primary { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-primary:hover { background: #e4e4e4; }
.modal-status { font-size: .95rem; color: var(--muted); }

/* ───────────── Footer ───────────── */
.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding: 2rem var(--gutter);
  font-weight: 600; font-size: .95rem;
  color: var(--muted);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ───────────── Cursor bubble (pointer devices only) ───────────── */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 60;
  pointer-events: none;
  padding: .7rem 1.1rem; border-radius: 999px;
  background: var(--white); color: var(--black);
  font-weight: 800; font-size: .95rem; white-space: nowrap;
  box-shadow: 0 10px 30px -10px rgb(0 0 0 / .8);
  opacity: 0;
  transform: translate(-50%, -50%) scale(.4);
  transition: opacity .25s, transform .35s var(--ease);
}
.cursor.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ───────────── Reveal ───────────── */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }
.projects .reveal:nth-child(2) { transition-delay: .08s; }

/* ───────────── Responsive ───────────── */
@media (max-width: 860px) {
  .project, .span-5, .span-7 { grid-column: 1 / -1; }
  .dev-body { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .loc { margin-left: 0; flex-basis: 100%; }
}
@media (max-width: 520px) {
  .nav a:not(.nav-cta) { display: none; }
  .project-meta { flex-direction: column; align-items: flex-start; }
  .go { position: absolute; top: 1.4rem; right: 1.4rem; }
  .stack-grid { grid-template-columns: 1fr; }
  .modal-actions { flex-direction: column-reverse; }
  .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}
