:root {
  --ink: #0a0a09;
  --paper: #ffffff;
  --red: #0a0a09;
  --soft: #f2f2ef;
  --line-dark: rgba(236, 233, 226, 0.25);
  --line-light: rgba(10, 10, 9, 0.22);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --motion-quick: 160ms;
  --motion-ui: 220ms;
  --page-x: clamp(1.25rem, 3vw, 3.5rem);
}

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

html { scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--ink);
  color: var(--paper);
  font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.menu-open, body.dialog-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
::selection { color: var(--paper); background: var(--ink); }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
main > section:focus { outline: none; }

.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-link {
  position: fixed;
  z-index: 1000;
  left: 1rem;
  top: 1rem;
  padding: 0.75rem 1rem;
  color: var(--ink);
  background: var(--paper);
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }

.loader {
  position: fixed;
  z-index: 999;
  inset: 0;
  display: none;
  place-items: center;
  background: var(--ink);
  transition: opacity var(--motion-ui) ease, visibility 0s var(--motion-ui);
}
.has-js .loader { display: grid; }
.loader p {
  display: flex;
  gap: 0.55rem;
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.loader p span { opacity: 0.45; }
.loader__line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--red);
  transform-origin: left;
  animation: loading 1.15s var(--ease-out) forwards;
}
.is-loaded .loader { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes loading { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.scroll-progress {
  position: fixed;
  z-index: 110;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: center;
  column-gap: clamp(1rem, 3vw, 3rem);
  padding: .95rem var(--page-x);
  color: #fff;
  background: linear-gradient(180deg, rgba(4,5,5,.25), transparent);
  transition: color .25s ease, background .25s ease;
}
.site-header.is-scrolled {
  color: var(--ink);
  background: var(--paper);
}
.brand { display: inline-flex; align-items: center; }
.brand__name { font-size: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.header-socials {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: .6rem;
}
.header-socials a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  opacity: .9;
  transition: opacity .2s ease, transform .2s var(--ease-out);
}
.header-socials svg {
  width: 1.25rem;
  height: 1.25rem;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.header-socials .social-icon__dot { fill: currentColor; stroke: none; }
.header-socials a:focus-visible { opacity: 1; outline: 1px solid currentColor; outline-offset: 1px; }
.desktop-nav { display: flex; gap: clamp(1.5rem, 3vw, 3.5rem); }
.desktop-nav a { position: relative; display: inline-flex; align-items: center; min-height: 2.75rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: .35rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .22s var(--ease-out);
}
.desktop-nav a:focus-visible::after, .desktop-nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle {
  position: relative;
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.75rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.menu-toggle::before, .menu-toggle::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  height: 1px;
  background: currentColor;
  transition: transform .22s var(--ease-out);
}
.menu-toggle::before { top: calc(50% - 4px); }
.menu-toggle::after { top: calc(50% + 3px); }
.menu-toggle[aria-expanded="true"]::before { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"]::after { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: none;
  padding: 6.5rem var(--page-x) 2rem;
  background: var(--paper);
  color: var(--ink);
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-.75rem);
  transition: opacity var(--motion-quick) ease, transform var(--motion-ui) var(--ease-out), visibility 0s var(--motion-ui);
}
.mobile-menu.is-open { visibility: visible; opacity: 1; transform: translateY(0); transition-delay: 0s; }
.mobile-menu nav { display: grid; border-top: 1px solid var(--line-light); }
.mobile-menu nav a { display: flex; align-items: center; min-height: 4rem; padding: 1rem 0; border-bottom: 1px solid var(--line-light); font-size: clamp(1.5rem, 6.4vw, 2rem); font-weight: 400; line-height: 1.2; letter-spacing: -.025em; }

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8rem var(--page-x) 2.25rem;
  isolation: isolate;
}
.hero__media, .hero__shade { position: absolute; inset: 0; }
.hero__media { z-index: -3; overflow: hidden; background: #141615; }
.hero__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .65s ease, visibility 0s .65s;
  pointer-events: none;
}
.hero__slide--portugal { --slide-position: 50% 26%; --slide-position-mobile: 50% 50%; }
.hero__slide--porto { --slide-position: 50% 30%; --slide-position-mobile: 50% 50%; }
.hero__slide--sporting { --slide-position: 50% 25%; --slide-position-mobile: 50% 50%; }
.hero__slide--league { --slide-position: 50% 30%; --slide-position-mobile: 50% 50%; }
.hero__slide--vitoria { --slide-position: 50% 25%; --slide-position-mobile: 50% 50%; }
.hero__slide.is-active { z-index: 1; opacity: 1; visibility: visible; transition-delay: 0s; }
.hero__slide.is-previous { z-index: 0; opacity: 1; visibility: visible; transition: none; }
.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--slide-position, 50% 50%);
}
.hero__shade {
  z-index: -2;
  background: linear-gradient(90deg, rgba(4,5,5,.48) 0%, rgba(4,5,5,.14) 42%, rgba(4,5,5,.02) 76%), linear-gradient(0deg, rgba(4,5,5,.72), transparent 42%);
}
.hero__intro {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: calc(100% - (var(--page-x) * 2));
  max-width: 46rem;
  text-align: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero__intro-content { text-shadow: 0 .18rem 1.5rem rgba(0,0,0,.42); }
.hero__intro h1 {
  margin: 0;
  font-family: 'Times New Roman', Times, serif;
  font-size: clamp(1.6rem, 2.55vw, 2.8rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.012em;
}
.hero__intro p {
  margin: .45rem 0 0;
  font-size: clamp(.78rem, .95vw, .9rem);
  font-weight: 400;
  letter-spacing: .04em;
}
.hero__footer { display: flex; align-items: center; justify-content: flex-end; gap: 2rem; padding-top: 1rem; }
.scroll-cue { display: flex; align-items: center; gap: 0.8rem; min-height: 2.75rem; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.scroll-cue svg { width: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.2; transition: transform 0.35s var(--ease-out); }
.reveal-item { opacity: 1; transform: none; transition: opacity .35s ease, transform .35s var(--ease-out); }
.has-js .reveal-item { opacity: 0; transform: translateY(.5rem); }
.is-loaded .reveal-item { opacity: 1; transform: translateY(0); }

.section-dark { background: var(--paper); color: var(--ink); }
.work {
  position: relative;
  scroll-margin-top: 4rem;
  padding: clamp(3rem, 5vw, 5rem) var(--page-x) clamp(4rem, 6vw, 6rem);
  background: var(--paper);
}
.collection-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.25rem, .55vw, .5rem);
  padding: 0;
  background: transparent;
}
.collection-row {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr auto;
  align-items: start;
  gap: 1.25rem;
  aspect-ratio: 1;
  padding: clamp(1.25rem, 2.5vw, 2.5rem);
  border: 0;
  background: var(--paper);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transform-origin: center;
}
.collection-row::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(5, 5, 5, .46);
  opacity: .48;
  transition: opacity var(--motion-ui) ease;
}
.collection-row > span { position: relative; z-index: 2; }
.collection-row--cover { color: #fff; background: #141414; }
.collection-row--cover::before { background: rgba(5,5,5,.46); }
.collection-row--cover::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,5,5,.2), transparent 30%, rgba(4,5,5,.18));
  opacity: .55;
  transition: opacity var(--motion-ui) ease;
  pointer-events: none;
}
.collection-row__media {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s var(--ease-out);
}
.cover--liga-portugal { object-position: 50% 50%; }
.cover--liga-portugal-2 { object-position: 50% 68%; }
.cover--selecoes { object-position: 50% 88%; }
.cover--liga-europa { object-position: 50% 78%; }
.collection-row:focus-visible::before { opacity: 1; }
.collection-row:focus-visible::after { opacity: 0; }
.collection-row:focus-visible { outline: 1px solid rgba(255,255,255,.9); outline-offset: -6px; }
.collection-row__title {
  position: absolute !important;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(1.25rem, 3vw, 3rem);
  text-align: center;
  font-size: clamp(1.5rem, 2.35vw, 2.55rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.025em;
  opacity: 1;
  transform: none;
  text-shadow: 0 2px 18px rgba(0,0,0,.8);
  text-wrap: balance;
  transition: transform .25s var(--ease-out);
}
.collection-row:focus-visible .collection-row__title { opacity: 1; transform: translateY(0); }
.collection-row__arrow {
  position: absolute !important;
  z-index: 2;
  right: clamp(1.25rem, 2.5vw, 2.5rem);
  bottom: clamp(1.25rem, 2.5vw, 2.5rem);
  width: clamp(1.1rem, 1.8vw, 1.65rem);
  height: clamp(1.1rem, 1.8vw, 1.65rem);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform: translate(-.65rem, .65rem);
  transition: opacity var(--motion-ui) ease, transform var(--motion-ui) var(--ease-out);
}
.collection-row:focus-visible .collection-row__arrow { opacity: 1; transform: translate(0, 0); }

.about {
  position: relative;
  scroll-margin-top: 6rem;
  padding: clamp(2rem, 3.5vw, 3.5rem) var(--page-x) clamp(3rem, 5vw, 5rem);
  background: var(--paper);
  color: var(--ink);
  overflow: clip;
}
.about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: clamp(2rem, 4vw, 4rem);
  background: linear-gradient(180deg, var(--line-light), transparent);
}
.about__stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(3rem, 6vw, 6rem);
  align-items: stretch;
  max-width: 70rem;
  margin-inline: auto;
}
.about__portrait {
  margin: 0;
  min-width: 0;
}
.about__portrait-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: transparent;
}
.about__portrait img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}
.about__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 1.65rem;
  font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
}
.about__copy h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.1vw, 1.8rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -.025em;
}
.about__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.3rem;
  text-align: left;
}
.about__text p {
  margin: 0;
  color: #252523;
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: 0;
  text-wrap: pretty;
}

@media (max-width: 1000px) {
  .about__stage { grid-template-columns: minmax(0, 1fr); gap: 2rem; max-width: 40rem; }
  .about__copy { gap: 1.5rem; }
  .about__text { gap: 1.3rem; }
}

.contact {
  position: relative;
  scroll-margin-top: 4.5rem;
  min-height: auto;
  padding: clamp(4.75rem, 8vw, 8rem) var(--page-x) clamp(4.5rem, 7vw, 7rem);
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  top: 0;
  right: var(--page-x);
  left: var(--page-x);
  height: 1px;
  background: var(--line-light);
  transform-origin: left;
}
.contact__thread {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: clamp(3.5rem, 6vw, 6rem);
  background: var(--line-light);
}
.contact__thread i {
  position: absolute;
  top: 0;
  left: 50%;
  width: .38rem;
  height: .38rem;
  border-radius: 50%;
  background: var(--ink);
  transform: translate(-50%, -.19rem);
  opacity: 0;
}
.contact:has(.contact__content.is-visible) .contact__thread i { animation: contact-thread 1.2s var(--ease-out) both; }
.contact__content {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(24rem, 1.22fr);
  align-items: start;
  gap: clamp(4rem, 8vw, 9rem);
}
.contact__intro { padding-left: clamp(1rem, 2.5vw, 3rem); }
.contact__intro h2 {
  max-width: 14ch;
  margin: 0;
  font-family: inherit;
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.contact-form { display: grid; gap: clamp(1.6rem, 2.5vw, 2.4rem); }
.contact-form__botcheck { position: absolute !important; left: -9999px !important; opacity: 0 !important; pointer-events: none !important; }
.contact-field { display: grid; gap: .65rem; }
.contact-field label { font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.contact-field label span { font-weight: 400; }
.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1px solid var(--line-light);
  border-radius: 0;
  background: rgba(255,255,255,.68);
  color: var(--ink);
  font: inherit;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  scroll-margin-block: 6rem;
  caret-color: var(--ink);
  line-height: 1.5;
  outline: none;
  transition: border-color var(--motion-quick) ease, background-color var(--motion-quick) ease, box-shadow var(--motion-quick) ease;
}
.contact-field input { min-height: 3.75rem; padding: 0 1rem; }
.contact-field textarea { min-height: 11rem; padding: 1rem; resize: vertical; }
.contact-field input::placeholder,
.contact-field textarea::placeholder { color: #6b6b66; opacity: 1; }
.contact-field input:focus,
.contact-field textarea:focus { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 1px var(--ink); }
.contact-form__privacy { margin: -.25rem 0 0; max-width: 38rem; color: #62625d; font-size: .75rem; line-height: 1.65; }
.contact-form__privacy a { color: var(--ink); text-decoration: underline; text-underline-offset: .18em; }
.contact-form__privacy a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.contact-form__footer { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.contact-form__footer button {
  flex-shrink: 0;
  min-width: 10rem;
  min-height: 3.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 1.2rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, transform .16s var(--ease-out);
}
.contact-form__footer button span { display: inline-flex; font-size: 1rem; transition: transform .2s var(--ease-out); }
.contact-form__footer button svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.contact-form__footer button:not(:disabled):active { transform: scale(.98); }
.contact-form__footer button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.contact-form__footer button:disabled { cursor: wait; opacity: .58; transform: none; }
.contact-form[data-contact-locked] .contact-form__footer button:disabled { cursor: default; }
.contact-form__footer p { max-width: 23rem; margin: 0; color: #62625d; font-size: .85rem; line-height: 1.6; text-align: left; }
.contact-form__footer p:empty { display: none; }
.contact-form__footer p[data-state="success"] { color: #17643a; }
.contact-form__footer p[data-state="error"] { color: #9a2e26; }
@keyframes contact-thread { 0% { opacity: 0; translate: 0 0; } 18% { opacity: 1; } 72% { opacity: 1; } 100% { opacity: 0; translate: 0 calc(clamp(3.5rem, 6vw, 6rem) - .38rem); } }

footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem var(--page-x); background: var(--paper); color: var(--ink); border-top: 1px solid var(--line-light); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
footer a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration-color: transparent; text-underline-offset: .3em; transition: text-decoration-color var(--motion-quick) ease; }
footer a:focus-visible { text-decoration: underline; }
.footer__copyright { text-transform: none; letter-spacing: .02em; }

.reveal-on-scroll { opacity: 1; transform: none; transition: opacity .28s ease-out, transform .28s var(--ease-out); }
.has-js .reveal-on-scroll { opacity: 0; transform: translateY(.4rem); }
.reveal-on-scroll.is-visible { opacity: 1; transform: none; }
.has-js .reveal-on-scroll:focus-within { opacity: 1; transform: none; transition: none; }
.collection-row.is-visible:focus-visible { z-index: 3; outline: 2px solid #fff; outline-offset: -6px; }

@media (hover: hover) and (pointer: fine) {
  .header-socials a:hover { opacity: 1; transform: translateY(-2px); }
  .desktop-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
  .scroll-cue:hover svg { transform: translateY(.2rem); }
  .collection-row:hover::before { opacity: 1; }
  .collection-row:hover::after { opacity: 0; }
  .collection-row:hover .collection-row__arrow { opacity: 1; transform: translate(0, 0); }
  .collection-row.is-visible:hover { z-index: 3; }
  .collection-row--cover:hover .collection-row__media { transform: none; }
  .collection-row:hover .collection-row__title { transform: translateY(-2px); }
  .contact-field input:hover, .contact-field textarea:hover { border-color: #a4a49e; }
  .contact-field input:focus, .contact-field textarea:focus { border-color: var(--ink); }
  .contact-form__footer button:not(:disabled):hover { background: transparent; color: var(--ink); transform: translateY(-2px); }
  .contact-form__footer button:not(:disabled):hover span { transform: translate(.18rem, -.18rem); }
  .contact-form__footer button:not(:disabled):active { transform: scale(.98); }
  footer a:hover { text-decoration: underline; text-decoration-color: currentColor; }
}

.collection-dialog {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 1.4rem var(--page-x) 2.5rem;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  opacity: 0;
  transform: translateY(.75rem);
  overscroll-behavior: contain;
  transition: opacity var(--motion-quick) ease, transform var(--motion-ui) var(--ease-out), overlay var(--motion-ui) allow-discrete, display var(--motion-ui) allow-discrete;
}
.collection-dialog[open] { opacity: 1; transform: translateY(0); }
@starting-style { .collection-dialog[open] { opacity: 0; transform: translateY(.75rem); } }
.collection-dialog::backdrop { background: rgba(0,0,0,.5); }
.collection-dialog__top { display: flex; justify-content: flex-end; padding-bottom: 1rem; border-bottom: 1px solid var(--line-light); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.collection-dialog__top button { min-height: 2.75rem; padding: 0 .5rem; border: 0; background: transparent; cursor: pointer; text-transform: uppercase; letter-spacing: inherit; }
.collection-dialog__content { height: calc(100% - 3rem); width: min(100%, 56rem); margin-inline: auto; display: flex; flex-direction: column; justify-content: center; }
.collection-dialog__content h2 { margin: 0; font-size: clamp(1.8rem, 3.2vw, 3.2rem); line-height: 1.15; letter-spacing: -.025em; font-weight: 400; text-wrap: balance; overflow-wrap: anywhere; }
.collection-dialog__note { max-width: 34rem; margin: 2rem 0 0; color: #62625d; font-size: 1rem; line-height: 1.7; }
.collection-dialog__note[hidden] { display: none; }
.collection-dialog--gallery .collection-dialog__top {
  position: sticky;
  top: -1.4rem;
  z-index: 3;
  padding-block: .6rem;
  border-bottom: 0;
  background: var(--paper);
}
.collection-dialog--gallery .collection-dialog__content {
  height: auto;
  width: min(100%, 80rem);
  display: block;
  padding-top: .5rem;
}
.photo-gallery {
  --gallery-columns: 3;
  display: grid;
  grid-template-columns: repeat(var(--gallery-columns), minmax(0, 1fr));
  grid-auto-rows: 1px;
  column-gap: clamp(5px, .7vw, 10px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.photo-gallery[hidden] { display: none; }
.photo-gallery__item { min-width: 0; align-self: start; }
.photo-gallery__button { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--soft); cursor: zoom-in; transition: transform var(--motion-ui) var(--ease-out); }
.photo-gallery__button::after { content: ""; position: absolute; inset: 0; background: #050505; opacity: 0; pointer-events: none; transition: opacity var(--motion-ui) ease; }
.photo-gallery__button:focus-visible { outline-offset: -4px; outline: 2px solid white; }
.photo-gallery__button img { display: block; width: 100%; height: auto; }
@media (hover: hover) and (pointer: fine) {
  .photo-gallery__button:hover { transform: translateY(-2px); }
  .photo-gallery__button:hover::after { opacity: .08; }
}
.photo-viewer {
  touch-action: pan-y pinch-zoom;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: max(.75rem, env(safe-area-inset-top)) var(--page-x) max(.75rem, env(safe-area-inset-bottom));
  border: 0;
  background: #0a0a09;
  color: white;
  overflow: hidden;
}
.photo-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: .75rem; }
.photo-viewer::backdrop { background: transparent; }
.photo-viewer__toolbar, .photo-viewer__navigation { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.photo-viewer button { min-height: 44px; padding: .5rem; border: 0; background: transparent; cursor: pointer; font-size: .8rem; letter-spacing: .04em; }
.photo-viewer button:disabled { opacity: .3; cursor: default; }
.photo-viewer__toolbar span { font-size: .8rem; font-variant-numeric: tabular-nums; }
.photo-viewer__image { grid-area: 2 / 1; width: 100%; height: 100%; min-height: 0; object-fit: contain; touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none; }
.photo-viewer__outgoing { pointer-events: none; }
.photo-viewer__navigation { grid-area: 3 / 1; }

@media (max-width: 760px), (max-height: 500px) and (pointer: coarse) {
  html:has(.photo-viewer[open]) { scrollbar-gutter: auto; }
  .photo-viewer {
    width: 100vw;
    height: 100dvh;
    padding: max(.5rem, env(safe-area-inset-top)) env(safe-area-inset-right) max(.5rem, env(safe-area-inset-bottom)) env(safe-area-inset-left);
  }
  .photo-viewer[open] { gap: 0; }
  .photo-viewer__image { grid-area: 1 / 1 / 4 / 2; }
  .photo-viewer__toolbar, .photo-viewer__navigation { z-index: 1; padding-inline: .75rem; }
  .photo-viewer__toolbar { grid-area: 1 / 1; }
  .photo-viewer button, .photo-viewer__toolbar span { background: rgb(10 10 9 / .75); border-radius: 4px; }
  .photo-viewer__toolbar span { padding: .5rem; }
}

@media (max-width: 760px) {
  .photo-gallery { --gallery-columns: 2; }
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .mobile-menu { display: flex; flex-direction: column; }
  .site-header:has(.menu-toggle[aria-expanded="true"]) { color: var(--ink); background: transparent; }
  .site-header { column-gap: .35rem; }
  .brand__name { display: block; white-space: nowrap; font-size: .78rem; letter-spacing: .035em; }
  .header-socials { gap: 0; }
  .header-socials a { width: clamp(2rem, 10vw, 2.75rem); height: 2.75rem; }
  .header-socials svg { width: 1.2rem; height: 1.2rem; }
  .hero { padding-bottom: 1.5rem; }
  .hero__slide img { object-position: var(--slide-position-mobile, 50% 50%); }
  .hero__shade { background: linear-gradient(90deg, rgba(4,5,5,.44), rgba(4,5,5,.02)), linear-gradient(0deg, rgba(4,5,5,.76), transparent 52%); }
  .hero__intro {
    top: 48%;
    right: auto;
    bottom: auto;
    width: calc(100% - (var(--page-x) * 2));
    max-width: 28rem;
  }
  .hero__intro h1 { max-width: none; font-size: clamp(1.4rem, 5.8vw, 1.95rem); }
  .hero__intro p { margin-top: .55rem; font-size: .78rem; }
  .hero__footer { align-items: flex-end; }
  .collection-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collection-row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto 1fr auto;
    gap: .55rem;
    padding: 1rem;
  }
  .collection-row__title { padding: .7rem; font-size: clamp(1.05rem, 4.8vw, 1.45rem); line-height: 1.15; opacity: 1; transform: none; }
  .collection-row__arrow { display: none; }
  .about { padding: 2.5rem var(--page-x); }
  .contact { min-height: auto; padding-top: 4.5rem; }
  .contact__content { grid-template-columns: 1fr; gap: 2.8rem; }
  .contact__intro { padding-left: 0; }
  .contact__intro h2 { max-width: 14ch; font-size: clamp(2rem, 8vw, 2.4rem); }
  .contact-form__footer { align-items: flex-start; flex-direction: column; }
  .contact-form__footer button { justify-content: center; }
  .contact-form__footer button span { display: none; }
  .contact-form__footer p { max-width: none; text-align: left; }
  footer { flex-wrap: wrap; }
  footer:not(.privacy-footer) { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1rem; }
  .footer__copyright { grid-column: 1 / -1; }
  footer:not(.privacy-footer) > :last-child { justify-self: end; }
}

@media (hover: none), (pointer: coarse) {
  .collection-row::before { opacity: .55; }
  .collection-row::after { opacity: .2; }
  .collection-row__title { opacity: 1; transform: none; }
  .collection-row__arrow { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .loader, .has-js .loader { display: none; }
  .reveal-item, .reveal-on-scroll, .has-js .reveal-item, .has-js .reveal-on-scroll { opacity: 1; transform: none; }
  .hero__slide img, .hero__slide.is-active img { transform: none; }
  .header-socials a:hover, .scroll-cue:hover svg,
  .photo-gallery__button:hover,
  .collection-row:hover .collection-row__title, .collection-row--cover:hover .collection-row__media,
  .contact-form__footer button:not(:disabled):hover, .contact-form__footer button:not(:disabled):active,
  .contact-form__footer button:not(:disabled):hover span { transform: none; }
  .mobile-menu, .collection-dialog, .collection-dialog[open] { transform: none; }
  .about__portrait, .about__copy { transform: none; }
  .about__portrait img { transform: none; }
}
