:root {
  color-scheme: light;
  --viewport-height: 100vh;
  --ink: #050505;
  --white: #ffffff;
  --cream: #fff1d9;
  --pink: #ff0c50;
  --red: #ff3b15;
  --yellow: #ffd514;
  --blue: #074ab9;
  --sky: #128dea;
  --line: 3px solid var(--ink);
  --shadow: 0 22px 60px rgb(0 0 0 / 22%);
}

@supports (height: 100dvh) {
  :root {
    --viewport-height: 100dvh;
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--red);
  min-height: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family:
    ui-rounded, "Arial Rounded MT Bold", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  min-height: var(--viewport-height);
  overscroll-behavior-x: none;
  width: 100%;
}

body.modal-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  box-shadow: 0 0 0 6px var(--white);
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.skip-link {
  background: var(--ink);
  color: var(--white);
  left: 1rem;
  padding: 0.7rem 1rem;
  position: fixed;
  top: 1rem;
  transform: translateY(-150%);
  z-index: 100;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: clamp(0.75rem, 2vw, 1.1rem) clamp(1rem, 4vw, 2.5rem);
  padding-left: max(clamp(1rem, 4vw, 2.5rem), env(safe-area-inset-left));
  padding-right: max(clamp(1rem, 4vw, 2.5rem), env(safe-area-inset-right));
  padding-top: max(clamp(0.75rem, 2vw, 1.1rem), env(safe-area-inset-top));
  pointer-events: none;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 30;
}

.brand,
.site-actions {
  pointer-events: auto;
}

.brand {
  align-items: center;
  background: rgb(255 255 255 / 80%);
  border: var(--line);
  border-radius: 999px;
  display: inline-flex;
  min-height: 58px;
  padding: 0.25rem 0.8rem;
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.brand img {
  height: clamp(2.6rem, 5vw, 3.55rem);
  object-fit: contain;
  width: auto;
}

.site-actions {
  display: flex;
  gap: 0.7rem;
}

.icon-button,
.primary-button,
.secondary-button,
.close-button {
  align-items: center;
  border: var(--line);
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  gap: 0.5rem;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1rem;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.icon-button {
  background: rgb(255 255 255 / 86%);
  backdrop-filter: blur(12px);
  color: var(--ink);
}

.order-link,
.shop-link,
.primary-button {
  background: var(--pink);
  color: var(--white);
}

.shop-link {
  background: var(--yellow);
  color: var(--ink);
}

.secondary-button {
  background: var(--white);
  color: var(--ink);
}

.icon-button:hover,
.primary-button:hover,
.secondary-button:hover,
.close-button:hover {
  box-shadow: 5px 5px 0 var(--ink);
  transform: translate(-2px, -2px);
}

.icon-button svg,
.primary-button svg,
.secondary-button svg,
.close-button svg {
  flex: 0 0 auto;
  height: 1rem;
  width: 1rem;
}

.horizontal-section {
  min-height: 600vh;
  position: relative;
}

.story-viewport {
  isolation: isolate;
  height: var(--viewport-height);
  overflow: hidden;
  position: sticky;
  top: 0;
}

.story-track {
  display: flex;
  height: 100%;
  position: relative;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.story-panel {
  align-items: center;
  background: var(--bg);
  display: grid;
  flex: 0 0 100vw;
  height: var(--viewport-height);
  justify-items: center;
  overflow: hidden;
  padding: clamp(5.8rem, 9svh, 7.25rem) clamp(1rem, 4vw, 3rem) clamp(1.5rem, 4svh, 3rem);
  padding-left: max(clamp(1rem, 4vw, 3rem), env(safe-area-inset-left));
  padding-right: max(clamp(1rem, 4vw, 3rem), env(safe-area-inset-right));
  position: relative;
}

.story-panel > img {
  aspect-ratio: 1;
  border: var(--line);
  border-radius: 10px;
  box-shadow: 12px 12px 0 rgb(0 0 0 / 18%);
  height: auto;
  max-height: min(74vh, 780px);
  max-height: min(74dvh, 780px);
  max-width: calc(100vw - 2rem);
  object-fit: contain;
  opacity: var(--panel-opacity, 1);
  position: relative;
  transform: translateY(var(--panel-shift, 0)) scale(var(--panel-scale, 1));
  transition:
    opacity 120ms linear,
    transform 120ms linear;
  width: min(74vmin, 780px);
  z-index: 2;
}

.mural-panel {
  --bg: var(--cream);
  background: var(--cream);
  color: var(--ink);
}

.mural-copy {
  align-items: center;
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  justify-items: center;
  max-width: 850px;
  opacity: var(--panel-opacity, 1);
  padding: 1rem;
  text-align: center;
  transform: translateY(var(--panel-shift, 0)) scale(var(--panel-scale, 1));
  transition:
    opacity 120ms linear,
    transform 120ms linear;
}

.mural-copy h2 {
  font-size: clamp(2.5rem, 8svh, 6.5rem);
  max-width: 9ch;
}

.mural-copy > p:not(.eyebrow) {
  font-size: clamp(1.1rem, 2.5svh, 1.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  max-width: 34rem;
}

.slide-red {
  --bg: var(--red);
}

.slide-yellow {
  --bg: var(--yellow);
}

.slide-pink {
  --bg: var(--pink);
}

.slide-blue {
  --bg: var(--blue);
}

.slide-sky {
  --bg: var(--sky);
}

.order-panel {
  --bg: var(--pink);
  background: var(--pink);
  padding: clamp(5.8rem, 9vw, 8rem) clamp(1rem, 4vw, 4rem) clamp(1rem, 4vw, 3rem);
  padding-left: max(clamp(1rem, 4vw, 4rem), env(safe-area-inset-left));
  padding-right: max(clamp(1rem, 4vw, 4rem), env(safe-area-inset-right));
}

.order-card {
  background: var(--cream);
  border: var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1.1rem;
  margin-top: clamp(4.2rem, 7vw, 5.25rem);
  max-height: calc(var(--viewport-height) - 7rem);
  max-width: 980px;
  overflow: auto;
  opacity: var(--panel-opacity, 1);
  padding: clamp(1.2rem, 3vw, 2rem);
  position: relative;
  scrollbar-color: var(--pink) transparent;
  scrollbar-width: thin;
  transform: translateY(var(--panel-shift, 0)) scale(var(--panel-scale, 1));
  transition:
    opacity 120ms linear,
    transform 120ms linear;
  width: min(100%, 980px);
  z-index: 2;
}

.story-chrome {
  align-items: center;
  background: rgb(255 255 255 / 88%);
  backdrop-filter: blur(14px);
  border: 2px solid var(--ink);
  border-radius: 999px;
  bottom: max(clamp(0.8rem, 2.5vw, 1.5rem), calc(env(safe-area-inset-bottom) + 0.35rem));
  box-shadow: 0 10px 30px rgb(0 0 0 / 14%);
  color: var(--ink);
  display: grid;
  gap: 0.8rem;
  grid-template-columns: auto minmax(90px, 220px) 46px;
  left: 50%;
  max-width: min(620px, calc(100vw - 2rem));
  padding: 0.45rem 0.45rem 0.45rem 1rem;
  position: absolute;
  transform: translateX(-50%);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
  width: max-content;
  z-index: 20;
}

.story-chrome.is-complete {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.75rem);
}

.story-status {
  align-items: baseline;
  display: flex;
  gap: 0.7rem;
  min-width: 11.5rem;
  white-space: nowrap;
}

.story-count {
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
}

.story-total {
  opacity: 0.6;
}

.story-label {
  font-size: 0.78rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
}

.story-progress {
  background: rgb(0 0 0 / 20%);
  height: 3px;
  min-width: 90px;
  overflow: hidden;
  position: relative;
}

.story-progress span {
  background: currentColor;
  display: block;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  width: 100%;
}

.story-next {
  align-items: center;
  aspect-ratio: 1;
  background: var(--white);
  border: var(--line);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  padding: 0;
  transition:
    background-color 160ms ease,
    transform 160ms ease;
  width: 46px;
}

.story-next:hover {
  background: var(--yellow);
  transform: translateX(3px);
}

.story-next:disabled {
  cursor: default;
}

.story-next svg {
  height: 1.05rem;
  width: 1.05rem;
}

.eyebrow {
  color: var(--pink);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1;
}

.order-card h1 {
  font-size: clamp(2.25rem, 7svh, 5.2rem);
  margin-bottom: 0;
  max-width: 10ch;
}

h2 {
  font-size: clamp(2rem, 6svh, 4.6rem);
  margin: 0.25rem 0 0;
}

h3 {
  font-size: clamp(1.4rem, 3svh, 2rem);
  margin-bottom: 0.45rem;
}

.order-copy {
  font-size: clamp(1rem, 2svh, 1.2rem);
  margin-bottom: 0;
  max-width: 54rem;
}

.order-form {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.order-form label {
  display: grid;
  font-size: 0.78rem;
  font-weight: 900;
  gap: 0.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wide {
  grid-column: 1 / -1;
}

.order-form input,
.order-form select,
.order-form textarea {
  background: var(--white);
  border: var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 46px;
  padding: 0.75rem 0.85rem;
  text-transform: none;
  width: 100%;
}

.order-form textarea {
  resize: vertical;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.form-status {
  color: var(--blue);
  font-weight: 900;
  margin: 0;
  min-height: 1.4rem;
}

.form-guides {
  border-top: 3px solid var(--ink);
  margin-top: 0.25rem;
  padding-top: 1rem;
}

.guide-links {
  display: grid;
  margin-top: 0.45rem;
}

.guide-links a {
  align-items: center;
  border-bottom: 2px solid var(--ink);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.8rem 0;
}

.guide-links a:first-child {
  border-top: 2px solid var(--ink);
}

.guide-links strong {
  font-size: 0.95rem;
  line-height: 1.2;
}

.guide-links span {
  color: var(--blue);
  flex: 0 0 auto;
  font-size: 0.8rem;
  font-weight: 900;
}

.portfolio-dialog,
.shop-dialog {
  background: transparent;
  border: 0;
  max-height: min(92vh, 900px);
  max-height: min(92dvh, 900px);
  max-width: min(1120px, calc(100vw - 1.5rem));
  padding: 0;
  width: 100%;
}

.portfolio-dialog::backdrop,
.shop-dialog::backdrop {
  background: rgb(0 0 0 / 64%);
}

.portfolio-shell,
.shop-shell {
  background: var(--yellow);
  border: var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-height: min(92vh, 900px);
  max-height: min(92dvh, 900px);
  overflow: auto;
  padding: clamp(1rem, 3vw, 2rem);
}

.portfolio-top,
.shop-top {
  align-items: start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}

.portfolio-top h2,
.shop-top h2 {
  font-size: clamp(2rem, 5.5svh, 4.1rem);
}

.close-button {
  aspect-ratio: 1;
  background: var(--white);
  color: var(--ink);
  padding: 0;
  width: 48px;
}

.portfolio-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portfolio-grid article {
  background: var(--white);
  border: var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.portfolio-grid img {
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.portfolio-image-button {
  background: var(--white);
  border: 0;
  cursor: zoom-in;
  display: block;
  overflow: hidden;
  padding: 0;
  position: relative;
  width: 100%;
}

.portfolio-image-button img {
  transition: transform 220ms ease;
}

.portfolio-image-button:hover img {
  transform: scale(1.025);
}

.portfolio-expand {
  align-items: center;
  background: rgb(255 255 255 / 90%);
  border: 2px solid var(--ink);
  border-radius: 999px;
  bottom: 0.75rem;
  display: flex;
  height: 42px;
  justify-content: center;
  pointer-events: none;
  position: absolute;
  right: 0.75rem;
  width: 42px;
}

.portfolio-expand svg {
  height: 20px;
  width: 20px;
}

.portfolio-lightbox {
  background: transparent;
  border: 0;
  color: var(--white);
  height: 100vh;
  height: 100dvh;
  margin: 0;
  max-height: none;
  max-width: none;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  width: 100vw;
}

.portfolio-lightbox[open] {
  align-items: center;
  display: grid;
  justify-items: center;
}

.portfolio-lightbox::backdrop {
  background: rgb(0 0 0 / 92%);
}

.portfolio-lightbox figure {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
  justify-content: center;
  margin: 0;
  min-height: 0;
  width: 100%;
}

.portfolio-lightbox img {
  height: auto;
  max-height: calc(100% - 3.5rem);
  max-width: min(100%, 1200px);
  object-fit: contain;
  width: auto;
}

.portfolio-lightbox figcaption {
  font-size: 1rem;
  font-weight: 900;
  margin: 0;
  text-align: center;
}

.lightbox-close {
  align-items: center;
  background: var(--white);
  border: var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  height: 48px;
  justify-content: center;
  padding: 0;
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  top: max(1rem, env(safe-area-inset-top));
  width: 48px;
  z-index: 1;
}

.portfolio-grid h3,
.portfolio-grid p {
  padding-inline: 1rem;
}

.portfolio-grid h3 {
  margin-top: 1rem;
}

.portfolio-grid p {
  margin-bottom: 1rem;
}

.shop-shell {
  background: var(--sky);
}

.shop-copy {
  color: var(--white);
  font-size: clamp(1rem, 2.2svh, 1.25rem);
  font-weight: 800;
  margin-bottom: 1.2rem;
  max-width: 62rem;
}

.shop-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shop-grid article {
  background: var(--white);
  border: var(--line);
  border-radius: 8px;
  display: grid;
  overflow: hidden;
}

.shop-grid img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
}

.shop-grid article > div {
  padding: 1rem;
}

.shop-type {
  color: var(--pink);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
}

.shop-grid p:last-child {
  margin-bottom: 0;
}

.shop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.site-footer {
  align-items: start;
  background: var(--ink);
  border-top: 3px solid var(--ink);
  color: var(--white);
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: auto minmax(0, 1fr) minmax(260px, 0.9fr);
  padding: clamp(2rem, 6vw, 4.5rem) max(clamp(1rem, 5vw, 4rem), env(safe-area-inset-right)) max(clamp(2rem, 6vw, 4.5rem), env(safe-area-inset-bottom)) max(clamp(1rem, 5vw, 4rem), env(safe-area-inset-left));
}

.footer-brand {
  background: var(--white);
  border: 3px solid var(--white);
  border-radius: 999px;
  display: block;
  padding: 0.45rem 0.8rem;
}

.footer-brand img {
  height: auto;
  width: 92px;
}

.footer-intro > p:last-child {
  font-size: clamp(1.25rem, 2.7svh, 1.8rem);
  font-weight: 900;
  line-height: 1.15;
  margin: 0.6rem 0 0;
  max-width: 30rem;
}

.footer-links {
  display: grid;
}

.footer-links a {
  border-bottom: 1px solid rgb(255 255 255 / 45%);
  font-weight: 900;
  line-height: 1.25;
  padding: 0.75rem 0;
}

.footer-links a:first-child {
  border-top: 1px solid rgb(255 255 255 / 45%);
}

.footer-meta {
  color: rgb(255 255 255 / 72%);
  font-size: 0.82rem;
  grid-column: 2 / -1;
  margin: 0;
}

.article-page {
  background: var(--cream);
  color: var(--ink);
}

.article-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: max(1rem, env(safe-area-inset-top)) max(clamp(1rem, 4vw, 3rem), env(safe-area-inset-right)) 1rem max(clamp(1rem, 4vw, 3rem), env(safe-area-inset-left));
  position: absolute;
  right: 0;
  top: 0;
  z-index: 5;
}

.article-brand {
  background: rgb(255 255 255 / 88%);
  border: var(--line);
  border-radius: 999px;
  display: block;
  padding: 0.3rem 0.75rem;
}

.article-brand img {
  height: auto;
  width: clamp(76px, 12vw, 116px);
}

.article-nav-links {
  display: flex;
  gap: 0.65rem;
}

.article-nav-links a {
  background: var(--white);
  border: var(--line);
  border-radius: 999px;
  font-weight: 900;
  padding: 0.75rem 1rem;
}

.article-nav-links .article-order-link {
  background: var(--pink);
  color: var(--white);
}

.article-hero {
  align-items: end;
  background-position: center;
  background-size: cover;
  color: var(--white);
  display: grid;
  height: min(78vh, 720px);
  min-height: 560px;
  padding: clamp(7rem, 15svh, 9rem) max(clamp(1rem, 6vw, 5rem), env(safe-area-inset-right)) clamp(2.5rem, 7svh, 5rem) max(clamp(1rem, 6vw, 5rem), env(safe-area-inset-left));
  position: relative;
}

.article-hero::before {
  background: rgb(0 0 0 / 52%);
  content: "";
  inset: 0;
  position: absolute;
}

.event-article-hero {
  background-image: url("assets/portfolio-canvas-bulldog.jpg");
  background-position: center 42%;
}

.portrait-article-hero {
  background-image: url("assets/portfolio-tropical-handbag.jpg");
  background-position: center;
}

.article-hero-copy {
  max-width: 960px;
  min-width: 0;
  position: relative;
  width: 100%;
  z-index: 1;
}

.article-hero .eyebrow {
  color: var(--yellow);
}

.article-hero h1 {
  font-size: clamp(2.7rem, 9svh, 6.6rem);
  margin: 0.55rem 0 0;
  max-width: 13ch;
}

.article-hero p:last-child {
  font-size: clamp(1.05rem, 2.4svh, 1.4rem);
  font-weight: 800;
  line-height: 1.35;
  margin: 1rem 0 0;
  max-width: 46rem;
}

.article-body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.05rem, 2.2svh, 1.22rem);
  line-height: 1.7;
  margin: 0 auto;
  max-width: 800px;
  padding: clamp(3rem, 8vw, 6rem) max(1.25rem, env(safe-area-inset-right)) clamp(3rem, 8vw, 6rem) max(1.25rem, env(safe-area-inset-left));
}

.article-body .article-lede {
  font-size: clamp(1.35rem, 3svh, 1.75rem);
  font-weight: 800;
  line-height: 1.45;
}

.article-body section {
  border-top: 2px solid var(--ink);
  margin-top: clamp(2.5rem, 7vw, 4.5rem);
  padding-top: clamp(2rem, 5vw, 3rem);
}

.article-body h2 {
  font-family: ui-rounded, "Arial Rounded MT Bold", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2rem, 5svh, 3.5rem);
  line-height: 1.05;
  margin-bottom: 1.1rem;
}

.article-body h3 {
  font-family: ui-rounded, "Arial Rounded MT Bold", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.35rem, 3svh, 1.8rem);
  margin-top: 2rem;
}

.article-body li + li {
  margin-top: 0.65rem;
}

.article-media {
  margin: clamp(2.5rem, 7vw, 4.5rem) calc(50% - 46vw);
}

.article-media img {
  border: var(--line);
  max-height: 760px;
  object-fit: cover;
  width: 100%;
}

.article-media figcaption {
  font-size: 0.82rem;
  font-weight: 800;
  margin-top: 0.6rem;
}

.article-cta {
  background: var(--pink);
  color: var(--white);
  padding: clamp(3rem, 8vw, 6rem) max(clamp(1.25rem, 8vw, 7rem), env(safe-area-inset-right)) clamp(3rem, 8vw, 6rem) max(clamp(1.25rem, 8vw, 7rem), env(safe-area-inset-left));
}

.article-cta h2 {
  font-size: clamp(2.5rem, 8svh, 5.5rem);
  max-width: 12ch;
}

.article-cta p {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.45;
  max-width: 46rem;
}

.article-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.article-cta-actions a {
  background: var(--white);
  border: var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 900;
  padding: 0.85rem 1.1rem;
}

.article-footer {
  align-items: center;
  background: var(--ink);
  color: var(--white);
  display: flex;
  gap: 1rem 2rem;
  justify-content: space-between;
  padding: 1.4rem max(clamp(1.25rem, 5vw, 4rem), env(safe-area-inset-right)) max(1.4rem, env(safe-area-inset-bottom)) max(clamp(1.25rem, 5vw, 4rem), env(safe-area-inset-left));
}

.article-footer p {
  margin: 0;
}

.article-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-weight: 900;
}

@media (max-width: 860px) {
  .site-header {
    align-items: center;
    gap: 0.75rem;
  }

  .site-actions {
    flex-direction: row;
  }

  .icon-button {
    min-height: 42px;
    padding: 0.55rem 0.75rem;
  }

  .icon-button span {
    display: none;
  }

  .order-card {
    max-height: calc(var(--viewport-height) - 6rem);
  }

  .story-panel {
    padding: clamp(4.6rem, 10svh, 6rem) 1rem 1rem;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .story-panel > img {
    max-height: min(78vh, 760px);
    max-height: min(78dvh, 760px);
    width: min(88vmin, 760px);
  }

  .story-chrome {
    grid-template-columns: minmax(0, 1fr) minmax(70px, 120px) 42px;
    width: calc(100vw - 2rem);
  }

  .story-status {
    min-width: 0;
  }

  .story-next {
    width: 42px;
  }

  .order-form,
  .portfolio-grid,
  .shop-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: auto 1fr;
  }

  .footer-links,
  .footer-meta {
    grid-column: 1 / -1;
  }

  .form-actions,
  .shop-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .brand {
    min-height: 50px;
    padding-inline: 0.7rem;
  }

  .brand img {
    height: 2.55rem;
  }

  .site-header {
    padding-inline: 0.75rem;
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
  }

  .site-actions {
    gap: 0.35rem;
  }

  .guide-links a {
    align-items: start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .article-header {
    gap: 0.65rem;
  }

  .article-nav-links a:first-child {
    display: none;
  }

  .article-hero {
    height: 72vh;
    min-height: 520px;
  }

  .article-hero h1 {
    font-size: clamp(2.4rem, 6svh, 3rem);
    overflow-wrap: break-word;
  }

  .article-media {
    margin-inline: 0;
  }

  .article-footer {
    align-items: start;
    flex-direction: column;
  }

  .icon-button {
    min-height: 40px;
    padding: 0.5rem 0.65rem;
  }

  .order-panel {
    padding-top: 5.4rem;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .order-card h1 {
    font-size: clamp(2rem, 7svh, 3.4rem);
  }

  .order-card {
    padding: 1rem;
  }

  .story-chrome {
    bottom: max(0.4rem, calc(env(safe-area-inset-bottom) + 0.25rem));
    gap: 0.55rem;
    grid-template-columns: minmax(0, 1fr) 76px 40px;
    padding-inline: 0;
  }

  .story-label {
    max-width: 7rem;
  }

  .story-next {
    width: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .horizontal-section {
    min-height: auto !important;
  }

  .story-viewport {
    height: auto;
    overflow: visible;
    position: static;
  }

  .story-track {
    display: block;
    transform: none !important;
  }

  .story-panel {
    min-height: var(--viewport-height);
  }

  .story-panel > img,
  .mural-copy,
  .order-card {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .story-chrome {
    display: none;
  }
}
