:root {
  color-scheme: light;
  --paper: #f1efe8;
  --paper-deep: #e5e1d5;
  --ink: #171713;
  --muted: #6a6860;
  --line: rgba(23, 23, 19, 0.18);
  --acid: #ff5c35;
  --acid-dark: #d83b18;
  --card: #f8f6ef;
  --shadow: 0 28px 70px rgba(29, 25, 17, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 86% 2%, rgba(255, 92, 53, 0.14), transparent 28rem),
    var(--paper);
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 3.5vw;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  color: inherit;
  font-weight: 750;
  letter-spacing: -0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  width: 0.82rem;
  height: 0.82rem;
  background: var(--acid);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(255, 92, 53, 0.14);
}

.header-note,
.eyebrow,
.selection-label,
.variant-number {
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

main {
  padding: 0 3.5vw 9rem;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(17rem, 0.65fr);
  gap: 2rem 7vw;
  align-items: end;
  padding: clamp(4.5rem, 9vw, 9rem) 0 clamp(4rem, 7vw, 7rem);
}

.intro .eyebrow {
  grid-column: 1 / -1;
  margin: 0 0 -0.3rem;
  color: var(--acid-dark);
}

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

h1 {
  margin-bottom: 0;
  max-width: 12ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.7rem, 8.8vw, 9.5rem);
  font-weight: 400;
  line-height: 0.84;
  letter-spacing: -0.075em;
}

.intro-copy {
  margin-bottom: 1.7rem;
  max-width: 38rem;
  color: #44423c;
  font-size: clamp(1rem, 1.35vw, 1.3rem);
  line-height: 1.55;
}

.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.specs span {
  padding: 0.53rem 0.75rem 0.48rem;
  border: 1px solid var(--line);
  border-radius: 99rem;
  color: #4b4942;
  font-size: 0.75rem;
  font-weight: 650;
  text-transform: lowercase;
}

.casting {
  padding-top: 2.1rem;
  border-top: 1px solid var(--ink);
}

.section-heading {
  display: flex;
  gap: 2rem;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.section-heading .eyebrow {
  margin-bottom: 0.65rem;
}

.section-heading h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4vw, 4.2rem);
  font-weight: 400;
  letter-spacing: -0.055em;
}

.section-heading > p {
  max-width: 28rem;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: right;
}

.variant-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: clamp(1rem, 1.8vw, 1.8rem);
}

.variant-card {
  grid-column: span 2;
  min-width: 0;
  padding: 0.55rem;
  background: rgba(248, 246, 239, 0.54);
  border: 1px solid transparent;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.variant-card:hover {
  transform: translateY(-3px);
}

.variant-card.is-selected {
  background: var(--card);
  border-color: var(--acid);
  box-shadow: 0 0 0 1px var(--acid);
}

.portrait-button {
  display: block;
  width: 100%;
  padding: 0;
  color: inherit;
  background: none;
  border: 0;
  cursor: zoom-in;
}

.portrait-button:disabled {
  cursor: wait;
}

.portrait-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: var(--paper-deep);
}

.portrait {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.93) contrast(0.98);
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1), filter 300ms ease;
}

.portrait-button:hover .portrait,
.portrait-button:focus-visible .portrait {
  filter: saturate(1) contrast(1);
  transform: scale(1.025);
}

.image-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 1rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.placeholder-orbit {
  width: 3rem;
  height: 4.2rem;
  margin: 0 auto;
  border: 1px solid rgba(23, 23, 19, 0.25);
  border-radius: 48% 48% 44% 44%;
  animation: breathe 1.8s ease-in-out infinite;
}

@keyframes breathe {
  50% {
    opacity: 0.35;
    transform: scale(0.96);
  }
}

.zoom-hint {
  position: absolute;
  z-index: 3;
  right: 0.65rem;
  bottom: 0.65rem;
  padding: 0.38rem 0.5rem;
  color: #fff;
  background: rgba(23, 23, 19, 0.7);
  border-radius: 0.15rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0;
  text-transform: uppercase;
  transform: translateY(4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.portrait-button:hover .zoom-hint,
.portrait-button:focus-visible .zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

.card-copy {
  display: flex;
  gap: 0.75rem;
  align-items: end;
  justify-content: space-between;
  padding: 1rem 0.25rem 0;
}

.variant-number {
  display: block;
  margin-bottom: 0.26rem;
  color: var(--acid-dark);
}

.variant-name {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 1.5vw, 1.55rem);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.variant-description {
  min-height: 3.5em;
  margin: 0.72rem 0.25rem 0.2rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.select-button,
.primary-button {
  border: 1px solid var(--ink);
  cursor: pointer;
  font-weight: 720;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.select-button {
  flex: 0 0 auto;
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0 0.65rem;
  background: transparent;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.select-button:hover,
.select-button:focus-visible,
.variant-card.is-selected .select-button,
.primary-button:hover,
.primary-button:focus-visible {
  color: #fff;
  background: var(--ink);
}

.selection-bar {
  position: fixed;
  z-index: 10;
  right: 1.2rem;
  bottom: 1.2rem;
  left: 1.2rem;
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  max-width: 35rem;
  margin-left: auto;
  padding: 1rem 1.15rem;
  color: #fff;
  background: rgba(23, 23, 19, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.selection-label {
  display: block;
  margin-bottom: 0.22rem;
  color: #aaa89f;
}

.selection-bar strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-weight: 400;
}

.text-button {
  padding: 0;
  color: #d3d0c7;
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  cursor: pointer;
  font-size: 0.72rem;
}

.portrait-dialog {
  width: min(92vw, 76rem);
  max-height: 92vh;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  box-shadow: var(--shadow);
}

.portrait-dialog::backdrop {
  background: rgba(11, 11, 9, 0.8);
  backdrop-filter: blur(8px);
}

.dialog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
  min-height: min(84vh, 55rem);
}

.dialog-layout img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  background: var(--paper-deep);
}

.dialog-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2rem, 4vw, 4.5rem);
}

.dialog-copy h2 {
  margin-bottom: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 5vw, 5.5rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.dialog-copy > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
}

.primary-button {
  width: 100%;
  margin-top: 1.3rem;
  padding: 1rem 1.25rem;
  background: var(--acid);
  border-color: var(--acid);
}

.dialog-close {
  position: absolute;
  z-index: 3;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0;
  place-items: center;
  color: #fff;
  background: rgba(23, 23, 19, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

:focus-visible {
  outline: 3px solid var(--acid);
  outline-offset: 3px;
}

@media (max-width: 1050px) {
  .variant-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .variant-card {
    grid-column: span 2;
  }

}

@media (max-width: 760px) {
  .site-header {
    min-height: 62px;
    padding-inline: 1.15rem;
  }

  .header-note {
    display: none;
  }

  main {
    padding: 0 1rem 8rem;
  }

  .intro {
    display: block;
    padding: 4.6rem 0 4rem;
  }

  .intro .eyebrow {
    margin-bottom: 1.2rem;
  }

  h1 {
    font-size: clamp(3.65rem, 19vw, 6rem);
  }

  .intro-copy {
    margin-top: 2rem;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 1rem;
    text-align: left;
  }

  .variant-grid {
    display: flex;
    gap: 0.75rem;
    margin-right: -1rem;
    padding-right: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .variant-grid::-webkit-scrollbar {
    display: none;
  }

  .variant-card {
    flex: 0 0 min(82vw, 23rem);
    grid-column: auto;
    scroll-snap-align: start;
  }

  .selection-bar {
    right: 0.65rem;
    bottom: 0.65rem;
    left: 0.65rem;
    padding: 0.85rem 1rem;
  }

  .dialog-layout {
    display: block;
    max-height: 92vh;
    overflow-y: auto;
  }

  .dialog-layout img {
    height: 64vh;
  }

  .dialog-copy {
    padding: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
