/* =====================================================
   FONTS
===================================================== */
@font-face {
  font-family: "Josefin Sans";
  src: url("/assets/fonts/JosefinSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Josefin Sans Regular";
  src: url("/assets/fonts/JosefinSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "AOV1";
  src:
    url("/assets/fonts/AOV1.woff2") format("woff2"),
    url("/assets/fonts/AOV1.woff") format("woff"),
    url("/assets/fonts/AOV1.ttf") format("truetype");
  font-display: block;
}

/* =====================================================
   ROOT TOKENS
===================================================== */
:root {
  --bg: #ffffff;
  --text: #000000;
  --border: #000000;
  --gap: 32px;
  --header-padding-y: 20px;
  --header-padding-x: 32px;
  --footer-padding-y: 24px;
  --footer-padding-x: 32px;
}

/* =====================================================
   GLOBAL RESET
===================================================== */
html {
  box-sizing: border-box;
  font-family: "Josefin Sans", Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

main,
section,
div,
figure {
  min-width: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

figure {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* =====================================================
   HEADER
===================================================== */
.site-header {
  width: 100%;
  background: var(--bg);
}

.site-header__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem var(--header-padding-x);
}

.site-header__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.38em;
  row-gap: 0.08em;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
  font-family: "Josefin Sans Regular", Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: clamp(1.3rem, 0.9rem + 1vw, 2.2rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav__link.is-active {
  color: #ff0000;
}

.site-header__brand:hover,
.site-header__brand:focus-visible {
  text-decoration: none;
}

.site-header__brand-word {
  white-space: nowrap;
}

.site-header__brand-o {
  color: #ff0000;
}

.site-header__toggle {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.site-header__toggle-line {
  display: block;
  width: 24px;
  height: 1.5px;
  margin: 5px auto;
  background: currentColor;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  flex: 0 0 auto;
}

.site-nav__link {
  color: inherit;
  text-decoration: none;
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.86rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  text-decoration: underline;
}

html.header-pending .site-header {
  visibility: hidden;
  opacity: 0;
}

html.header-ready .site-header {
  visibility: visible;
  opacity: 1;
  transition: opacity 180ms ease;
}

@media (prefers-reduced-motion: reduce) {
  html.header-ready .site-header {
    transition: none;
  }
}

@media (max-width: 768px) {
  .site-header__inner {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.9rem var(--header-padding-x);
  }

  .page--gallery .site-header__inner {
    padding: 0.9rem var(--header-padding-x);
  }

  .site-header__brand {
    flex: 1 1 auto;
    font-size: clamp(1.15rem, 0.95rem + 1.8vw, 1.7rem);
    line-height: 0.98;
    padding-right: 0.5rem;
  }

  .site-header__toggle {
    display: block;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 0.25rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav__link {
    display: block;
    width: 100%;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    text-align: left;
  }

  .site-nav__link:last-child {
    border-bottom: 1px solid var(--border);
  }
}

/* =====================================================
   FOOTER
===================================================== */
.site-footer {
  width: 100%;
  padding: 1.25rem 0 1.5rem;
}

.site-footer__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  color: #7a7a7a;
  text-align: center;
}

.site-footer__copy,
.site-footer__link {
  color: inherit;
  font-family: "Josefin Sans", sans-serif;
}

.site-footer__link {
  text-decoration: none;
}

.site-footer__link:hover,
.site-footer__link:focus-visible {
  text-decoration: underline;
}

.site-footer__sep {
  color: inherit;
}

/* =====================================================
   INDEX
===================================================== */
.page--index,
.index-main,
.logo-container {
  min-height: 100svh;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

/* =====================================================
   GENERIC INNER PAGES
===================================================== */
.page--about main,
.page--gallery main,
.page--contact main,
.page--terms main,
.page--404 main {
  padding: 32px;
}

/* =====================================================
   GALLERY
===================================================== */
.page--gallery main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.page--gallery .gallery-inline-slot {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.page--gallery .gallery-inline-slot svg {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
}

.page--gallery .gallery-inline-slot [id^="hit-shape"] {
  cursor: pointer;
}

.page--gallery .gallery-inline-slot #layer2,
.page--gallery .gallery-inline-slot #layer2 * {
  pointer-events: none;
}

@media (max-width: 768px) {
  .page--gallery main,
  .page--gallery section,
  .page--gallery div,
  .page--gallery .gallery-inline-slot,
  .page--gallery .gallery-inline-slot svg {
    max-width: none !important;
  }

  .page--gallery main,
  .page--gallery .gallery-inline-slot,
  .page--gallery .gallery-inline-slot svg {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

.page--gallery svg[data-gallery-ornament] textPath {
  visibility: hidden;
}

.page--gallery.fonts-ready svg[data-gallery-ornament] textPath {
  visibility: visible;
}

/* =====================================================
   ABOUT
===================================================== */
.page--about main {
  padding-top: 0;
  padding-right: 32px;
  padding-bottom: 32px;
  padding-left: 0;
}

.about-page {
  width: 100%;
}

.about-layout {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: var(--gap);
}

.about-cartel,
.about-portrait {
  min-width: 0;
}

.about-cartel--desktop {
  display: block;
}

.about-cartel--mobile {
  display: none;
}

.about-cartel .project-cartel--desktop,
.about-cartel .project-cartel--mobile {
  display: block;
  width: 100%;
  color: var(--text);
}

.about-cartel .project-cartel--desktop {
  position: relative;
  width: 100%;
  min-height: 100svh;
}

.about-cartel .project-cartel--mobile {
  position: relative;
  width: 100%;
}

.about-cartel .project-cartel__ornament {
  position: relative;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.about-cartel .project-cartel--desktop .project-cartel__ornament {
  height: 100%;
}

.about-cartel .project-cartel--mobile .project-cartel__ornament {
  aspect-ratio: 4 / 5;
  min-height: 0;
}

.about-cartel .project-cartel__ornament svg {
  display: block;
  width: 100%;
  height: 100%;
}

.about-cartel .project-cartel--mobile .project-cartel__ornament svg {
  height: auto;
}

/* Safe zone = exact rect from SVG */
.about-cartel .project-cartel__content {
  position: absolute;
  z-index: 1;
  min-width: 0;
  color: var(--text);
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Desktop safe zone */
.about-cartel .project-cartel--desktop .project-cartel__content {
  top: 13.285%;
  left: 2.701%;
  width: 86.076%;
  height: 71.835%;
  padding: 1.9rem 1.35rem 1.35rem;
}

/* Mobile safe zone */
.about-cartel .project-cartel--mobile .project-cartel__content {
  top: 4.720%;
  left: 14.363%;
  width: 70.003%;
  height: 84.057%;
  padding: 1.35rem 1rem 1.1rem;
}

.about-text-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  transform: translateY(-1.5%);
}

.about-text-block__title {
  margin: 0 0 0.95rem;
  font-family: "Josefin Sans", sans-serif;
  font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.8rem);
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.about-text-block__body {
  width: 100%;
}

.about-text-block__body p {
  margin: 0;
  font-size: clamp(0.8rem, 0.76rem + 0.18vw, 0.92rem);
  line-height: 1.34;
  text-wrap: pretty;
}

.about-text-block__body p + p {
  margin-top: 0.72rem;
}

.about-portrait {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100svh;
}

.about-portrait img {
  display: block;
  width: 100%;
  max-width: 47%;
  max-height: 78svh;
  height: auto;
  object-fit: contain;
}

.about-text-block__links {
  margin-top: 0.9rem;
  font-size: clamp(0.78rem, 0.74rem + 0.2vw, 0.88rem);
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.about-text-block__links a {
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.05em;
}

.about-text-block__links a:hover {
  opacity: 0.6;
}

.about-text-block__separator {
  opacity: 0.5;
}

@media (max-width: 768px) {

  /* Remove top gap under header (ABOUT mobile only) */
  .page--about main {
    padding-top: 0;
    padding-right: 20px;
    padding-bottom: 20px;
    padding-left: 20px;
  }

  .about-layout {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .about-cartel--desktop {
    display: none;
  }
  
  .about-cartel--mobile {
    display: block;
    order: 1;
  }

  .about-cartel .project-cartel--mobile .project-cartel__content {
    justify-content: flex-start;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 0.45rem 1rem 1rem;
  }

  .about-text-block {
    min-height: auto;
    justify-content: flex-start;
    transform: none;
  }

  .about-text-block__title {
    margin: 0 0 0.8rem;
    font-size: clamp(1.02rem, 0.96rem + 0.85vw, 1.22rem);
    line-height: 1.14;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }

  .about-text-block__body {
    width: 100%;
  }

  .about-text-block__body p {
    font-size: clamp(0.76rem, 0.72rem + 0.45vw, 0.9rem);
    line-height: 1.3;
  }

  .about-text-block__body p + p {
    margin-top: 0.62rem;
  }

  .about-portrait {
    order: 2;
    min-height: 0;
    justify-content: center;
    align-items: flex-start;
  }

  .about-portrait img {
    max-width: 72%;
    max-height: none;
  }
}

/* =====================================================
   CONTACT
===================================================== */
.contact-section {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.contact-intro {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 0 0 48px;
}

.contact-intro__text {
  width: 100%;
  max-width: 620px;
  margin: 0;
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.contact-form {
  display: grid;
  gap: 20px;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}

.contact-field {
  display: grid;
  gap: 8px;
}

.contact-field label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  padding: 12px;
  font: inherit;
}

.contact-field textarea {
  resize: vertical;
}

.contact-field--honeypot {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form button {
  appearance: none;
  width: fit-content;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  padding: 10px 16px;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 768px) {
  .contact-intro {
    margin-bottom: 32px;
  }

  .contact-intro__text,
  .contact-form {
    max-width: none;
  }
}

/* =====================================================
   TERMS / 404
===================================================== */
.terms-page {
  width: 100%;
}

.terms-section,
.not-found-section {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.terms-section + .terms-section {
  margin-top: 4rem;
}

.terms-hero h1,
.not-found-section h1 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.terms-hero p,
.terms-block p,
.terms-subblock p,
.not-found-section p {
  margin: 0 0 1rem;
}

.terms-meta {
  margin-bottom: 2rem;
}

.terms-eyebrow {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.terms-toc ol {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
}

.terms-toc li {
  margin-bottom: 0.5rem;
}

.terms-block + .terms-block {
  margin-top: 2.5rem;
}

.terms-block h2,
.terms-font-license h2 {
  margin: 0 0 1rem;
}

.terms-subblock {
  margin-top: 1.5rem;
}

.terms-subblock h3 {
  margin: 0 0 0.75rem;
}

.terms-block ul,
.terms-subblock ul {
  margin: 1rem 0 1rem 1.25rem;
  padding: 0;
}

.terms-block li,
.terms-subblock li {
  margin-bottom: 0.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 768px) {
  .terms-section,
  .not-found-section {
    padding: 0 1rem;
  }

  .terms-section + .terms-section {
    margin-top: 3rem;
  }

  .terms-block + .terms-block {
    margin-top: 2rem;
  }
}

/* =====================================================
   PROJECT PAGE
===================================================== */
.project-page {
  width: 100%;
}

.project-grid {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.project-cartel--desktop,
.project-cartel--mobile {
  width: 100%;
  color: var(--text);
}

.project-cartel--desktop {
  position: relative;
  width: 100%;
  height: 100%;
}

.project-cartel--mobile {
  position: relative;
  width: 100%;
}

.project-cartel__ornament {
  position: relative;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.project-cartel--desktop .project-cartel__ornament {
  height: 100%;
}

.project-cartel--mobile .project-cartel__ornament {
  aspect-ratio: 4 / 5;
  min-height: 0;
}

.project-cartel__ornament svg {
  display: block;
  width: 100%;
  height: 100%;
}

.project-cartel--mobile .project-cartel__ornament svg {
  height: auto;
}

.project-cartel__content {
  position: absolute;
  z-index: 1;
  overflow: auto;
  min-width: 0;
  color: var(--text);
  scrollbar-width: thin;
}

.project-cartel__meta {
  margin: 0;
}

.project-cartel__row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
  margin: 0;
}

.project-cartel__row + .project-cartel__row {
  margin-top: 10px;
}

.project-cartel__meta dt,
.project-cartel__meta dd {
  margin: 0;
}

.project-cartel__meta dt {
  font-family: "Josefin Sans", Arial, sans-serif;
  font-size: 0.78rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.project-cartel__meta dd {
  font-size: 0.95rem;
  line-height: 1.45;
}

.project-cartel__row--context dd p {
  margin: 0;
}

.project-cartel__row--context dd p + p {
  margin-top: 0.9rem;
}

/* Safe-zone mapping: desktop SVG */
.project-cartel--desktop .project-cartel__content {
  position: absolute;
  top: 13.285%;
  left: 2.701%;
  width: 86.076%;
  height: 71.835%;
  z-index: 1;
  color: var(--text);
  box-sizing: border-box;
  padding: 1.75rem 1.35rem 1.35rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-cartel--desktop .project-cartel__meta {
  width: 100%;
  margin: 0;
  transform: translateY(-1.25%);
}

/* Safe-zone mapping: mobile SVG */
.project-cartel--mobile .project-cartel__content {
  top: 4%;
  left: 11.6%;
  width: 75.8%;
  height: 82%;
  padding: 20px 18px;
}

.project-row {
  width: 100%;
  min-height: 100svh;
  padding: 0 var(--gap);
  gap: var(--gap);
}

/* Intro row: no outer left/right padding so the cartel can touch the left edge */
.project-row--intro {
  padding: 0;
}

/* Standard 2-column rows keep the normal grid */
.project-row--two-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
}

/* Intro row gets its own column widths:
   - left cartel touches screen edge
   - right image keeps the same inset as the rows below
   - center gap remains identical
*/
.project-row--intro {
  display: grid;
  grid-template-columns:
    minmax(0, calc(50% - (var(--gap) / 2)))
    minmax(0, calc(50% - (var(--gap) / 2) - var(--gap)));
  align-items: stretch;
  column-gap: var(--gap);
}

.project-row--full-width {
  display: block;
}

.project-slot--cartel,
.project-slot--image {
  min-width: 0;
  height: calc(100svh - var(--gap));
  overflow: hidden;
}

.project-row--full-width .project-media {
  height: calc(100svh - var(--gap));
}

.project-slot--cartel {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
}

.project-slot--cartel .project-cartel--desktop {
  display: block;
  width: 100%;
  height: 100%;
}

.project-slot--cartel .project-cartel--desktop .project-cartel__ornament {
  width: 100%;
  height: 100%;
}

.project-slot--cartel .project-cartel--desktop .project-cartel__ornament svg {
  width: 100%;
  height: 100%;
}

.project-slot--image .project-media,
.project-slot--image .project-media img {
  width: 100%;
  height: 100%;
}

.project-media {
  width: 100%;
  overflow: hidden;
}

.project-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.project-mobile-stack {
  padding: 0 var(--gap) var(--gap);
}

.project-mobile-stack .project-cartel--mobile,
.project-mobile-stack .project-media {
  margin-bottom: var(--gap);
}

.project-mobile-stack .project-media:last-child {
  margin-bottom: 0;
}

.project-mobile-stack .project-media img {
  height: auto;
}

.project-empty {
  margin: 0;
  padding: 32px;
}

/* =====================================================
   PROJECT PAGE — MOBILE ADJUSTMENTS
===================================================== */
@media (max-width: 768px) {
  .project-row {
    display: none;
  }

  .project-mobile-stack {
  padding: 0 var(--gap) var(--gap);
  }

  .project-mobile-stack .project-cartel--mobile {
    margin-bottom: var(--gap);
  }

  .project-cartel--mobile {
    position: relative;
    width: 100%;
  }

  .project-cartel--mobile .project-cartel__ornament {
    width: 100%;
    height: auto;
  }

  .project-cartel--mobile .project-cartel__ornament svg {
    width: 100%;
    height: auto;
  }

  .project-cartel--mobile .project-cartel__content {
    position: absolute;
    top: 4%;
    left: 11.6%;
    width: 75.8%;
    height: 82%;
    padding: 18px 14px;
  }

  .project-cartel__row {
    grid-template-columns: 78px minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 0;
  }

  .project-cartel__meta dt {
    font-size: 0.72rem;
  }

  .project-cartel__meta dd {
    font-size: 0.88rem;
    line-height: 1.35;
  }
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 768px) {
  :root {
    --gap: 20px;
    --header-padding-y: 16px;
    --header-padding-x: 20px;
    --footer-padding-y: 20px;
    --footer-padding-x: 20px;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .page--gallery main,
  .page--contact main,
  .page--terms main,
  .page--404 main {
    padding: 20px;
  }

  .page--about main {
    padding-top: 0;
    padding-right: 20px;
    padding-bottom: 20px;
    padding-left: 20px;
  }

  .project-row {
    display: none;
  }

  .project-cartel__row {
    grid-template-columns: 1fr;
    row-gap: 6px;
  }

  .project-cartel__meta dt {
    font-size: 0.78rem;
  }

  .project-cartel__meta dd {
    font-size: 0.92rem;
    line-height: 1.4;
  }

  .project-cartel--mobile .project-cartel__content {
    padding: 18px 14px;
  }
}

/* =====================================================
   COLLECTIBLE
===================================================== */

.page--collectible main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.collectible-page {
  width: 100%;
}

/* ---------- TOP / BOTTOM ORNAMENT BLOCKS ---------- */

.collectible-hero,
.collectible-acquire {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.collectible-hero {
  height: 50vh;
  min-height: 420px;
}

.collectible-acquire {
  height: 50vh;
  min-height: 520px;
}

.collectible-hero__ornament,
.collectible-acquire__ornament {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.collectible-hero__ornament--mobile,
.collectible-acquire__ornament--mobile {
  display: none;
}

.collectible-ornament-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.collectible-hero__content,
.collectible-acquire__content {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* ---------- TOP INTRO SAFE ZONE ---------- */

.collectible-intro {
  position: absolute;

  left: 13.687vw;
  top: calc(50% - 12.5vw + 2.499vw);
  width: 75.467vw;
  height: 12.851vw;

  box-sizing: border-box;
  padding: 0 4.2vw;

  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;

  text-align: justify;
  text-align-last: center;
  overflow: hidden;
}

.collectible-intro p {
  width: 100%;
  max-width: none;
  margin: 0;
  font-size: clamp(0.95rem, 1.05vw, 1.22rem);
  line-height: 1.42;
  text-wrap: pretty;
}

.collectible-intro p + p {
  margin-top: 0.82rem;
}

/* ---------- GRID ---------- */

.collectible-grid-section {
  width: 100%;
  padding: 32px 0;
}

.collectible-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 48px;
  padding: 0 32px;
  box-sizing: border-box;
}

.collectible-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.collectible-card__figure {
  margin: 0 0 18px 0;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #fff;
}

.collectible-card__figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collectible-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.collectible-card__title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 400;
}

.collectible-card__meta {
  margin: 0;
  padding: 0;
}

.collectible-card__meta-row {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: baseline;
  margin: 0;
}

.collectible-card__meta-row + .collectible-card__meta-row {
  margin-top: 4px;
}

.collectible-card__meta dt,
.collectible-card__meta dd {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.35;
}

.collectible-card__meta dt {
  font-weight: 400;
}

.collectible-card__meta dd {
  min-width: 0;
}

.collectible-card__order-link {
  display: inline-block;
  width: fit-content;
  margin-top: 4px;
  text-decoration: none;
}

.collectible-card__order-link:hover,
.collectible-card__order-link:focus-visible {
  text-decoration: underline;
}

/* ---------- BOTTOM ACQUIRE SAFE ZONE ---------- */

.collectible-acquire__inner {
  position: absolute;

  left: calc(50% - 50vh + 11.728vh);
  top: calc(50% + 4.8vh);
  transform: translateY(-50%);
  width: 80vh;

  box-sizing: border-box;
  padding: 0 2vh;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
  overflow: hidden;
}

.collectible-acquire__inner h2 {
  margin: 0 0 1.15rem 0;
  font-size: clamp(1.08rem, 1.5vw, 1.35rem);
  line-height: 1;
  font-weight: 400;
}

.collectible-form {
  width: 100%;
  max-width: 78vh;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 22px;
  row-gap: 12px;

  text-align: left;
}

.collectible-form .contact-field {
  min-width: 0;
}

.collectible-form .contact-field--honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.collectible-form .collectible-form__message,
.collectible-form button[type="submit"] {
  grid-column: 1 / -1;
}

.collectible-form label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.88rem;
  line-height: 1.15;
}

.collectible-form input,
.collectible-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font: inherit;
}

.collectible-form textarea {
  resize: vertical;
  min-height: 92px;
  max-height: 128px;
}

.collectible-form button[type="submit"] {
  appearance: none;
  justify-self: center;
  width: fit-content;
  margin-top: 8px;
  padding: 10px 18px;

  border: 1px solid #ff0000;
  background: transparent;
  color: #ff0000;

  font: inherit;
  cursor: pointer;
}

.collectible-form button[type="submit"]:hover,
.collectible-form button[type="submit"]:focus-visible {
  text-decoration: underline;
}

/* ---------- TABLET ---------- */

@media (max-width: 1024px) {
  .collectible-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- MOBILE ---------- */

@media (max-width: 768px) {
  .collectible-hero,
  .collectible-acquire {
    height: auto;
    min-height: 0;
  }

  .collectible-hero__ornament--desktop,
  .collectible-acquire__ornament--desktop {
    display: none;
  }

  .collectible-hero__ornament--mobile,
  .collectible-acquire__ornament--mobile {
    display: block;
    position: relative;
    inset: auto;
    width: 100%;
  }

  .collectible-hero__ornament--mobile {
    aspect-ratio: 390 / 350;
  }

  .collectible-acquire__ornament--mobile {
    aspect-ratio: 390 / 844;
  }

  .collectible-hero__ornament--mobile .collectible-ornament-svg,
  .collectible-acquire__ornament--mobile .collectible-ornament-svg {
    width: 100%;
    height: auto;
  }

  .collectible-hero__content,
  .collectible-acquire__content {
    position: absolute;
    inset: 0;
  }

  .collectible-intro {
    left: 13.554%;
    top: 2.976%;
    width: 72.895%;
    height: 74.226%;
    padding: 0.6rem 0.75rem;
    transform: none;

    display: flex;
    justify-content: center;
    align-items: stretch;

    text-align: justify;
    text-align-last: center;
    overflow: hidden;
  }

  .collectible-intro p {
    max-width: none;
    width: 100%;
    font-size: clamp(0.68rem, 2.9vw, 0.82rem);
    line-height: 1.26;
  }

  .collectible-intro p + p {
    margin-top: 0.48rem;
  }

  .collectible-grid-section {
    padding: 24px 0;
  }

  .collectible-grid {
    grid-template-columns: 1fr;
    padding: 0 24px;
    row-gap: 36px;
    column-gap: 24px;
  }

  .collectible-card__figure {
    aspect-ratio: 4 / 5;
  }

  .collectible-acquire__inner {
    left: 12.587%;
    top: 11.071%;
    width: 74.828%;
    height: 87.658%;
    transform: none;

    padding: 1rem 0.8rem 1.2rem;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;

    text-align: center;
    overflow: hidden;
  }

  .collectible-acquire__inner h2 {
    margin: 0 0 1rem;
    font-size: 1rem;
    line-height: 1.05;
  }

  .collectible-form {
    width: 100%;
    max-width: none;
    grid-template-columns: 1fr;
    row-gap: 10px;
    column-gap: 0;
  }

  .collectible-form label {
    font-size: 0.72rem;
    margin-bottom: 3px;
  }

  .collectible-form input,
  .collectible-form textarea {
    padding: 8px 9px;
  }

  .collectible-form textarea {
    min-height: 110px;
    max-height: 160px;
  }

  .collectible-form button[type="submit"] {
    justify-self: center;
    margin-top: 4px;
    color: #ff0000;
    border-color: #ff0000;
  }
}
/* =====================================================
   INLINE SVG COLOR SYSTEM
===================================================== */
.inline-svg {
  color: #000;
  --svg-contrast-color: #fff;
}

/* =====================================================
   PAGE TRANSITIONS — HEADER STAYS VISIBLE
===================================================== */
html.js-transitions.preload-main body > main {
  opacity: 0;
}

html.js-transitions body.has-main-ready > main {
  opacity: 1;
  transition: opacity 320ms ease;
}

html.js-transitions body.is-main-leaving > main {
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

@media (prefers-reduced-motion: reduce) {
  html.js-transitions body.has-main-ready > main,
  html.js-transitions body.is-main-leaving > main {
    transition: none;
  }
}

/* =====================================================
   INDEX EXIT TRANSITION
===================================================== */
html.js-transitions body.page--index.is-index-leaving {
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

@media (prefers-reduced-motion: reduce) {
  html.js-transitions body.page--index.is-index-leaving {
    transition: none;
  }
}