@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/realizacje/4gospel/assets/bodoni-moda-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/realizacje/4gospel/assets/bodoni-moda-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Bodoni Moda";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/realizacje/4gospel/assets/bodoni-moda-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Bodoni Moda";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/realizacje/4gospel/assets/bodoni-moda-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/realizacje/4gospel/assets/ibm-plex-mono-regular-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/realizacje/4gospel/assets/ibm-plex-mono-regular-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ivory: #faf7f1;
  --rose: #e8d9b5;
  --rose-ink: #0d1b3d;
  --mist: #0d1b3d;
  --mist-ink: #faf7f1;
  --plum: #0d1b3d;
  --ink: #0d1b3d;
  --gold: #c7a66a;
  --line: rgba(13, 27, 61, 0.42);
  --serif: "Bodoni Moda", Didot, "Times New Roman", serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;
}

.gospel-brand {
  white-space: nowrap;
}

.gospel-brand__four {
  /* Keep the previous advance width; retain the literal 4 for copying and speech. */
  display: inline-block;
  inline-size: .6016em;
  block-size: .84em;
  overflow: hidden;
  font-family: inherit;
  font-size: 1em;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0;
  text-indent: 100%;
  vertical-align: -.0512em;
  background-color: currentColor;
  -webkit-mask: url("/realizacje/4gospel/assets/brand-2026/4gospel-four-official-2026-09.svg") center / contain no-repeat;
  mask: url("/realizacje/4gospel/assets/brand-2026/4gospel-four-official-2026-09.svg") center / contain no-repeat;
  mask-mode: alpha;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  background: var(--ivory);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 5px;
}

h1,
h2,
p,
figure {
  margin: 0;
}

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

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-transform: none;
  text-wrap: balance;
}

.menu-panel__footer,
.hero-copy,
.portrait-story h2,
.story-claim,
.experience-intro h2,
.experience-closing,
.gallery-heading h2,
.closing-photo__copy > p,
.footer-description > p,
.footer-bottom > p:last-child {
  text-transform: uppercase;
}

em {
  font-weight: 400;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 300;
  padding: 0.65rem 0.8rem;
  background: var(--ivory);
  color: var(--ink);
  font-size: 0.875rem;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateY(-180%);
}

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

.page-gutter {
  width: calc(100% - clamp(3rem, 9vw, 8rem));
  max-width: 88rem;
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 120;
  color: var(--ivory);
  transition: color 250ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
}

.header-inner {
  min-height: 7rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 94%;
  margin-inline: auto;
}

.header-action,
.menu-button,
.menu-action,
.menu-close {
  width: fit-content;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  padding: 0 0 0.22rem;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
}

.menu-button,
.menu-close {
  justify-self: end;
  cursor: pointer;
}

.wordmark {
  transition: opacity 220ms ease;
}

.wordmark--logo {
  display: flex;
  width: 6.4rem;
  align-items: center;
  text-decoration: none;
}

.wordmark-logo {
  display: block;
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 1px 0 rgba(255, 253, 246, 0.42))
    drop-shadow(0 0.25rem 0.75rem rgba(13, 27, 61, 0.38));
}

.menu-wordmark {
  display: block;
  width: 6.4rem;
  height: auto;
}

.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 1.15rem 2.5%;
  background: var(--ivory);
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
  transition: opacity 280ms ease, transform 500ms cubic-bezier(0.76, 0, 0.24, 1);
}

.menu-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.menu-panel__header {
  min-height: 5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.menu-panel__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 74rem);
  margin-inline: auto;
}

.menu-nav {
  display: grid;
  align-content: center;
}

.menu-nav a,
.menu-nav .nav-label {
  width: fit-content;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  letter-spacing: -0.045em;
  line-height: 1.12;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.menu-nav a:hover {
  color: var(--gold);
}

.menu-preview {
  position: relative;
  width: 14.5rem;
  height: 19rem;
  overflow: hidden;
  border: 1px solid rgba(199, 166, 106, 0.7);
}

.menu-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-preview span {
  position: absolute;
  right: 0.7rem;
  bottom: 0.55rem;
  color: var(--ivory);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.menu-panel__footer {
  display: flex;
  border-top: 1px solid rgba(13, 27, 61, 0.35);
  padding-top: 0.9rem;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--ink);
  color: var(--ivory);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(14, 8, 12, 0.18);
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  filter: saturate(0.7) contrast(0.94) brightness(0.92);
}

.hero-copy {
  position: absolute;
  z-index: 2;
  width: 18rem;
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  font-weight: 400;
  line-height: 1.55;
}

.hero-copy--left {
  top: 32.5%;
  left: 13.2%;
  transform: translateY(-50%);
}

.hero-copy--right {
  top: 67.5%;
  right: 13.2%;
  text-align: right;
  transform: translateY(-50%);
}

.hero-center {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  justify-items: center;
  gap: 2.5rem;
  width: min(33rem, 38vw);
  text-align: center;
  transform: translate(-50%, -50%);
}

.hero-center h1 {
  font-size: clamp(3.1rem, 4.8vw, 4.5rem);
  line-height: 1.08;
}

.hero-center .underlined-link {
  font-size: 0.8rem;
}

.portrait-story {
  position: relative;
  min-height: 155svh;
  overflow: hidden;
}

.portrait-story::after {
  content: "";
  position: absolute;
  top: clamp(5rem, 10vw, 9rem);
  right: clamp(1.25rem, 3vw, 3rem);
  width: clamp(18rem, 32vw, 34rem);
  aspect-ratio: 1000 / 640;
  background: url("/realizacje/4gospel/assets/brand-2026/4gospel-symbol-official-2026-09.webp") center / contain no-repeat;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}

.portrait-story.portrait-story--mist::after {
  right: clamp(1.25rem, 6vw, 6rem);
  background-image: url("/realizacje/4gospel/assets/brand-2026/4gospel-symbol-official-negative-2026-09.webp");
  opacity: 0.12;
}

.portrait-story--rose {
  background: var(--rose);
  color: var(--rose-ink);
}

.portrait-story--mist {
  background: var(--mist);
  color: var(--mist-ink);
}

.portrait-story__inner {
  position: sticky;
  top: 0;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(2rem, 4vh, 3rem);
  padding: 7rem 1.5rem 3rem;
  text-align: center;
}

.portrait-story h1,
.portrait-story h2 {
  width: min(100%, 43rem);
  font-size: clamp(2.75rem, 4vw, 3.65rem);
}

.portrait-photo {
  position: relative;
  width: clamp(13rem, 16vw, 14.5rem);
  height: clamp(18rem, 23vw, 20rem);
  overflow: hidden;
  clip-path: inset(9% 0 9% 0);
  transition: clip-path 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.portrait-story.is-visible .portrait-photo {
  clip-path: inset(0);
}

.portrait-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-story--rose .portrait-photo img {
  object-position: 55% center;
}

.portrait-story--mist .portrait-photo img {
  object-position: 53% center;
}

.portrait-story__text {
  display: grid;
  gap: 1.25rem;
  width: min(100%, 42rem);
  font-size: clamp(0.8rem, 0.9vw, 0.9rem);
  line-height: 1.58;
}

.portrait-story__text p {
  text-wrap: pretty;
}

.portrait-story__text .story-claim {
  font-size: 1.08em;
}

.story-swap {
  position: relative;
}

.story-swap__anchor {
  display: block;
}

.has-section-swap .story-swap {
  height: 230svh;
  background: var(--rose);
}

.has-section-swap .story-swap__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: clip;
  isolation: isolate;
  background: var(--rose);
}

.has-section-swap .story-swap__panel {
  position: absolute;
  inset: 0;
  min-height: 0;
}

.has-section-swap .story-swap .portrait-story {
  min-height: 0;
}

.has-section-swap .story-swap .portrait-story__inner {
  position: absolute;
  inset: 0;
  min-height: 100%;
}

.has-section-swap .story-swap__panel--old .portrait-story__inner {
  opacity: var(--swap-old-opacity, 1);
  will-change: opacity;
}

.has-section-swap .story-swap__panel--old::after {
  opacity: calc(0.1 * var(--swap-old-opacity, 1));
}

.has-section-swap .story-swap__panel--old {
  z-index: 1;
}

.has-section-swap .story-swap__panel--new {
  z-index: 2;
  min-height: 0;
  background: transparent;
}

.has-section-swap .story-swap__panel--new::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--mist);
  content: "";
  opacity: var(--swap-background-opacity, 0);
  will-change: opacity;
}

.has-section-swap .story-swap__panel--new .portrait-story__inner {
  z-index: 1;
  opacity: var(--swap-new-opacity, 0);
  will-change: opacity;
}

.has-section-swap .story-swap__panel--new::after {
  opacity: calc(0.12 * var(--swap-new-opacity, 0));
}

.has-section-swap .story-swap__anchor {
  position: absolute;
  top: 108svh;
  left: 0;
  width: 1px;
  height: 1px;
}

.experience {
  position: relative;
  overflow: hidden;
  padding-block: clamp(9rem, 13vw, 13rem) clamp(8rem, 12vw, 12rem);
  background: var(--ivory);
}

.experience--continuation {
  padding-top: clamp(5rem, 8vw, 8rem);
}

.experience-intro {
  display: grid;
  grid-template-columns: 7rem minmax(0, 39rem);
  justify-content: center;
  gap: 2.25rem;
  align-items: start;
}

.experience-name {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  padding-top: 0.25rem;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-style: italic;
  letter-spacing: -0.04em;
  text-align: center;
  text-transform: uppercase;
}

.experience-name::before {
  content: "";
  display: block;
  width: 100%;
  aspect-ratio: 1000 / 640;
  background: url("/realizacje/4gospel/assets/brand-2026/4gospel-symbol-official-2026-09.webp") center / contain no-repeat;
}

.experience-intro h2 {
  font-size: clamp(2.15rem, 3.1vw, 3rem);
  line-height: 1.12;
}

.experience-intro h2 em {
  color: var(--plum);
}

.experience-images {
  position: relative;
  min-height: 77rem;
  margin-top: 8rem;
}

.experience--continuation .experience-images {
  margin-top: 0;
}

.experience-photo {
  position: absolute;
  overflow: hidden;
}

.experience-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72);
  transition: filter 400ms ease;
}

.experience-photo:hover img {
  filter: saturate(1);
}

.experience-photo--right {
  top: 0;
  left: 56%;
  width: min(29vw, 22rem);
  height: min(41vw, 31rem);
}

.experience-photo--left {
  top: 25rem;
  left: 0;
  width: min(47vw, 37rem);
  height: min(58vw, 46rem);
}

.experience-list {
  position: absolute;
  top: 34rem;
  left: 56%;
  display: grid;
  gap: 0.12rem;
  font-size: clamp(0.75rem, 0.95vw, 0.88rem);
  line-height: 1.45;
}

.experience-list p {
  position: relative;
  padding-left: 1rem;
}

.experience-list p::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 0.34rem;
  height: 0.34rem;
  background: var(--gold);
  transform: rotate(45deg);
}

.experience-closing {
  position: absolute;
  bottom: 0;
  left: 0;
  display: grid;
  width: min(47vw, 37rem);
  font-size: clamp(0.8rem, 1vw, 0.95rem);
  line-height: 1.45;
}

.underlined-link {
  width: fit-content;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.2rem;
  font-size: 0.8rem;
  text-decoration: none;
  text-transform: uppercase;
}

.underlined-link--light {
  color: var(--ivory);
}

.gallery {
  overflow: hidden;
  padding-block: clamp(9rem, 12vw, 12rem) clamp(7rem, 9vw, 9rem);
  border-top: 1px solid rgba(13, 27, 61, 0.12);
  background: var(--ivory);
}

.gallery-heading {
  display: grid;
  grid-template-columns: 9rem minmax(0, 39rem);
  gap: 6rem;
  align-items: end;
  width: 70%;
  margin-bottom: 3.5rem;
  margin-left: 19.5%;
}

.gallery-heading p {
  position: relative;
  padding-bottom: 0.35rem;
  padding-left: 2rem;
  font-size: 0.75rem;
  line-height: 1.5;
}

.gallery-heading p::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 1.25rem;
  height: 1px;
  background: var(--gold);
}

.gallery-heading p::after {
  content: "";
  position: absolute;
  top: calc(0.55em - 0.14rem);
  left: 1.13rem;
  width: 0.3rem;
  height: 0.3rem;
  background: var(--gold);
  transform: rotate(45deg);
}

.gallery-heading h2 {
  font-size: clamp(2.55rem, 3.9vw, 3.7rem);
  line-height: 1.04;
}

.gallery-viewport {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.gallery-viewport::-webkit-scrollbar {
  display: none;
}

.gallery-track {
  width: max-content;
  display: flex;
  gap: 1rem;
  padding-inline: 19.5% 6rem;
}

.gallery-card {
  width: clamp(18rem, 28vw, 25rem);
  flex: 0 0 auto;
}

.gallery-card img {
  width: 100%;
  height: clamp(24rem, 36vw, 32.5rem);
  object-fit: cover;
  filter: saturate(0.82);
  transition: filter 250ms ease;
}

.gallery-card .image-slot--07 {
  object-position: 72% center;
}

.menu-preview .image-slot--08,
.gallery-card .image-slot--08 {
  object-position: 54% center;
}

.gallery-card .image-slot--09 {
  object-position: right center;
}

.gallery-card:hover img {
  filter: saturate(1);
}

.gallery-card figcaption {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.55rem;
  font-size: 0.75rem;
}

.gallery-controls {
  display: flex;
  gap: 0.2rem;
  margin-top: 2.5rem;
  padding-left: 15.5%;
}

.gallery-controls button {
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(13, 27, 61, 0.36);
  border-radius: 50%;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font-size: 1.15rem;
}

.closing-photo {
  min-height: 92svh;
  display: grid;
  grid-template-columns: minmax(20rem, 1fr) minmax(20rem, 1fr);
  align-items: center;
  gap: clamp(4rem, 9vw, 10rem);
  padding: clamp(7rem, 10vw, 10rem) clamp(3rem, 9vw, 8rem);
  border-top: 1px solid rgba(13, 27, 61, 0.16);
  background: var(--ivory);
}

.closing-photo figure {
  position: relative;
  justify-self: end;
  width: min(35vw, 28rem);
  height: min(45vw, 36rem);
  overflow: hidden;
}

.closing-photo figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.closing-photo__copy {
  display: grid;
  gap: 2.5rem;
  width: min(100%, 27rem);
  font-size: clamp(0.9rem, 1vw, 1.05rem);
  line-height: 1.55;
}

.closing-photo .underlined-link {
  color: var(--ink);
}

.site-header.is-scrolled .wordmark {
  opacity: 0;
  pointer-events: none;
}

.site-footer {
  padding: 3.5rem clamp(1.25rem, 4vw, 4rem) 1.5rem;
  border-top: 1px solid rgba(199, 166, 106, 0.55);
  background: var(--ink);
  color: var(--ivory);
}

.footer-top {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
}

.footer-top,
.footer-bottom {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
}

.footer-description {
  display: grid;
  align-content: center;
  gap: 1rem;
}

.footer-description > p {
  width: min(100%, 30rem);
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.52;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  width: 8rem;
  text-decoration: none;
}

.footer-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.footer-logo__name {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.footer-logo__name .gospel-brand__four {
  color: var(--gold);
}

.footer-logo__choir {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 0.875rem;
  font-style: italic;
  line-height: 1;
}

.footer-nav,
.footer-contact {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.footer-nav a,
.footer-nav .nav-label,
.footer-contact a {
  width: fit-content;
  text-decoration: none;
}

.footer-contact {
  gap: 1rem;
}

.footer-patronage {
  text-transform: none;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  padding-right: 4rem;
  border-top: 1px solid rgba(250, 247, 241, 0.16);
  font-size: 0.75rem;
  text-transform: none;
}

.footer-bottom > * {
  margin: 0;
  text-decoration: none;
}

.footer-credit {
  display: inline-flex;
  align-items: baseline;
  gap: 0.38rem;
  color: rgba(250, 247, 241, 0.72);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.footer-credit span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  letter-spacing: -0.02em;
}

.footer-credit:hover,
.footer-credit:focus-visible {
  color: var(--ivory);
}

.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 90;
  display: grid;
  width: 3.15rem;
  height: 3.15rem;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: rgba(250, 247, 241, 0.72);
  color: var(--ink);
  box-shadow: 0 0 0 2px rgba(199, 166, 106, 0.18);
  font-size: 1.05rem;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: opacity 180ms ease;
}

body.is-section-dissolving .back-to-top {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 900px) {
  .page-gutter {
    width: calc(100% - 2rem);
  }

  .header-inner {
    min-height: 5rem;
    width: calc(100% - 2.5rem);
  }

  .header-action {
    display: none;
  }

  .header-inner,
  .menu-panel__header {
    grid-template-columns: 1fr auto;
  }

  .wordmark,
  .menu-wordmark {
    justify-self: start;
    grid-column: 1;
    grid-row: 1;
  }

  .wordmark--logo {
    width: 5.4rem;
  }

  .menu-button,
  .menu-close {
    grid-column: 2;
    grid-row: 1;
  }

  .menu-action {
    display: none;
  }

  .menu-panel {
    padding-inline: 1.25rem;
  }

  .menu-panel__body {
    gap: 3rem;
  }

  .menu-preview {
    width: 12rem;
    height: 16rem;
  }

  .hero-copy--left {
    left: 8%;
  }

  .hero-copy--right {
    right: 8%;
  }

  .experience-images {
    min-height: 68rem;
  }

  .experience-photo--left {
    top: 28rem;
  }

  .experience-list {
    top: 32rem;
  }

  .gallery-heading {
    width: calc(100% - 2rem);
    margin-left: 1rem;
  }

  .gallery-track {
    padding-left: 1rem;
  }

  .gallery-controls {
    padding-left: 0;
  }

  .closing-photo {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding-inline: 2rem;
  }
}

@media (max-width: 600px) {
  .site-header {
    color: var(--ivory);
  }

  .site-header.is-scrolled {
    color: var(--ink);
  }

  .header-inner {
    min-height: 5.5rem;
    grid-template-columns: 1fr auto 1fr;
    width: calc(100% - 2.5rem);
  }

  .wordmark,
  .menu-wordmark {
    font-size: 1.35rem;
  }

  .wordmark--logo {
    width: 4.9rem;
    grid-column: 2;
    justify-self: center;
    transform: translateY(0.7rem);
  }

  .menu-wordmark {
    width: 4.9rem;
  }

  .menu-button {
    grid-column: 3;
    justify-self: end;
    font-size: 0.875rem;
  }

  .menu-close {
    font-size: 0.875rem;
  }

  .menu-panel__body {
    display: grid;
    align-content: center;
  }

  .menu-nav a,
  .menu-nav .nav-label {
    font-size: clamp(2.35rem, 10vw, 3rem);
  }

  .menu-preview {
    display: none;
  }

  .menu-panel__footer {
    display: grid;
    gap: 0.4rem;
  }

  .hero {
    min-height: 100svh;
    margin: 0;
  }

  .hero-copy {
    display: none;
  }

  .hero-center {
    top: 43%;
    width: calc(100% - 3rem);
  }

  .hero-center h1 {
    font-size: clamp(3rem, 13.5vw, 4.15rem);
    line-height: 1.02;
  }

  .hero-center .underlined-link {
    font-size: 0.875rem;
  }

  .hero-media img {
    object-position: 54% center;
  }

  .portrait-story {
    min-height: auto;
  }

  .portrait-story::after {
    top: 6rem;
    right: 1.25rem;
    width: 17rem;
  }

  .portrait-story__inner {
    position: static;
    min-height: 100svh;
    gap: 2.5rem;
    padding: 8rem 1.2rem 5.5rem;
  }

  .portrait-story h1,
  .portrait-story h2 {
    max-width: 29rem;
    font-size: clamp(2.2rem, 9.4vw, 2.85rem);
    line-height: 1;
  }

  .portrait-photo {
    width: min(14.5rem, 60vw);
    height: min(20rem, 84vw);
    clip-path: none;
  }

  .portrait-story__text {
    max-width: 26rem;
    gap: 1.5rem;
    font-size: 0.875rem;
    line-height: 1.58;
  }

  .has-section-swap .story-swap {
    height: 210svh;
  }

  .has-section-swap .story-swap__anchor {
    top: 100svh;
  }

  .experience {
    padding-block: 7rem 6rem;
  }

  .experience-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    width: calc(100% - 2rem);
  }

  .experience-name {
    display: none;
  }

  .experience-intro h2 {
    font-size: clamp(1.5rem, 6.8vw, 2.4rem);
    line-height: 1.12;
  }

  .experience-images {
    position: static;
    min-height: 0;
    display: grid;
    margin-top: 6rem;
  }

  .experience-photo,
  .experience-list,
  .experience-closing {
    position: relative;
    inset: auto;
  }

  .experience-photo--right {
    width: 70%;
    height: auto;
    aspect-ratio: 0.72 / 1;
    justify-self: end;
  }

  .experience-list {
    width: 70%;
    justify-self: end;
    margin-top: 2rem;
    font-size: 0.8rem;
  }

  .experience-photo--left {
    width: 100%;
    height: auto;
    aspect-ratio: 0.86 / 1;
    margin-top: 6rem;
  }

  .experience-closing {
    width: 100%;
    margin-top: 2rem;
    font-size: 0.875rem;
  }

  .gallery {
    padding-block: 7rem 6rem;
  }

  .gallery-heading {
    grid-template-columns: 5.5rem minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    margin-bottom: 3rem;
  }

  .gallery-heading p {
    font-size: 0.75rem;
  }

  .gallery-heading h2 {
    font-size: clamp(2.05rem, 8.3vw, 2.65rem);
  }

  .gallery-track {
    gap: 0.7rem;
    padding-right: 1rem;
  }

  .gallery-card {
    width: 76vw;
  }

  .gallery-card img {
    height: 98vw;
  }

  .gallery-controls {
    margin-top: 1.5rem;
  }

  .closing-photo {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 3.5rem;
    padding: 6rem 1rem;
  }

  .closing-photo figure {
    justify-self: center;
    width: 76vw;
    height: 98vw;
  }

  .closing-photo__copy {
    width: 76vw;
    justify-self: center;
    font-size: 0.875rem;
  }

  .closing-photo .underlined-link {
    font-size: 0.875rem;
  }

  .site-footer {
    padding: 2.5rem 1.25rem 1.25rem;
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 1.5rem;
  }

  .footer-description {
    justify-items: center;
    text-align: center;
  }

  .footer-description > p {
    max-width: 22rem;
    font-size: 0.875rem;
  }

  .footer-logo {
    width: 6.5rem;
  }

  .footer-logo__name {
    font-size: 1.35rem;
  }

  .footer-nav,
  .footer-contact {
    font-size: 0.875rem;
    justify-items: center;
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 24rem);
    gap: 0.75rem 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    margin-top: 2rem;
    padding-inline: 3.25rem;
    font-size: 0.75rem;
    text-align: center;
  }

  .footer-bottom > * {
    border: 0;
  }

  .back-to-top {
    right: 1rem;
    bottom: 1rem;
    width: 2.9rem;
    height: 2.9rem;
  }
}

@media (max-width: 600px) and (max-height: 700px) {
  .has-section-swap .story-swap .portrait-story__inner {
    gap: 0.5rem;
    padding: 3.75rem 0.9rem 1rem;
  }

  .has-section-swap .story-swap .portrait-story h2 {
    font-size: clamp(1.55rem, 7vw, 1.85rem);
  }

  .has-section-swap .story-swap .portrait-photo {
    width: 8rem;
    height: 11.2rem;
  }

  .has-section-swap .story-swap .portrait-story__text {
    max-width: 19rem;
    gap: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.3;
  }

}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .portrait-photo {
    clip-path: none;
  }

}
