:root {
  --bg: #000000;
  --text: #f4f1ed;
  --muted: rgba(244, 241, 237, 0.64);
  --line: rgba(255, 255, 255, 0.1);
  --soft-line: rgba(255, 255, 255, 0.06);
  --accent: #d8c2a6;
  --label: rgba(216, 194, 166, 0.92);
}

#loader {
  position: fixed;
  inset: 0;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  font-size: 18px;
  letter-spacing: 0.2em;
}

#loader p {
  letter-spacing: 0.3em;
  animation: fadePulse 1.2s ease-in-out infinite;
}

@keyframes fadePulse {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.05), transparent 18%),
    #000;
  color: var(--text);
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.site-shell {
  width: min(100%, 110rem);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem) 4rem;
}

.section {
  padding: clamp(4rem, 8vw, 7.5rem) 0;
}

.eyebrow {
  margin: 0;
  color: var(--label);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.section-title {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 60px;
}

.section-head h2 {
  margin: 0.65rem 0 0;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  color: rgba(244, 241, 237, 0.96);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero {
  background: radial-gradient(
    circle at 80% 50%,
    rgba(255,255,255,0.03),
    transparent 40%
  );
}

.hero-copy {
  max-width: 48rem;
}

.hero-copy h1 {
  margin: 0.9rem 0 0;
  max-width: 13ch;
  font-size: clamp(3.25rem, 7vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: -0.08em;
}

/* LAYOUT */

.about-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: start;
}

/* TEXT */

.about-text-block {
  max-width: 42rem;
}

/* IMAGE */

.about-image img {
  width: 100%;
  height: 480px;
  max-height: 60vh;
  border-radius: 6px;
  object-fit: cover;
  object-position: center bottom;
  opacity: 0.82;
}

/* OPTIONAL: subtle depth */

.about-image {
  position: relative;
}

.about-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    transparent 60%,
    rgba(0,0,0,0.8)
  );
  border-radius: inherit;
}

.about-image img {
  transition: transform 0.6s ease;
}

/* .about-image:hover img {
  transform: scale(1.02);
} */

@media (max-width: 768px) {
  .about-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.section-services {
  border-top: 1px solid var(--soft-line);
  padding-top: clamp(6rem, 9vw, 7.5rem);
  padding-bottom: clamp(6rem, 9vw, 7.5rem);
}

.section-head-services {
  /* margin-bottom: clamp(2.8rem, 6vw, 4rem); */
  margin-bottom: 2rem;
}

.service-list {
  max-width: 58rem;
}

.service-entry + .service-entry {
  /* margin-top: clamp(5rem, 8vw, 6.5rem); */
  margin-top: 3rem;
}

.service-item {
  position: relative;
  padding-top: 1.65rem;
  cursor: pointer;
  transition: transform 320ms ease, color 320ms ease;
}

.service-item::before {
  content: none;
}

.service-item::after {
  content: none;
  /* position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
  transition: width 320ms ease; */
}

.service-item h2,
.featured-project-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.service-item h2 {
  max-width: none;
  color: rgba(244, 241, 237, 0.9);
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  font-weight: 600;
  line-height: 1.02;
  transition: color 320ms ease;
}

.service-item p,
.featured-project-copy p,
.about-copy,
.contact-list p,
.contact-address {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.service-item p {
  max-width: 28rem;
  margin-top: 0.75rem;
  color: rgba(244, 241, 237, 0.54);
  font-size: 0.94rem;
  line-height: 1.7;
  transition: color 320ms ease;
}

.service-item:hover,
.service-item:focus-visible {
  transform: none;
}

.service-item:hover h2,
.service-item:focus-visible h2 {
  color: rgba(255, 255, 255, 0.98);
}

.service-item:hover p,
.service-item:focus-visible p {
  color: rgba(244, 241, 237, 0.7);
}

.service-item:hover .service-index,
.service-item:focus-visible .service-index {
  opacity: 1;
  transform: translateY(-50%);
}

.featured-project {
  display: block;
  margin-top: 2rem;
  max-width: 32rem;
}

.featured-project-media {
  position: relative;
  overflow: hidden;
  border-radius: 1.6rem;
  border: 1px solid var(--line);
  background: #070707;
}

.featured-project-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 400ms ease, opacity 400ms ease;
}

.featured-project:hover .featured-project-media img,
.featured-project:focus-visible .featured-project-media img {
  transform: scale(1.025);
  opacity: 0.88;
}

.featured-project-badge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

.featured-project-badge span {
  display: inline-flex;
  align-items: center;
  width: 100%;
  min-height: 3rem;
  padding: 1rem 1.2rem;
  background: rgba(0, 0, 0, 0.72);
  color: rgba(244, 241, 237, 0.96);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  backdrop-filter: blur(8px);
}

.gallery-block {
  margin-top: 2rem;
}

.gallery-head {
  margin-bottom: 1.25rem;
}

.gallery-frame {
  position: relative;
  padding: 0 3.2rem;
}

.render-gallery {
  overflow-x: auto;
  cursor: grab;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  padding: 0.2rem 0;
  scroll-behavior: smooth;
}

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

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

.render-gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2.4rem) / 3);
  gap: 1.2rem;
  padding-inline: 0.18rem;
}

.render-card {
  position: relative;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.45rem;
  background: #050505;
  cursor: pointer;
  appearance: none;
  transition: transform 280ms ease, border-color 280ms ease, box-shadow 280ms ease;
  scroll-snap-align: start;
  outline: 1px solid transparent;
  outline-offset: -1px;
}

.render-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 0 rgba(216, 194, 166, 0);
  transition: box-shadow 280ms ease, opacity 280ms ease;
  pointer-events: none;
}

.render-card:hover,
.render-card:focus-visible {
  transform: scale(1.01);
  border-color: rgba(216, 194, 166, 0.32);
  box-shadow:
    0 0 0 1px rgba(216, 194, 166, 0.18),
    0 18px 38px rgba(0, 0, 0, 0.28);
}

.render-card:hover::after,
.render-card:focus-visible::after {
  box-shadow:
    inset 0 0 0 1px rgba(216, 194, 166, 0.65),
    inset 0 0 24px rgba(216, 194, 166, 0.18);
}

.render-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  border: 0;
  background: transparent;
  color: rgba(244, 241, 237, 0.82);
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform 220ms ease, color 220ms ease, opacity 220ms ease;
  font-size: 2rem;
  line-height: 1;
  padding: 0.2rem;
}

.gallery-arrow:hover,
.gallery-arrow:focus-visible {
  transform: translateY(-50%) scale(1.04);
  color: rgba(216, 194, 166, 0.96);
}

.gallery-arrow-left {
  left: 0.5rem;
}

.gallery-arrow-right {
  right: 0.5rem;
}

.section-about,
.section-contact {
  border-top: 1px solid var(--soft-line);
}

/* .about-copy {
  max-width: none;
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
} */

/* SPLIT ABOUT SECTION */

.about-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: start;
}

.about-left {
  max-width: 40rem;
}

.about-right {
  max-width: 28rem;
  /* margin-top: 3rem;  */
}

/* TEXT STYLES */

.about-main {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
  margin-top: 1.5rem;
}

.about-note {
  margin-top: 2rem;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
}

.about-label {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}

.about-studio {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(18rem, 34rem) minmax(20rem, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.contact-stack {
  max-width: 34rem;
  margin-top: 0;
  padding-top: 0.6rem;
  padding-left: 0;
}

.contact-details-label {
  margin-bottom: 2rem;
  font-size: 0.76rem;
  letter-spacing: 0.24em;
}

.contact-reveal {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-line {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  color: var(--text);
  transition: color 250ms ease-in-out;
}

.contact-line:hover,
.contact-line:focus-visible {
  color: var(--accent);
}

.line-copy {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  align-items: flex-start;
  text-align: left;
}

.line-label {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.line-copy strong {
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.4;
}

.address-line .line-copy strong {
  max-width: 30rem;
  font-weight: 500;
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding-top: 1.6rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: transform 250ms ease, color 250ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-0.1rem);
  color: var(--accent);
}

.social-link svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.social-link[aria-label="Instagram"] svg {
  width: 1.38rem;
  height: 1.38rem;
}

.contact-map-inline {
  width: 100%;
  padding-top: 0.2rem;
}

.map-frame {
  position: relative;
  overflow: hidden;
  border-radius: 1.8rem;
  border: 1px solid var(--line);
  background: #050505;
}

.map-frame iframe {
  width: 100%;
  height: min(34rem, 56vw);
  border: 0;
  /* filter: grayscale(1) invert(0.92) contrast(0.88); */
  filter: grayscale(1) contrast(1.1) invert(0.94);
}

.map-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.2));
  pointer-events: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-media {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-media img {
  width: auto;
  max-width: 98vw;
  height: auto;
  max-height: 96vh;
  object-fit: contain;
  border-radius: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 36px 70px rgba(0, 0, 0, 0.44);
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.68);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.lightbox-close svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* .reveal.is-visible {
  opacity: 0;
  transform: translateY(10px);
  animation: heroFadeIn 0.8s ease forwards;
  animation-delay: 0.6s;
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
} */

.site-end {
  text-align: center;
  padding: 80px 20px 40px;
  color: rgba(255,255,255,0.4);
  font-size: 14px;
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .hero {
    min-height: 86vh;
  }

  .service-item h2 {
    max-width: none;
  }

  .service-index {
    font-size: clamp(2.4rem, 8vw, 4.4rem);
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .gallery-frame {
    padding: 0 2rem;
  }

  .gallery-arrow {
    font-size: 1.65rem;
  }

  .gallery-arrow-left {
    left: -0.4rem;
  }

  .gallery-arrow-right {
    right: -0.4rem;
  }

  .render-gallery-track {
    grid-auto-columns: calc((100% - 1.2rem) / 2);
  }

  .map-frame iframe {
    height: 24rem;
  }
}

@media (max-width: 640px) {
  .site-shell {
    padding: 0 1rem 3rem;
  }

  .section {
    padding: 3.25rem 0;
  }

  .hero-copy h1 {
    max-width: 11ch;
  }

  .service-item + .service-item {
    margin-top: 0rem;
    padding-top: 1.6rem;
  }

  .service-item {
    transform: none;
  }

  .service-item:hover,
  .service-item:focus-visible {
    transform: none;
  }

  .service-index {
    top: 0.6rem;
    right: 0;
    transform: none;
  }

  .service-item:hover .service-index,
  .service-item:focus-visible .service-index {
    transform: none;
  }

  .contact-stack {
    padding-left: 0;
  }

  .contact-details-label {
    margin-bottom: 1.5rem;
  }

  .social-links {
    padding-top: 1.6rem;
  }

  .gallery-frame {
    padding: 0 1.5rem;
  }

  .gallery-arrow {
    font-size: 1.4rem;
  }

  /* .gallery-arrow-left,
  .gallery-arrow-right {
    inset: auto;
  } */

  .gallery-arrow-left {
    left: 0;
  }

  .gallery-arrow-right {
    right: 0;
  }

  .render-gallery-track {
    grid-auto-columns: 100%;
  }
}
