:root {
  --black: #000000;
  --white: #ffffff;
  --red: #ff1f1f;
  --gray-100: #f5f5f5;
  --gray-200: #e0e0e0;
  --gray-600: #565656;
  --gray-800: #1f1f1f;
  --max-width: 1200px;
  --radius: 1.25rem;
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.25);
  --transition-base: 250ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--white);
  color: var(--gray-800);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

main > section,
.contact {
  padding: 6rem min(5vw, 3rem);
}

.hero {
  min-height: calc(90vh - 72px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  align-items: center;
  padding: 8rem min(5vw, 3rem) 6rem;
  background: linear-gradient(135deg, var(--white), #fdf1f1 45%, #ffe8e8);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 31, 31, 0.1), transparent 55%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 540px;
}

.hero h1 {
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  line-height: 1.1;
  margin: 0 0 1.25rem;
}

.hero p {
  margin-bottom: 1.75rem;
  color: var(--gray-600);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__visual {
  position: relative;
  z-index: 1;
}

.hero__frame {
  position: relative;
  max-width: 520px;
  margin-left: auto;
}

.hero__frame img:first-child {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.hero__floating {
  position: absolute;
  bottom: -15%;
  right: -10%;
  width: 55%;
  border-radius: calc(var(--radius) * 0.9);
  border: 8px solid var(--white);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.site-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem min(5vw, 3rem);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  z-index: 10;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  font-weight: 500;
  color: var(--gray-800);
  transition: color var(--transition-base);
}

.site-nav a:hover {
  color: var(--red);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background-color: var(--black);
  transition: transform var(--transition-base);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.section-header {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin: 0 0 1rem;
  font-family: "Playfair Display", serif;
}

.about {
  background: var(--white);
}

.about__copy {
  columns: 2;
  column-gap: 2rem;
  max-width: var(--max-width);
}

.about__copy p {
  break-inside: avoid;
}

.portfolio {
  background: #fcfcfc;
  padding-bottom: 5rem;
}

.gallery-block {
  margin-bottom: 4rem;
}

.gallery-block__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 1.5rem;
}

.gallery-grid,
.customer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.customer-grid {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1rem;
}


.gallery-card {
  margin: 0;
}

.gallery-card button {
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  position: relative;
}

.gallery-card img {
  border-radius: var(--radius);
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.gallery-card button:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

.gallery-card button::after {
  content: "View";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  color: var(--white);
  opacity: 0;
  font-weight: 600;
  transition: opacity var(--transition-base);
  letter-spacing: 0.2em;
}

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

.gallery-card button:hover::after {
  opacity: 1;
}

.gallery-card figcaption,
.customer-card figcaption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--gray-600);
}

.process {
  background-color: #0a0a0a;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.process::before {
  content: "";
  position: absolute;
  inset: 10% auto auto -10%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 31, 31, 0.35), transparent 70%);
}

.process::after {
  content: "";
  position: absolute;
  inset: auto -10% 5% auto;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 31, 31, 0.25), transparent 70%);
}

.process .section-header h2 {
  color: var(--white);
}

.process .section-header p {
  color: rgba(255, 255, 255, 0.75);
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.process-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
}

.process-card img {
  border-radius: 1rem;
  margin-bottom: 1rem;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.customers {
  background: linear-gradient(180deg, #fff 0%, #f7f7f7 100%);
}

.customer-card {
  background: var(--white);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.customer-card img {
  border-radius: 0.75rem;
  height: 320px;
  object-fit: contain;
  width: 100%;
}

.commission {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  background-color: var(--gray-100);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.commission__info ul {
  padding-left: 1rem;
}

.commission__form {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.07);
  display: grid;
  gap: 1.25rem;
}

.commission__form label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  font-size: 0.95rem;
  gap: 0.35rem;
}

.commission__form input,
.commission__form select,
.commission__form textarea {
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--gray-200);
  font: inherit;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.commission__form input:focus,
.commission__form select:focus,
.commission__form textarea:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
  outline: none;
}

.form-status {
  min-height: 1.2em;
  font-size: 0.9rem;
  color: var(--gray-600);
}

.contact {
  background: var(--white);
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

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

.contact-list li + li {
  margin-top: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

.btn-primary {
  background-color: var(--black);
  color: var(--white);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.btn-ghost {
  border-color: var(--black);
  color: var(--black);
}

.btn-ghost:hover {
  background-color: var(--black);
  color: var(--white);
}

.site-footer {
  background-color: var(--black);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem min(5vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
}

.footer__brand img {
  margin: 0 auto 0.5rem;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.25rem;
}

.back-to-top {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  gap: 1rem;
  z-index: 999;
}

.lightbox img {
  max-width: min(90vw, 800px);
  max-height: 70vh;
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--white);
  cursor: pointer;
}

.lightbox[hidden] {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .about__copy {
    columns: 1;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0 0 0 var(--radius);
    padding: 1rem 1.5rem;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
  }

  .site-nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  .site-header.is-open .site-nav {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .site-header.is-open .nav-toggle span:first-child {
    transform: rotate(45deg) translateY(6px);
  }

  .site-header.is-open .nav-toggle span:last-child {
    transform: rotate(-45deg) translateY(-6px);
  }
}

@media (max-width: 600px) {
  main > section,
  .contact,
  .hero {
    padding: 4.5rem 1.5rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .commission__form {
    padding: 1.5rem;
  }
}
