:root {
  --paper: #f5f4ed;
  --ivory: #faf9f5;
  --white: #ffffff;
  --sand: #e8e6dc;
  --sand-deep: #ddd7c7;
  --ink: #141413;
  --charcoal: #30302e;
  --olive: #5e5d59;
  --stone: #87867f;
  --warm: #c96442;
  --warm-soft: #d97757;
  --border: #f0eee6;
  --ring: rgba(20, 20, 19, 0.08);
  --shadow-soft: 0 24px 60px rgba(20, 20, 19, 0.08);
  --shadow-card: 0 12px 36px rgba(20, 20, 19, 0.08);
  --container: min(1180px, calc(100vw - 40px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(201, 100, 66, 0.16), transparent 30%),
    radial-gradient(circle at 85% 15%, rgba(93, 108, 82, 0.08), transparent 20%),
    linear-gradient(180deg, #f8f6ef 0%, var(--paper) 44%, #f2efe5 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 22px 22px;
  mix-blend-mode: soft-light;
}

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

button {
  font: inherit;
}

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

[hidden] {
  display: none !important;
}

.page-shell {
  position: relative;
}

.section {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: var(--container);
  margin: 0 auto;
  padding: 18px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 8px -18px auto;
  height: calc(100% - 8px);
  border: 1px solid rgba(240, 238, 230, 0.9);
  border-radius: 999px;
  background: rgba(250, 249, 245, 0.78);
  backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px rgba(240, 238, 230, 0.6);
  z-index: -1;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
}

.site-brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  background: var(--charcoal);
  color: var(--ivory);
}

.site-brand__text,
.site-nav a {
  font-size: 0.96rem;
  color: var(--olive);
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  transition: background-color 180ms ease, color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(232, 230, 220, 0.75);
  color: var(--ink);
  outline: none;
}

.hero {
  padding: 92px 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--warm);
}

.eyebrow--light {
  color: #ddae9d;
}

.hero-copy h1,
.story-copy h2,
.section-heading h2,
.setup-copy h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  font-size: clamp(3.5rem, 6vw, 5.8rem);
  line-height: 0.95;
  max-width: 10ch;
}

.hero-lead,
.story-copy p,
.setup-copy p,
.section-heading__text,
.metric-card__text,
.story-point p,
.side-note p,
.site-footer p,
.lightbox__caption p {
  color: var(--olive);
  line-height: 1.72;
  font-size: 1.02rem;
}

.hero-lead {
  max-width: 34rem;
  margin: 22px 0 28px;
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  border: none;
  border-radius: 999px;
  padding: 14px 20px;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(20, 20, 19, 0.12);
  outline: none;
}

.button--brand {
  background: var(--warm);
  color: var(--ivory);
}

.button--soft {
  background: var(--sand);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(20, 20, 19, 0.06);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(250, 249, 245, 0.88);
  border: 1px solid rgba(232, 230, 220, 0.9);
  color: var(--olive);
  font-size: 0.92rem;
}

.hero-stage {
  position: relative;
  min-height: 620px;
  display: grid;
  align-content: center;
  gap: 22px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.4px);
}

.orb--large {
  top: 4%;
  right: 2%;
  width: 220px;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 40% 35%, rgba(255, 255, 255, 0.72), transparent 42%),
    linear-gradient(180deg, rgba(217, 119, 87, 0.45), rgba(201, 100, 66, 0.08));
  animation: drift 10s ease-in-out infinite;
}

.orb--small {
  bottom: 12%;
  left: -4%;
  width: 140px;
  aspect-ratio: 1;
  border: 1px solid rgba(20, 20, 19, 0.06);
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.58), transparent 60%),
    linear-gradient(180deg, rgba(232, 230, 220, 0.8), rgba(232, 230, 220, 0.18));
  animation: drift 12s ease-in-out infinite reverse;
}

.featured-frame,
.side-note,
.metric-card,
.story-point,
.gallery-card,
.empty-gallery,
.code-panel {
  background: rgba(250, 249, 245, 0.92);
  border: 1px solid rgba(240, 238, 230, 0.96);
  box-shadow: var(--shadow-card);
}

.featured-frame {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: 34px;
  min-height: 420px;
  z-index: 1;
}

.featured-frame__header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.featured-frame__label {
  margin: 0 0 6px;
  color: var(--stone);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.featured-frame__title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1;
}

.featured-frame__date {
  align-self: start;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(232, 230, 220, 0.72);
  color: var(--olive);
  font-size: 0.88rem;
}

.featured-frame__media {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(160deg, rgba(201, 100, 66, 0.18), rgba(93, 108, 82, 0.1)),
    linear-gradient(180deg, rgba(250, 249, 245, 0.75), rgba(232, 230, 220, 0.95));
}

.featured-frame__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-frame__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 32px;
  text-align: center;
  color: var(--olive);
}

.featured-frame__placeholder span {
  display: inline-block;
  max-width: 19ch;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  line-height: 1.08;
}

.featured-frame__note {
  margin: 16px 0 0;
}

.side-note {
  align-self: start;
  justify-self: end;
  width: min(320px, 88%);
  padding: 20px 22px;
  border-radius: 22px;
  transform: translate(-12px, -44px);
  background: rgba(20, 20, 19, 0.95);
  border-color: rgba(48, 48, 46, 0.95);
  color: var(--ivory);
}

.side-note__label,
.code-panel__label {
  margin: 0 0 12px;
  color: #b0aea5;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.side-note p {
  margin: 0;
  color: #d6d1c8;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 90px;
}

.metric-card {
  padding: 24px;
  border-radius: 24px;
}

.metric-card__label {
  margin: 0;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
}

.metric-card__value {
  margin: 14px 0 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.2rem;
  line-height: 1;
}

.metric-card__text {
  margin: 0;
}

.story-band {
  position: relative;
  padding: 96px 0;
  color: var(--ivory);
  background:
    radial-gradient(circle at 15% 10%, rgba(201, 100, 66, 0.24), transparent 20%),
    radial-gradient(circle at 85% 78%, rgba(148, 167, 120, 0.18), transparent 25%),
    linear-gradient(180deg, #191917 0%, #141413 100%);
}

.story-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: start;
}

.story-copy h2 {
  font-size: clamp(2.6rem, 5vw, 4.3rem);
  line-height: 0.98;
  max-width: 10ch;
}

.story-copy p {
  color: #cfc8bd;
  max-width: 34rem;
}

.story-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.story-point {
  padding: 24px;
  border-radius: 24px;
  background: rgba(48, 48, 46, 0.85);
  border-color: rgba(79, 79, 74, 0.88);
}

.story-point__title {
  margin: 0 0 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  line-height: 1;
  color: var(--ivory);
}

.story-point p {
  margin: 0;
  color: #d5cec5;
}

.gallery-section {
  padding: 96px 0 34px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading h2,
.setup-copy h2 {
  font-size: clamp(2.7rem, 5vw, 4.2rem);
  line-height: 0.98;
}

.section-heading__text {
  margin: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.gallery-card {
  grid-column: span 4;
  overflow: hidden;
  border-radius: 26px;
  cursor: pointer;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.gallery-card:hover,
.gallery-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(201, 100, 66, 0.28);
  box-shadow: 0 18px 44px rgba(20, 20, 19, 0.12);
  outline: none;
}

.gallery-card[data-aspect="landscape"] {
  grid-column: span 8;
}

.gallery-card[data-aspect="wide"] {
  grid-column: span 12;
}

.gallery-card__media {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(201, 100, 66, 0.12), rgba(93, 108, 82, 0.08)),
    linear-gradient(180deg, rgba(250, 249, 245, 0.68), rgba(232, 230, 220, 0.9));
}

.gallery-card[data-aspect="portrait"] .gallery-card__media {
  aspect-ratio: 4 / 5;
}

.gallery-card[data-aspect="landscape"] .gallery-card__media,
.gallery-card[data-aspect="wide"] .gallery-card__media {
  aspect-ratio: 16 / 10;
}

.gallery-card[data-aspect="square"] .gallery-card__media {
  aspect-ratio: 1 / 1;
}

.gallery-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.gallery-card:hover .gallery-card__media img,
.gallery-card:focus-visible .gallery-card__media img {
  transform: scale(1.04);
}

.gallery-card__body {
  padding: 20px 20px 22px;
}

.gallery-card__title {
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.95rem;
  line-height: 0.98;
}

.gallery-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.gallery-card__tag {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(232, 230, 220, 0.78);
  color: var(--olive);
  font-size: 0.82rem;
}

.gallery-card__note {
  margin: 0;
  color: var(--olive);
  line-height: 1.7;
}

.empty-gallery {
  grid-column: 1 / -1;
  padding: 34px;
  border-radius: 30px;
}

.empty-gallery__headline {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 1;
}

.empty-gallery__text {
  max-width: 42rem;
  margin: 14px 0 22px;
  color: var(--olive);
  line-height: 1.8;
}

.empty-gallery__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.empty-gallery__card {
  min-height: 220px;
  border-radius: 22px;
  padding: 20px;
  border: 1px solid rgba(232, 230, 220, 0.92);
  background:
    radial-gradient(circle at top right, rgba(217, 119, 87, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(250, 249, 245, 0.9), rgba(232, 230, 220, 0.9));
}

.empty-gallery__card p:first-child {
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
}

.empty-gallery__card p:last-child {
  margin: 0;
  color: var(--olive);
  line-height: 1.7;
}

.setup-section {
  padding: 48px 0 110px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  gap: 28px;
  align-items: start;
}

.letters-section {
  padding: 18px 0 110px;
}

.letters-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}

.letters-intro h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: clamp(2.7rem, 5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.letters-intro p:last-child {
  margin: 0;
  color: var(--olive);
  line-height: 1.8;
}

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

.letter-card {
  padding: 24px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(217, 119, 87, 0.14), transparent 30%),
    rgba(250, 249, 245, 0.92);
  border: 1px solid rgba(240, 238, 230, 0.96);
  box-shadow: var(--shadow-card);
}

.letter-card__title {
  margin: 0 0 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  line-height: 1;
}

.letter-card p:last-child {
  margin: 0;
  color: var(--olive);
  line-height: 1.75;
}

.upload-section {
  padding: 0 0 110px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 28px;
  align-items: start;
}

.uploader-tips {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.uploader-tip {
  padding: 20px 22px;
  border-radius: 22px;
  background: rgba(250, 249, 245, 0.9);
  border: 1px solid rgba(240, 238, 230, 0.96);
  box-shadow: var(--shadow-card);
}

.uploader-tip__title {
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  line-height: 1;
}

.uploader-tip p:last-child {
  margin: 0;
  color: var(--olive);
  line-height: 1.7;
}

.upload-panel,
.snippet-panel {
  padding: 24px;
  border-radius: 28px;
}

.upload-panel {
  display: grid;
  gap: 22px;
}

.uploader-form {
  display: grid;
  gap: 18px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 10px;
}

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

.field span,
.upload-status__label,
.upload-results__header p,
.upload-results__header span,
.helper-text,
.upload-result__meta,
.upload-result__url {
  font-size: 0.9rem;
}

.field span,
.upload-status__label,
.helper-text,
.upload-result__meta {
  color: var(--stone);
}

.field input,
.field select,
.snippet-panel textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(232, 230, 220, 0.95);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.field input:focus,
.field select:focus,
.snippet-panel textarea:focus {
  outline: 2px solid rgba(56, 152, 236, 0.24);
  border-color: rgba(56, 152, 236, 0.6);
}

.field input[type="file"] {
  padding: 18px 16px;
  background:
    radial-gradient(circle at top right, rgba(217, 119, 87, 0.12), transparent 30%),
    rgba(255, 255, 255, 0.85);
}

.helper-text {
  margin: 0;
  line-height: 1.7;
}

.upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.upload-status {
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(20, 20, 19, 0.94);
  border: 1px solid rgba(48, 48, 46, 0.95);
}

.upload-status__label,
.upload-status__text {
  margin: 0;
}

.upload-status__label {
  margin-bottom: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.upload-status__text {
  color: #d7d0c6;
  line-height: 1.7;
}

.upload-results,
.snippet-panel {
  display: grid;
  gap: 14px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(232, 230, 220, 0.92);
}

.upload-results__header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
}

.upload-results__header p,
.upload-results__header span {
  margin: 0;
}

.upload-result-list {
  display: grid;
  gap: 12px;
}

.upload-result-list__empty {
  margin: 0;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(250, 249, 245, 0.82);
  color: var(--olive);
}

.upload-result {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(250, 249, 245, 0.86);
  border: 1px solid rgba(232, 230, 220, 0.92);
}

.upload-result__top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.upload-result__name {
  margin: 0;
  font-weight: 700;
}

.upload-result__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(232, 230, 220, 0.75);
}

.upload-result__meta[data-status="success"] {
  background: rgba(108, 134, 89, 0.16);
  color: #4e6a43;
}

.upload-result__meta[data-status="error"] {
  background: rgba(181, 51, 51, 0.12);
  color: #8e2f2f;
}

.upload-result__url {
  color: var(--warm);
  word-break: break-all;
}

.snippet-panel textarea {
  min-height: 260px;
  resize: vertical;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.88rem;
  line-height: 1.7;
  background: rgba(250, 249, 245, 0.82);
}

.steps {
  margin: 22px 0 0;
  padding-left: 18px;
  color: var(--olive);
  line-height: 1.8;
}

.code-panel {
  padding: 24px;
  border-radius: 28px;
  background: rgba(20, 20, 19, 0.97);
  border-color: rgba(48, 48, 46, 0.95);
  box-shadow: 0 28px 60px rgba(20, 20, 19, 0.28);
}

.code-panel pre {
  margin: 0;
  overflow: auto;
}

.code-panel code {
  color: #f3f0e8;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.8;
}

.site-footer {
  width: var(--container);
  margin: 0 auto;
  padding: 0 0 48px;
}

.site-footer p {
  margin: 0;
  padding-top: 26px;
  border-top: 1px solid rgba(232, 230, 220, 0.96);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(20, 20, 19, 0.76);
  cursor: pointer;
}

.lightbox__dialog {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: min(1220px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 40px 0;
}

.lightbox__figure {
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  background: var(--charcoal);
  box-shadow: 0 32px 72px rgba(20, 20, 19, 0.35);
}

.lightbox__figure img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  background: var(--charcoal);
}

.lightbox__caption {
  padding: 18px 22px 24px;
  background: rgba(20, 20, 19, 0.96);
}

.lightbox__caption h3 {
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  line-height: 1;
  color: var(--ivory);
}

.lightbox__caption p {
  margin: 0;
  color: #cfc7bd;
}

.lightbox__close,
.lightbox__nav {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(20, 20, 19, 0.76);
  color: var(--ivory);
  cursor: pointer;
}

.lightbox__close {
  position: absolute;
  top: 18px;
  right: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.5rem;
}

.lightbox__nav {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.2rem;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -12px, 0);
  }
}

@media (max-width: 1040px) {
  .hero,
  .story-band__inner,
  .setup-section,
  .letters-intro,
  .upload-section,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 0;
  }

  .side-note {
    width: 100%;
    justify-self: stretch;
    transform: translate(0, 0);
  }

  .story-points,
  .letters-grid,
  .metrics,
  .field-grid,
  .empty-gallery__cards {
    grid-template-columns: 1fr;
  }

  .gallery-card,
  .gallery-card[data-aspect="landscape"],
  .gallery-card[data-aspect="wide"] {
    grid-column: span 6;
  }

  .lightbox__dialog {
    grid-template-columns: 1fr;
  }

  .lightbox__nav {
    display: none;
  }
}

@media (max-width: 760px) {
  .section {
    width: min(100vw - 24px, 1180px);
  }

  .site-header {
    width: min(100vw - 24px, 1180px);
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .site-header::before {
    inset: 8px -8px auto;
    border-radius: 28px;
  }

  .site-brand,
  .site-nav {
    justify-content: center;
  }

  .hero {
    padding-top: 72px;
  }

  .hero-copy h1 {
    max-width: 12ch;
  }

  .featured-frame {
    padding: 18px;
    border-radius: 26px;
  }

  .featured-frame__header {
    flex-direction: column;
  }

  .upload-actions,
  .upload-results__header,
  .upload-result__top {
    flex-direction: column;
    align-items: stretch;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card,
  .gallery-card[data-aspect="landscape"],
  .gallery-card[data-aspect="wide"] {
    grid-column: span 1;
  }

  .lightbox__dialog {
    width: calc(100vw - 16px);
    padding: 56px 0 16px;
  }

  .lightbox__figure img {
    max-height: 58vh;
  }

  .lightbox__close {
    right: 8px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
