@font-face {
  font-family: "Vampire Wings";
  src: url("fonts/VampireWings-Regular-Repaired.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/CormorantGaramond-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page: #ffffff;
  --header-height: 64px;
  --anchor-offset: calc(var(--header-height) + 16px);
  /* Theme colors selected by the site owner. */
  --cyan: #54aedd;
  --blue: #0c82c6;
  --violet: #4e149f;
  --gold: #ccc5ba;
  --ink: #030100;
  --muted: color-mix(in srgb, var(--ink) 65%, var(--violet));
  --accent: color-mix(in srgb, var(--blue) 80%, var(--ink));
  --display: Georgia, "Times New Roman", serif;
  --perk-display: "Vampire Wings", Georgia, "Times New Roman", serif;
  --perk-body: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: var(--anchor-offset);
}

body {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
  margin: 0;
  background-color: var(--page);
  color: var(--ink);
  font-family: var(--body);
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 2px;
}

.content-width {
  width: min(100% - 7vw, 1440px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  flex-shrink: 0;
  margin-bottom: calc(-1 * var(--header-height));
  background: color-mix(in srgb, var(--blue) 65%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.site-topbar {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
  color: #182b45;
  font-family: var(--perk-body);
  font-size: 22px;
  font-weight: 600;
}

.site-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover {
  color: var(--violet);
  border-bottom-color: currentColor;
}

.nav-toggle {
  display: none;
}

.nav-arrow {
  display: none;
}

.studio-logo {
  display: inline-flex;
  width: 52px;
  height: 52px;
  flex: none;
  align-items: center;
  justify-content: center;
}

.studio-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

main {
  flex: 1;
}

.section-shell {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 320px;
  align-items: center;
  padding-block: clamp(56px, 7vw, 100px);
  background: var(--page);
  scroll-margin-top: 16px;
}

.section-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero {
  display: block;
  height: min(56.25vw, 100svh);
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

.hero-stage {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 56.25vw;
  transform: translateY(-50%);
}

.hero-picture,
.hero-art {
  display: block;
  height: 100%;
}

.hero-art {
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-logo {
  position: absolute;
  /* Registered against the logo in the original 1920 x 1080 hero artwork. */
  left: calc(566 / 1920 * 100%);
  top: calc(262 / 1080 * 100%);
  width: calc(778 / 1920 * 100%);
  height: calc(520 / 1080 * 100%);
  pointer-events: none;
  mix-blend-mode: screen;
  filter: brightness(4) saturate(1.5);
  opacity: 0.12;
}

.hero-stage.is-ready .hero-logo {
  animation:
    hero-logo-arrival 2.4s ease-out both,
    hero-logo-shimmer 4.8s ease-in-out 2.4s infinite;
}

@keyframes hero-logo-arrival {
  0% {
    opacity: 0.05;
  }
  18%,
  30%,
  58%,
  70% {
    opacity: 1;
  }
  42%,
  84% {
    opacity: 0.15;
  }
  100% {
    opacity: 0.12;
  }
}

@keyframes hero-logo-shimmer {
  0%,
  100% {
    opacity: 0.12;
  }
  16%,
  92% {
    opacity: 0.25;
  }
  30% {
    opacity: 1;
  }
  42% {
    opacity: 0.2;
  }
  54% {
    opacity: 0.8;
  }
  66% {
    opacity: 0.18;
  }
  82% {
    opacity: 0.65;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo,
  .hero-stage.is-ready .hero-logo {
    animation: none;
    opacity: 0.5;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: var(--display);
  line-height: 1.1;
  overflow-wrap: break-word;
}

h1 {
  max-width: 900px;
  font-size: clamp(42px, 6vw, 88px);
}

h2 {
  color: var(--violet);
  font-size: clamp(30px, 4vw, 48px);
}

.story-section {
  display: block;
  min-height: 760px;
  overflow: clip;
  padding-block: clamp(72px, 6vw, 104px);
}

.story-section::before {
  position: absolute;
  z-index: -2;
  bottom: -160px;
  left: -220px;
  width: clamp(560px, 65vw, 1000px);
  aspect-ratio: 1;
  background: url("assets/watercolor-blot.webp") center / contain no-repeat;
  opacity: 0.4;
  transform: rotate(-18deg);
  pointer-events: none;
  content: "";
}

.story-art {
  position: absolute;
  z-index: -1;
  bottom: 0;
  left: 0;
  width: 42%;
  height: min(88%, 780px);
  object-fit: contain;
  object-position: left bottom;
  pointer-events: none;
}

.story-section .section-inner {
  display: grid;
  max-width: 1200px;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
}

.story-copy {
  display: flex;
  min-width: 0;
  grid-column: 2;
  flex-direction: column;
  gap: 24px;
  color: #302633;
  font-family: var(--perk-body);
  font-size: clamp(22px, 1.8vw, 25px);
  font-weight: 500;
  line-height: 1.5;
}

.story-copy p {
  margin: 0;
}

.story-pages {
  display: grid;
  gap: 24px;
}

.story-page {
  min-width: 0;
}

.story-page-intro {
  order: 1;
}

.story-navigation {
  display: none;
}

.story-copy .story-summary {
  margin-top: 8px;
  padding-top: 28px;
  border-top: 1px solid color-mix(in srgb, var(--violet) 20%, transparent);
  color: color-mix(in srgb, var(--violet) 30%, var(--ink));
  font-size: 0.96em;
}

.story-summary strong {
  font-weight: 700;
}

@media (max-width: 860px) {
  .story-section {
    padding-bottom: 360px;
  }

  .story-section .section-inner {
    display: block;
    max-width: 640px;
  }

  .story-art {
    width: 300px;
    height: 320px;
  }

  .story-section::before {
    bottom: -180px;
    left: -180px;
    width: 640px;
  }
}

.perks-section {
  overflow: clip;
  padding-block: clamp(112px, 8vw, 132px);
  background: color-mix(in srgb, var(--cyan) 24%, var(--page));
}

.perks-section::before {
  position: absolute;
  z-index: -1;
  bottom: -160px;
  right: -180px;
  width: clamp(560px, 62vw, 920px);
  aspect-ratio: 1;
  background: url("assets/watercolor-blot.webp") center / contain no-repeat;
  opacity: 0.4;
  transform: rotate(18deg);
  pointer-events: none;
  content: "";
}

.perks-divider {
  position: absolute;
  left: 50%;
  width: min(300px, calc(100% - 32px));
  height: 72px;
  background: url("assets/section-divider-ink-v1.png") center / contain no-repeat;
  transform: translateX(-50%);
  pointer-events: none;
}

.perks-divider-top {
  top: 20px;
}

.perks-divider-bottom {
  bottom: 20px;
  transform: translateX(-50%) rotate(180deg);
}

.perks-section .section-inner {
  max-width: 1200px;
}

.perk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 28px;
  padding: 12px 6px;
}

.perk-note {
  --note-turn: -1.2deg;
  --note-offset: 0px;
  --note-color: var(--violet);
  position: relative;
  min-width: 0;
  padding: clamp(24px, 2.5vw, 36px);
  background: #faf8f4 url("assets/watercolor-paper.webp") center / cover;
  box-shadow:
    0 2px 4px #24193b08,
    0 12px 30px #24193b12;
  transform: translateY(var(--note-offset)) rotate(var(--note-turn));
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.perk-note::before {
  position: absolute;
  inset: 0;
  background: url("assets/perk-ink-frame-v1.png") center / 100% 100% no-repeat;
  opacity: 0.28;
  pointer-events: none;
  content: "";
}

.perk-note::after {
  position: absolute;
  top: -10px;
  left: calc(50% - 31px);
  width: 62px;
  height: 22px;
  border-inline: 1px solid #ffffff50;
  background: color-mix(in srgb, var(--gold) 42%, #ffffff60);
  transform: rotate(-4deg);
  pointer-events: none;
  content: "";
}

.perk-note:nth-child(2),
.perk-note:nth-child(5) {
  --note-turn: 1.4deg;
  --note-offset: 16px;
  --note-color: var(--accent);
}

.perk-note:nth-child(3) {
  --note-turn: -0.7deg;
}

.perk-note:nth-child(4) {
  --note-turn: 0.8deg;
  --note-color: var(--accent);
}

.perk-note:nth-child(6) {
  --note-turn: -1.5deg;
}

.perk-note:nth-child(even)::after {
  transform: rotate(5deg);
}

.perk-note-mark {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 22px;
  color: var(--note-color);
}

.perk-illustration {
  display: block;
  width: 112px;
  height: 96px;
  flex: none;
  object-fit: contain;
  mix-blend-mode: multiply;
  transform: rotate(-5deg);
}

.perk-note h3 {
  position: relative;
  margin: 0 0 16px;
  color: color-mix(in srgb, var(--note-color) 65%, var(--ink));
  font-family: var(--perk-display);
  font-size: clamp(30px, 2.5vw, 36px);
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.16;
  letter-spacing: 0.02em;
}

.perk-note p {
  position: relative;
  max-width: 30ch;
  margin: 0;
  color: #47404e;
  font-family: var(--perk-body);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.45;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .perk-note:hover {
    z-index: 1;
    box-shadow:
      0 3px 6px #24193b0a,
      0 18px 36px #24193b1c;
    transform: translateY(calc(var(--note-offset) - 6px)) rotate(0deg);
  }
}

@media (max-width: 1000px) {
  .perk-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 24px;
  }

  .perk-note {
    --note-offset: 0px;
  }

  .perk-note:nth-child(2),
  .perk-note:nth-child(5) {
    --note-offset: 0px;
  }

  .perk-note h3 {
    font-size: 30px;
  }
}

@media (max-width: 600px) {
  .story-section {
    --story-art-width: clamp(88px, 25vw, 140px);
    min-height: 0;
    padding-block: 40px 44px;
  }

  .story-section .section-inner {
    position: relative;
    display: flex;
    gap: 0;
    padding-left: calc(var(--story-art-width) - 6px);
  }

  .story-art {
    top: auto;
    right: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: min(100%, 520px);
    object-fit: contain;
    object-position: left bottom;
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000b 10%, #0001 26%, transparent 52%);
    mask-image: linear-gradient(to right, #000 0%, #000b 10%, #0001 26%, transparent 52%);
    -webkit-mask-size: 100vw 100%;
    mask-size: 100vw 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }

  .story-section::before {
    bottom: -240px;
    left: -230px;
    opacity: 0.22;
  }

  .story-copy {
    min-height: 0;
    gap: 0;
    font-size: clamp(19px, 5.4vw, 21px);
    line-height: 1.4;
  }

  .story-copy .story-summary {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    font-size: 1em;
  }

  .story-reader {
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
  }

  .story-pages {
    position: relative;
    display: flex;
    min-height: 0;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .story-pages::-webkit-scrollbar {
    display: none;
  }

  .story-page {
    flex: 0 0 100%;
    padding: 12px 10px 12px 8px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    cursor: pointer;
  }

  .story-page-intro {
    order: 0;
  }

  .story-navigation {
    display: flex;
    min-height: 44px;
    flex: none;
    justify-content: space-between;
    gap: 24px;
    margin-top: 4px;
  }

  .story-navigation button {
    display: grid;
    width: 76px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #302633;
    cursor: pointer;
  }

  .story-navigation img {
    display: block;
    width: 64px;
    height: auto;
    mix-blend-mode: multiply;
  }

  .story-navigation button:disabled {
    visibility: hidden;
    pointer-events: none;
  }

  .story-previous img {
    transform: scaleX(-1);
  }

  .story-page:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
  }

  .perks-section:not(.team-section) {
    padding-block: 88px;
  }

  #more-details .perks-divider {
    height: 48px;
  }

  .perk-grid {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 8px 6px;
  }

  .perk-grid::before {
    position: absolute;
    z-index: -1;
    top: 15%;
    left: -220px;
    width: 760px;
    aspect-ratio: 1;
    background: url("assets/watercolor-blot.webp") center / contain no-repeat;
    opacity: 0.4;
    transform: rotate(-25deg);
    pointer-events: none;
    content: "";
  }

  .perk-grid .perk-note {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 64px;
    align-items: center;
    gap: 6px 10px;
    margin-right: 10px;
    padding: 20px 22px;
    box-shadow:
      0 3px 6px #24193b1a,
      0 10px 22px #24193b29;
  }

  .perk-grid .perk-note + .perk-note {
    margin-top: -5px;
  }

  .perk-grid .perk-note:nth-child(even) {
    grid-template-columns: 64px minmax(0, 1fr);
    margin-right: 0;
    margin-left: 10px;
    text-align: right;
  }

  .perk-grid .perk-note:nth-child(even) .perk-note-mark {
    grid-column: 1;
  }

  .perk-grid .perk-note:nth-child(even) h3 {
    grid-column: 2;
  }

  .perk-grid .perk-note::after {
    display: none;
  }

  .perk-grid .perk-note-mark {
    grid-column: 2;
    grid-row: 1;
    align-items: center;
    justify-content: center;
    margin: 0;
  }

  .perk-grid .perk-illustration {
    width: 64px;
    height: 56px;
  }

  .perk-grid .perk-note h3 {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    font-size: clamp(20px, 5.6vw, 28px);
    line-height: 1.12;
    letter-spacing: 0;
  }

  .perk-grid .perk-note p {
    grid-column: 1 / -1;
    max-width: none;
    font-size: 19px;
    line-height: 1.25;
  }
}

@media (hover: none) and (prefers-reduced-motion: no-preference) {
  .perk-grid .perk-note {
    animation: perk-note-drift 8s ease-in-out infinite;
    animation-play-state: paused;
  }

  .perks-section.is-in-view .perk-grid .perk-note {
    animation-play-state: running;
  }

  .perk-grid .perk-note:nth-child(2) {
    animation-delay: -6.7s;
  }

  .perk-grid .perk-note:nth-child(3) {
    animation-delay: -5.4s;
  }

  .perk-grid .perk-note:nth-child(4) {
    animation-delay: -4.1s;
  }

  .perk-grid .perk-note:nth-child(5) {
    animation-delay: -2.8s;
  }

  .perk-grid .perk-note:nth-child(6) {
    animation-delay: -1.5s;
  }
}

@keyframes perk-note-drift {
  0%,
  24%,
  100% {
    transform: translateY(var(--note-offset)) rotate(var(--note-turn));
  }

  10%,
  14% {
    transform: translateY(calc(var(--note-offset) - 5px)) rotate(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .perk-note {
    transition: none;
  }
}

.team-section {
  padding-bottom: calc(clamp(112px, 8vw, 132px) + 24px);
}

.team-grid {
  display: grid;
  width: min(100%, 880px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  margin-inline: auto;
  padding: 12px 6px;
}

.team-card {
  --team-ink: #37263e;
  display: flex;
  min-width: 0;
  min-height: 660px;
  flex-direction: column;
  align-items: center;
  padding: 88px clamp(22px, 2.5vw, 36px) 70px;
  text-align: center;
}

.team-card::before {
  /* Nine-slice the existing artwork so tall cards do not stretch the crest
     into the name. These fixed edge dimensions leave a safe text inset. */
  border-style: solid;
  border-color: transparent;
  border-image: url("assets/perk-ink-frame-v1.png") 190 / 68px 48px / 0 stretch;
  background: none;
}

.team-card:nth-child(2) {
  --note-offset: 26px;
}

.team-card h3 {
  margin: 0 0 20px;
  color: var(--team-ink);
  font-family: var(--perk-body);
  font-size: clamp(34px, 3.5vw, 44px);
  font-style: normal;
  font-weight: 600;
  font-synthesis: none;
  line-height: 1.2;
  letter-spacing: 0.1em;
}

.team-portrait {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 1;
  flex: none;
  margin-bottom: 22px;
}

.team-portrait-slot {
  position: absolute;
  inset: 17%;
  overflow: hidden;
  border: 1px solid #37263e14;
  border-radius: 50%;
  background: #f0ede7 url("assets/watercolor-paper.webp") center / cover;
  box-shadow: inset 0 2px 12px #37263e0a;
}

.team-portrait-slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-portrait-frame {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.team-roles {
  position: relative;
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  color: #47404e;
  font-family: var(--perk-body);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.4;
  list-style: none;
}

.section-shell.gallery-section {
  display: block;
  height: 100vh;
  height: 100svh;
  min-height: 0;
  padding-block: 20px;
  padding-top: var(--header-height);
  scroll-margin-top: calc(-1 * var(--anchor-offset));
}

.gallery-section::before,
.gallery-section::after {
  position: absolute;
  z-index: 2;
  top: var(--header-height);
  bottom: 20px;
  width: clamp(24px, 6vw, 80px);
  pointer-events: none;
  content: "";
}

.gallery-section::before {
  left: 0;
  background: linear-gradient(to right, var(--page), transparent);
}

.gallery-section::after {
  right: 0;
  background: linear-gradient(to left, var(--page), transparent);
}

.gallery-scroll {
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding-block: 8px;
}

.gallery-lane:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: 24px;
}

.gallery-grid {
  --gallery-gap: 24px;
  --gallery-column-height: calc(100svh - var(--header-height) - 60px);
  display: flex;
  height: 100%;
  flex-direction: column;
}

.gallery-lane {
  min-height: 0;
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  padding-block: 12px;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}

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

.gallery-lane.is-dragging {
  cursor: grabbing;
}

.gallery-track {
  display: flex;
  width: max-content;
  height: 100%;
}

.gallery-group {
  display: flex;
  height: 100%;
  flex: none;
  align-items: stretch;
  gap: var(--gallery-gap);
  padding-right: var(--gallery-gap);
}

.gallery-column {
  --column-ratio: 0.64;
  display: flex;
  width: clamp(150px, calc(var(--gallery-column-height) * var(--column-ratio)), 680px);
  height: 100%;
  flex: none;
  flex-direction: column;
  justify-content: center;
  gap: var(--gallery-gap);
}

.gallery-card {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 0;
  flex: var(--tile-share, 1) 1 0;
  margin: 0;
  border-radius: clamp(18px, 2vw, 28px);
}

.gallery-column-landscape {
  width: clamp(150px, calc(var(--gallery-column-height) * var(--column-ratio)), 1100px);
}

.gallery-column-landscape .gallery-card {
  aspect-ratio: 4 / 3;
  max-height: 100%;
  flex: 0 1 auto;
}

.gallery-card::before {
  position: absolute;
  z-index: -1;
  inset: 6px 3px -5px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--cyan), var(--violet) 60%, var(--blue));
  filter: blur(12px);
  opacity: 0.55;
  transition: opacity 0.25s ease;
  content: "";
}

.gallery-card:hover::before {
  opacity: 0.7;
}

.gallery-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  background: #ffffff;
  border: 1px solid color-mix(in srgb, var(--page) 75%, transparent);
  border-radius: inherit;
}

.gallery-section.is-slideshow::before,
.gallery-section.is-slideshow::after {
  display: none;
}

.gallery-slider {
  display: grid;
  height: 100%;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
}

.gallery-slides {
  display: flex;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

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

.gallery-slides:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: 20px;
}

.gallery-slide {
  display: flex;
  width: 100%;
  min-width: 0;
  height: 100%;
  flex: 0 0 100%;
  padding: 18px 24px 24px;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.gallery-slider .gallery-card {
  height: 100%;
  flex: none;
}

.gallery-slider .gallery-art {
  object-fit: cover;
  object-position: center;
}

.gallery-controls,
.gallery-dots {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-controls {
  gap: 12px;
}

.gallery-dot {
  display: inline-flex;
  height: 36px;
  flex: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--violet);
  cursor: pointer;
  width: 24px;
  transition: width 0.2s ease;
}

.gallery-dot::before {
  width: 6px;
  height: 6px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--blue) 30%, var(--page));
  content: "";
}

.gallery-dot[aria-current="true"] {
  width: 52px;
}

.gallery-dot[aria-current="true"]::before {
  width: 42px;
  background: linear-gradient(90deg, var(--blue), var(--violet));
}

.gallery-card.is-lifting {
  animation: gallery-lift 2.8s ease-in-out;
}

@keyframes gallery-lift {
  0%,
  100% {
    transform: translateY(0);
  }
  45%,
  55% {
    transform: translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-card,
  .gallery-card::before,
  .gallery-dot {
    transition: none;
  }

  .gallery-card.is-lifting {
    animation: none;
  }
}

.site-footer {
  --muted: #f4fbff;
  background: var(--blue);
  scroll-margin-top: var(--anchor-offset);
}

.site-footer-inner {
  display: grid;
  min-height: 100px;
  grid-template-columns: 112px minmax(0, 1fr);
  grid-template-areas:
    "brand contacts"
    "credit credit";
  align-items: center;
  gap: 20px 32px;
  padding-block: 28px 16px;
}

.site-footer .studio-logo {
  width: 112px;
  height: 112px;
  grid-area: brand;
}

.footer-contacts {
  display: grid;
  width: min(100%, 760px);
  min-width: 0;
  grid-area: contacts;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  justify-self: end;
  gap: 20px;
  line-height: 1.5;
}

.footer-qr-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  color: var(--muted);
  text-align: center;
}

.footer-contact-qr {
  display: block;
  width: 100%;
  max-width: 160px;
  height: auto;
  aspect-ratio: 1;
  margin-bottom: 6px;
}

.footer-contact-label {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
}

.footer-contact-label > span:first-child {
  text-decoration: underline dotted;
  text-underline-offset: 4px;
}

.footer-contact-arrow {
  flex: none;
  font-size: 15px;
  line-height: 1;
}

.footer-qr-card:hover .footer-contact-label > span:first-child {
  text-decoration-style: solid;
}

.platform-credit {
  display: inline-flex;
  grid-area: credit;
  align-self: end;
  align-items: center;
  justify-self: end;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  transition: color 0.2s ease;
}

.platform-credit:hover {
  color: var(--ink);
}

.platform-domain {
  white-space: nowrap;
}

.platform-logo {
  width: 28px;
  height: 28px;
  flex: none;
  background: currentColor;
  -webkit-mask: url("assets/yerevan-business-page-logo.svg") center / contain no-repeat;
  mask: url("assets/yerevan-business-page-logo.svg") center / contain no-repeat;
}

@media (max-width: 860px) {
  .content-width {
    width: min(100% - 40px, 720px);
  }

  .nav-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--page) 50%, transparent);
    border-radius: 50%;
    background: color-mix(in srgb, var(--page) 76%, transparent);
    color: #182b45;
    cursor: pointer;
  }

  .nav-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.2s ease;
  }

  .nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: calc(var(--header-height) + 10px);
    right: max(20px, calc((100% - 720px) / 2));
    display: none;
    width: min(320px, calc(100% - 40px));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px;
    border: 1px solid color-mix(in srgb, var(--blue) 22%, var(--page));
    border-radius: 16px;
    background: color-mix(in srgb, var(--cyan) 10%, var(--page));
    box-shadow: 0 16px 40px #182b4526;
    font-size: 25px;
  }

  .nav-toggle[aria-expanded="true"] + .site-nav {
    display: flex;
  }

  .site-nav a {
    min-height: 60px;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 0;
  }

  .site-nav a + a {
    border-top: 1px solid color-mix(in srgb, var(--blue) 16%, transparent);
  }

  .nav-arrow {
    display: inline;
    color: var(--accent);
    font-family: var(--body);
    font-size: 18px;
  }

  .site-footer-inner {
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-areas:
      "contacts contacts"
      "brand credit";
    gap: 24px 12px;
  }

  .site-footer .studio-logo {
    width: 48px;
    height: 48px;
  }

  .platform-credit {
    align-self: center;
    gap: 8px;
    font-size: 11px;
  }

  .platform-logo {
    width: 24px;
    height: 24px;
  }

  .footer-contacts {
    justify-self: center;
  }
}

@media (max-width: 860px) and (orientation: portrait) {
  .hero {
    height: 100vh;
    height: 100svh;
    min-height: 0;
  }

  .hero-stage {
    height: 100%;
  }

  .hero-logo {
    /* Artwork and glow share the supplied portrait's 1080 x 1920 canvas. */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
}

@media (max-width: 600px) {
  :root {
    --anchor-offset: calc(var(--header-height) + 28px);
  }

  .content-width {
    width: min(100% - 32px, 520px);
  }

  .site-topbar {
    min-height: var(--header-height);
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .site-nav {
    right: 16px;
    width: min(320px, calc(100% - 32px));
  }

  .section-shell {
    min-height: 260px;
  }

  .section-inner {
    gap: 24px;
  }

  .hero {
    min-height: 0;
  }

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

  .team-card {
    min-height: 560px;
  }

  .team-card:nth-child(2) {
    --note-offset: 0px;
  }

  .gallery-grid {
    --gallery-gap: 16px;
  }

  .gallery-scroll {
    padding-block: 8px;
  }

  .gallery-column {
    width: clamp(150px, calc(var(--gallery-column-height) * var(--column-ratio)), 86vw);
  }

  .gallery-column-landscape .gallery-card {
    aspect-ratio: 4 / 5;
  }

  .site-footer-inner {
    gap: 24px 12px;
  }

  .footer-contacts {
    width: min(100%, 400px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle span {
    transition: none;
  }
}
