:root {
  --page: #292929;
  --surface: rgba(23, 23, 23, 0.94);
  --surface-soft: #303030;
  --line: #4b4b4b;
  --text: #c9c9c9;
  --text-strong: #f4f4f4;
  --purple: #b175fa;
  --purple-soft: #cda6fc;
  --purple-dark: #4a069d;
  --content-width: 900px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background-color: var(--page);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 35%),
    url("/images/theme/Page-BgTexture.jpg");
  background-repeat: no-repeat, repeat-x;
  background-position: top left, bottom left;
  background-attachment: scroll, fixed;
  font-family: "Century Gothic", "Avenir Next", Avenir, Arial, Helvetica,
    sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

body::before {
  position: fixed;
  z-index: -1;
  top: 0;
  left: 0;
  width: 206px;
  height: 334px;
  content: "";
  background: url("/images/theme/Page-BgGlare.png") no-repeat;
  pointer-events: none;
}

a {
  color: var(--purple);
  text-decoration: none;
}

a:hover {
  color: #fff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--purple-soft);
  outline-offset: 3px;
}

button,
input,
textarea {
  font: inherit;
}

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

.site-shell {
  width: min(calc(100% - 24px), var(--content-width));
  margin: 0 auto;
  padding: 0 13px 18px;
}

.site-header {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 874 / 100;
  min-height: 70px;
  background: #191919;
}

.site-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.site-nav {
  min-height: 57px;
  border-top: 1px solid #464646;
  border-bottom: 1px solid #151515;
  background:
    linear-gradient(180deg, #3d3d3d 0%, #262626 56%, #202020 100%);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.07);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  min-height: 56px;
  margin: 0;
  padding: 0 6px;
  list-style: none;
}

.site-nav li {
  display: flex;
}

.site-nav a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 55px;
  padding: 0 20px;
  color: #e0c9fd;
  font-size: 13px;
  line-height: 1;
  text-align: center;
}

.site-nav a::after {
  position: absolute;
  right: 18px;
  bottom: 10px;
  left: 18px;
  height: 1px;
  content: "";
  background: transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #fff;
  background: linear-gradient(180deg, rgba(177, 117, 250, 0.12), transparent);
}

.site-nav a[aria-current="page"]::after {
  background: var(--purple);
  box-shadow: 0 0 8px rgba(177, 117, 250, 0.75);
}

.main-content {
  min-height: 420px;
  padding: 7px 0;
}

.content-panel {
  margin: 7px;
  padding: 22px;
  border: 1px solid #313131;
  background: rgba(37, 37, 37, 0.5);
}

.page-intro {
  max-width: 680px;
  margin-bottom: 30px;
}

.section-kicker {
  margin: 0 0 8px;
  color: #9a9a9a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--purple-soft);
  font-weight: 400;
  line-height: 1.25;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(25px, 4vw, 32px);
}

h2 {
  font-size: clamp(21px, 3vw, 26px);
}

h3 {
  font-size: 18px;
}

p {
  margin: 0 0 1.15em;
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 392px);
  gap: 30px;
  align-items: center;
  padding: 30px 17px 32px;
}

.home-copy {
  max-width: 460px;
}

.home-copy h1 {
  color: var(--purple-soft);
  font-size: 22px;
  font-style: italic;
  font-weight: 700;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-top: 26px;
}

.button-link,
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid #7d3ccd;
  border-radius: 2px;
  color: #fff;
  background: linear-gradient(180deg, #7835ca, #4a128e);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.button-link:hover,
.button:hover {
  border-color: var(--purple-soft);
  color: #fff;
  background: linear-gradient(180deg, #9553e7, #5e1aa9);
}

.text-link {
  padding-block: 8px;
}

.home-showcase {
  min-width: 0;
}

.showcase-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 382 / 400;
  border: 5px solid #1d1d1d;
  background: #111;
  box-shadow: 0 0 0 1px #474747;
}

.showcase-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.showcase-controls button {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #555;
  border-radius: 50%;
  color: #e9d8fe;
  background: #242424;
  cursor: pointer;
}

.showcase-controls button:hover {
  color: #fff;
  border-color: var(--purple);
}

.showcase-count {
  min-width: 54px;
  color: #8e8e8e;
  font-size: 11px;
  text-align: center;
}

.portfolio-categories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.category-card {
  overflow: hidden;
  border: 1px solid #454545;
  background: #222;
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.category-card:hover {
  transform: translateY(-2px);
  border-color: var(--purple);
}

.category-card img {
  width: 100%;
  aspect-ratio: 6 / 5;
  object-fit: cover;
}

.category-card h2 {
  display: flex;
  min-height: 68px;
  align-items: center;
  margin: 0;
  padding: 14px;
  color: var(--purple-soft);
  font-size: 15px;
  text-align: center;
  justify-content: center;
}

.gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.back-link {
  white-space: nowrap;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.gallery-button {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  padding: 0;
  border: 1px solid #454545;
  background: #151515;
  cursor: zoom-in;
}

.gallery-button img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  transition: transform 220ms ease;
}

.gallery-button:hover img {
  transform: scale(1.025);
}

.lightbox {
  width: min(94vw, 920px);
  max-width: none;
  max-height: 92vh;
  padding: 0;
  border: 1px solid #5a5a5a;
  color: var(--text);
  background: #151515;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.7);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.86);
}

.lightbox-inner {
  position: relative;
  display: grid;
  min-height: 300px;
  place-items: center;
}

.lightbox-image {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(92vh - 64px);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 8px 16px;
  border-top: 1px solid #383838;
}

.lightbox-nav button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #4c4c4c;
  color: var(--purple-soft);
  background: #232323;
  cursor: pointer;
}

.price-section + .price-section {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid #3f3f3f;
}

.price-section h2,
.credit-entry h2 {
  margin-bottom: 10px;
  color: var(--text-strong);
  font-size: 17px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--purple-dark);
  text-underline-offset: 5px;
}

.price-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-list li {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 8px 0;
}

.price-list strong {
  color: #e7e7e7;
}

.special-note {
  max-width: 600px;
  padding: 24px;
  border-left: 3px solid var(--purple);
  background: #242424;
}

.credits-list {
  display: grid;
  gap: 26px;
  max-width: 700px;
}

.credit-entry {
  position: relative;
  padding: 0 0 2px 24px;
  border-left: 1px solid #555;
}

.credit-entry::before {
  position: absolute;
  top: 6px;
  left: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  content: "";
  background: var(--purple);
  box-shadow: 0 0 0 4px #292929;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.35fr);
  gap: 42px;
}

.email-card {
  padding: 22px;
  border: 1px solid #414141;
  background: #242424;
}

.email-card a {
  overflow-wrap: anywhere;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: #ddd;
  font-size: 13px;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid #555;
  border-radius: 1px;
  color: #f3f3f3;
  background: #1c1c1c;
}

.field input {
  min-height: 46px;
  padding: 0 12px;
}

.field textarea {
  min-height: 150px;
  padding: 12px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--purple);
  outline: none;
  box-shadow: 0 0 0 2px rgba(177, 117, 250, 0.18);
}

.form-note {
  margin: -2px 0 2px;
  color: #999;
  font-size: 12px;
}

.site-footer {
  padding: 10px 12px 0;
  color: #bdbdbd;
  font-size: 12px;
  text-align: center;
}

.footer-brand {
  display: block;
  overflow: hidden;
  width: min(100%, 360px);
  aspect-ratio: 874 / 100;
  margin: 0 auto 14px;
  opacity: 0.68;
  transition: opacity 160ms ease;
}

.footer-brand:hover {
  opacity: 1;
}

.footer-brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-footer p {
  margin: 0;
}

.site-credit {
  margin: 14px 0 0;
  color: #6c6c6c;
  font-family: Arial, sans-serif;
  font-size: 10px;
  text-decoration: underline;
}

.sr-only {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 820px) {
  .site-shell {
    width: min(calc(100% - 16px), var(--content-width));
    padding-inline: 8px;
  }

  .site-header {
    min-height: 64px;
  }

  .site-header img {
    object-position: left center;
  }

  .site-nav ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 0;
  }

  .site-nav li,
  .site-nav a {
    width: 100%;
  }

  .site-nav a {
    min-height: 45px;
    justify-content: center;
    padding: 0 8px;
    border-right: 1px solid #454545;
    border-bottom: 1px solid #1a1a1a;
  }

  .site-nav a::after {
    right: 24%;
    bottom: 7px;
    left: 24%;
  }

  .home-layout {
    grid-template-columns: 1fr;
    padding: 28px 17px;
  }

  .home-copy {
    max-width: none;
  }

  .home-showcase {
    width: min(100%, 430px);
    margin-inline: auto;
  }

  .portfolio-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 14px;
  }

  .site-shell {
    width: 100%;
    padding-inline: 0;
  }

  .site-header {
    aspect-ratio: 874 / 118;
    min-height: 64px;
  }

  .site-header img {
    object-fit: cover;
    object-position: left center;
  }

  .main-content {
    padding-top: 0;
  }

  .content-panel {
    margin: 0;
    padding: 24px 18px 30px;
    border-inline: 0;
  }

  .home-layout {
    padding-inline: 18px;
  }

  .portfolio-categories,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    display: grid;
    grid-template-columns: 42% 1fr;
  }

  .category-card h2 {
    min-height: 100%;
  }

  .gallery-button,
  .gallery-button img {
    min-height: 330px;
  }

  .gallery-header {
    display: block;
  }

  .field-row,
  .price-list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .site-footer {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
