:root {
  color-scheme: dark;
  --bg: #030608;
  --text: #f4f5f7;
  --text-dark: #071018;
  --muted: #8a9097;
  --panel: rgba(255, 255, 255, 0.08);
  --transition: 0.35s ease;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: rgba(10, 14, 18, 0.96);
  --glass: rgba(255, 255, 255, 0.14);
  --glass-strong: rgba(255, 255, 255, 0.24);
  --pricing-card-min-height: 480px;
  --pricing-gallery-height: clamp(280px, 34vw, 360px);
  --pricing-gallery-padding: 1rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 25;
  transition: background-color 0.35s ease, backdrop-filter 0.35s ease, color 0.35s ease, opacity 0.35s ease;
  border-radius: 0;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-group--left {
  margin-left: 10rem;
}

.nav-group--right {
  margin-right: 20rem;
}

.site-nav--page {
  background: rgba(3, 6, 8, 0.92);
}

.site-nav[data-state="home"] {
  background: transparent;
}

.site-nav[data-state="works"] {
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(18px);
  color: #071018;
  opacity: 1;
}

.site-nav[data-state="commission"] {
  background: transparent;
}

.site-nav[data-state="page"] {
  background: rgba(3, 6, 8, 0.92);
}

.nav-link {
  position: relative;
  font-size: 0.95rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: opacity 0.25s ease, transform 0.25s ease;
  font-weight: 500;
}

.site-nav[data-state="works"] .nav-link {
  color: #111;
}

.nav-link:hover {
  transform: translateY(-1px);
}

.nav-link.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.28));
  z-index: 0;
}

.hero--home {
  background-image: url("images/hero-home.png");
  background-size: cover;
  background-position: center;
}

.hero--commission {
  background-image: url("images/hero-commission.png");
  background-size: cover;
  background-position: center;
}

.hero--works {
  background: #edf0f2;
  color: var(--text-dark);
  align-items: center;
  justify-content: center;
  padding-top: 5rem;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
}

.hero-content--centered {
  text-align: center;
  position: relative;
  padding-bottom: 4rem;
  width: min(100%, 760px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 72vh;
}

.hero-content--works {
  width: min(100%, 1160px);
}

.eyebrow {
  margin: 0 0 0.8rem;
  font-size: 0.84rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.eyebrow--dark {
  color: rgba(23, 23, 23, 0.65);
}

.hero-name {
  margin: 0;
  font-size: clamp(3rem, 7vw, 6rem);
  letter-spacing: 0.08em;
  font-weight: 500;
  opacity: 0;
  transform: translateY(18px);
  animation: fade-up 0.9s ease forwards 0.25s;
}

.hero-description {
  margin: 2.75rem auto 0;
  max-width: 620px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: translateY(18px);
  animation: fade-up 0.9s ease forwards 0.55s;
}

.hero--works .hero-description,
.hero--works .hero-name {
  color: var(--text-dark);
}

.social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.15rem;
  margin-top: 4.75rem;
  opacity: 0;
  transform: translateY(12px);
  animation: fade-up 0.8s ease forwards 0.85s;
}

.social-links a {
  width: 4.25rem;
  height: 4.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.social-links a:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.2);
}

.section-heading {
  margin-bottom: 1.8rem;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.7rem);
  letter-spacing: 0.06em;
  text-align: center;
  font-weight: 600;
}

.gallery {
  columns: 3 240px;
  column-gap: 1.2rem;
}

.gallery-card {
  display: block;
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 0;
  margin: 0 0 1.2rem;
  break-inside: avoid;
  page-break-inside: avoid;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border-radius: 0.8rem;
  transition: transform 0.35s ease;
  transform-origin: center center;
}

.gallery-card:hover img {
  transform: scale(1.04);
}

.gallery-card.is-zoomed img {
  transform: scale(1.5);
  transform-origin: center center;
  transition: transform 0.25s ease;
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: -10vh;
  transform: translateX(-50%);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: bob 1.6s ease-in-out infinite;
  opacity: 0;
    transform: translateY(12px);
    animation: fade-up 1s ease forwards 2s, bob 1.6s ease-in-out infinite;
}

.scroll-indicator span {
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  margin-top: -0.2rem;
}

.gallery-card__meta {
  display: none;
}

.commission-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 270px;
  padding: 2.2rem 5.2rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  font-size: 1.38rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
  margin-bottom: 1.4rem;
}

.contact-panel {
  width: min(100%, 480px);
  padding: 1.3rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
  margin-top: auto;
}

.contact-panel h3 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.76);
  color: var(--text-dark);
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #42515f;
}

.contact-form textarea {
  resize: vertical;
  min-height: 7rem;
}

.contact-form button {
  align-self: flex-start;
  padding: 0.75rem 1.2rem;
  border: 0;
  border-radius: 999px;
  background: #0d1217;
  color: #fff;
  cursor: pointer;
}

.commission-cta:hover {
  transform: scale(1.04);
  background: rgba(255, 255, 255, 0.2);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal.is-open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.modal.is-closing {
  display: flex;
  opacity: 0;
}

body.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.modal-frame {
  position: relative;
  z-index: 1;
  width: min(96vw, 1200px);
  height: min(94vh, 900px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
}

.modal-image {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: 1.3rem;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.25);
  transform: scale(1);
  transition: transform 0.25s ease;
  cursor: zoom-in;
}

.modal-image.is-zoomed {
  transform: scale(1.5);
  cursor: zoom-out;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.7rem;
  height: 2.7rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  cursor: pointer;
  z-index: 2;
}

.modal-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  cursor: pointer;
  z-index: 2;
  font-size: 1.2rem;
}

.modal-nav--prev {
  left: 0.6rem;
}

.modal-nav--next {
  right: 0.6rem;
}

.page-shell {
  min-height: 100vh;
  padding: 7rem 2rem 5rem;
  color: var(--text-dark);
  background: linear-gradient(180deg, #f0f2f4 0%, #e6ebee 100%);
}

.page-header {
  max-width: 760px;
  margin: 0 auto 2.5rem;
}

.page-header h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 4.5vw, 3rem);
}

.page-description {
  margin: 0;
  line-height: 1.75;
  color: rgba(23, 23, 23, 0.76);
}

.info-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin: 0 auto 1.5rem;
  max-width: 980px;
  flex-wrap: wrap;
}

.info-toggle__button {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  background: transparent;
  color: var(--text-dark);
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.info-toggle__button:hover {
  transform: translateY(-2px);
}

.info-toggle__button.is-active {
  background: #111;
  color: #fff;
}

.info-toggle__contact {
  margin-left: 0.2rem;
}

.info-panels {
  max-width: 980px;
  margin: 0 auto;
}

.info-panel {
  display: none;
}

.info-panel.is-active {
  display: block;
}

.tier-grid {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.tier-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  padding: 0;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.06);
  min-height: auto;
  overflow: hidden;
}

.tier-card__gallery {
  position: relative;
  width: 48%;
  min-height: var(--pricing-gallery-height);
  border-radius: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #12161b, #2f3944);
  cursor: pointer;
  display: block;
  padding: 0;
  isolation: isolate;
}

.tier-card__gallery::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.02));
  pointer-events: none;
  z-index: 0;
}

.tier-gallery__slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
  z-index: 0;
}

.tier-gallery__slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 1;
  animation: gallery-fade 0.7s ease;
}

.tier-gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  margin: 0;
}

.tier-card__gallery:hover .tier-gallery__slide img {
  transform: scale(1.04);
}

.tier-card__content {
  width: 52%;
  padding: 1.3rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tier-gallery__count {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 1;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tier-card__content h2 {
  margin: 0 0 0.4rem;
}

.tier-price {
  margin: 0 0 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.addons-card {
  margin-top: 1.3rem;
  padding: 1.4rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.05);
}

.addons-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.02rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.addons-card p {
  margin: 0 0 1rem;
  line-height: 1.75;
  color: rgba(23, 23, 23, 0.8);
}

.addons-list {
  display: grid;
  gap: 0.8rem;
}

.addons-item {
  padding: 0.95rem 1rem;
  border-radius: 0.9rem;
  background: rgba(7, 16, 24, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.addons-item h4 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.addons-item p {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
}

.addons-item span {
  font-weight: 600;
  color: #071018;
}

.addons-item--full {
  background: rgba(7, 16, 24, 0.06);
}

.addons-inline {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.terms-card {
  padding: 1.6rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.05);
}

.terms-card h2 {
  margin: 0 0 1.2rem;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
}

.terms-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.terms-card h4 {
  margin: 0.8rem 0 0.3rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.terms-card p,
.terms-card li {
  line-height: 1.8;
  color: rgba(23, 23, 23, 0.8);
}

.terms-card ul {
  padding-left: 1.1rem;
  margin: 0.4rem 0 0.8rem;
}

.terms-card .terms-section + .terms-section {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.terms-card .terms-note {
  margin-top: 0.6rem;
  font-style: italic;
}

.page-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 2rem 2rem;
  color: #071018;
  background: #e9eff2;
}

.page-footer .footer-text {
  margin: 0;
  text-align: center;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  background: #071018;
  color: #fff;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.contact-button:hover {
  transform: translateY(-2px);
  background: #111;
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

@keyframes gallery-scroll {
  0% {
    transform: translateX(100%);
  }
  10% {
    transform: translateX(0);
  }
  90% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes drift {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes gallery-fade {
  from {
    opacity: 0;
    transform: scale(1.03);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 900px) {
  .gallery {
    column-count: 2;
  }

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

@media (max-width: 800px) {
  .gallery {
    column-count: 1;
  }

  .site-nav {
    padding: 1rem 1.2rem;
  }

  .page-footer {
    flex-direction: column;
    gap: 0.3rem;
    align-items: flex-start;
  }
}
