/* ==========================================================================
   LOREMIPSUM.STUDIO — rebuild template (placeholder content)
   ========================================================================== */

:root {
  --pad: 1rem;
  --white: #FAFAFA;
  --black: #111111;
  --font-regular: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent !important;
}
html, body {
  height: 100%;
  color: var(--black);
  background: var(--white);
  font-family: var(--font-regular);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: -0.02rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}
html { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar { display: none; width: 0; height: 0; }
img { border: 0; vertical-align: middle; }
figure { margin: 0; }
ul, li { list-style: none; width: fit-content; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; letter-spacing: inherit; }
a:link, a:visited { color: inherit; text-decoration: none; }
a, div, img { outline: 0 !important; }
::selection { color: var(--white); background: var(--black); }

/* lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- utilities ---------- */
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.top { top: 0; } .left { left: 0; } .right { right: 0; } .bottom { bottom: 0; }
.medium, strong { font-weight: 500; }
.pad-b-0 { padding-bottom: calc(var(--pad) / 2); }
.pad { padding: var(--pad); }
.pad-t { padding-top: var(--pad); }
.pad-r { padding-right: var(--pad); }
.pad-l { padding-left: var(--pad); }
.flex { display: flex; }
.column { flex-direction: column; }
.between { justify-content: space-between; }
.jus-center { justify-content: center; }
.align-center { align-items: center; }
.center { text-align: center; }
.gap { gap: var(--pad); }
.inline-block { display: inline-block; }
.w-100 { width: 100%; }
.w-20 { width: 20%; }
.w-50 { width: 50%; }
.h-100 { height: 100%; }
.h-100-vh { height: 100dvh; }
.min-100-vh { min-height: 100dvh; }
.z-1 { z-index: 1; }
.z-99 { z-index: 99; }
.none { pointer-events: none; }
.auto { pointer-events: auto; }
.ab-center { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.balance { text-wrap: balance; }
.underline { text-decoration: underline; }
.desktop { display: block; }

/* ---------- type ---------- */
.font-S { font-size: 1.1rem; line-height: 1.15; }

/* ---------- header / menu ---------- */
.gradient-left {
  -webkit-mask: linear-gradient(90deg, #000 0%, transparent 100%);
          mask: linear-gradient(90deg, #000 0%, transparent 100%);
  background: var(--white);
}
.gradient-right {
  -webkit-mask: linear-gradient(-90deg, #000 0%, transparent 100%);
          mask: linear-gradient(-90deg, #000 0%, transparent 100%);
  background: var(--white);
}
.gradient-left, .gradient-right {
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
.w-33-vw { width: 40vw; }
.gradient-helper { width: 11vw; background: var(--white); }

/* staggered numbering in the menu */
.space-0 div:first-child { padding-right: 2.2rem; margin-left: 1.7rem; }
.space-1 div:first-child { padding-right: 2.2rem; margin-left: .7rem; }
.space-1 div:last-child  { padding-left: 3rem; }
.space-2 div:first-child { padding-right: 2.2rem; }
.space-2 div:last-child  { padding-left: 4.7rem; }

.nav-menu a { opacity: .6; transition: opacity .25s ease; }
.nav-menu a.current { opacity: 1 !important; }

/* giant wordmark behind everything */
.logo-background { top: 0; left: 0; }
.logo-background svg { width: 100%; fill: #F7F7F7; font-family: var(--font-regular); }

/* ---------- reveal ---------- */
.js-reveal { opacity: 0; transform: translateY(60px); }

/* ---------- home ---------- */
main { overflow-x: hidden; }
.home-gallery, .studio-gallery { padding: calc(var(--pad) * 5); }

.home-item img { width: auto; position: relative; }
.home-item:nth-child(1) img, .home-item:nth-child(4) img, .home-item:nth-child(5) img,
.home-item:nth-child(7) img, .home-item:nth-child(8) img { height: 60vh; }
.home-item:nth-child(2) img, .home-item:nth-child(3) img, .home-item:nth-child(6) img { height: 27vh; }
.home-item:nth-child(1) img { left: 10%; }
.home-item:nth-child(2) img { left: 60%; margin-top: -3%; }
.home-item:nth-child(3) img { left: 40%; margin-top: -1%; }
.home-item:nth-child(4) img { left: 60%; margin-top: -3%; }
.home-item:nth-child(5) img { left: 10%; margin-top: -15%; }
.home-item:nth-child(6) img { left: 50%; margin-top: -3%; }
.home-item:nth-child(7) img { left: 20%; margin-top: 5%; }
.home-item:nth-child(8) img { left: 35%; margin-top: 7%; }

/* ---------- services ---------- */
.services, .services-list, .service-block { min-width: 0; }
.service-title {
  display: block;
  width: 100%;
  text-align: center;
  padding: calc(var(--pad) * 2) 0;
}
.services-list .service-block:first-child .service-title { padding-top: 0; }

.service-gallery-wrap {
  height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.service-gallery-wrap.is-open { pointer-events: auto; }
.service-gallery-track {
  display: flex;
  gap: 10vh;
  width: max-content;
  cursor: grab;
}
.service-gallery-track:active { cursor: grabbing; }
.service-gallery-track.is-ready { transition: transform 1s linear; }
.service-image { flex: 0 0 auto; height: 30vh; }
.service-img { display: block; width: auto; height: 100%; user-select: none; -webkit-user-drag: none; }

/* ---------- studio ---------- */
.studio-gallery {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: calc(var(--pad) * 4);
}
.studio-item { width: 100%; }
.studio-img { width: 100%; height: auto; display: block; max-height: 25vh; object-fit: contain; }
.studio-item--placeholder { visibility: hidden; pointer-events: none; }

/* ---------- about ---------- */
.content-wrapper { width: 40%; margin: 0 auto; padding-top: 25vh; padding-bottom: 25vh; }
.text-format p { padding-bottom: var(--pad); }
.text-format p:last-child { padding-bottom: 0; }
.about-images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 80%; margin: 0 auto; }
.about-images img { width: 100%; height: auto; }

/* ---------- contact ---------- */
.page-contact .content-wrapper, .page-404 .content-wrapper { padding: 0; }
.logo-contact svg { width: 60px; height: 100%; fill: var(--black); font-family: var(--font-regular); }
.header-contact { display: flex; flex-direction: column; align-items: center; gap: calc(var(--pad) * 2); }
.header-contact img { width: 100%; height: 40vh; object-fit: contain; }

/* ---------- responsive ---------- */
@media screen and (min-width: 2501px) {
  .content-wrapper { width: 50%; }
}

@media screen and (max-width: 1600px) {
  .w-20 { width: 25%; }
  .font-S { font-size: .95rem; }
}

@media screen and (min-width: 1024px) {
  .nav-menu a:hover { opacity: 1; }
}

@media screen and (max-width: 1024px) {
  .w-50, .w-20, .w-33-vw { width: 100%; }
  .column-m { flex-direction: column; }
  .desktop { display: none; }
  .gradient-wrapper { height: 30%; }
  .gradient-left {
    -webkit-mask: linear-gradient(180deg, #000 0%, rgba(0,0,0,.8) 35%, transparent 100%);
            mask: linear-gradient(180deg, #000 0%, rgba(0,0,0,.8) 35%, transparent 100%);
  }
  .gradient-right {
    -webkit-mask: linear-gradient(0deg, #000 0%, rgba(0,0,0,.8) 35%, transparent 100%);
            mask: linear-gradient(0deg, #000 0%, rgba(0,0,0,.8) 35%, transparent 100%);
  }
  .site-header .w-20 { height: fit-content; padding: var(--pad); }
  .logo-background svg { transform: scale(1.5); }

  .content-wrapper { width: 80%; }

  .home-item:nth-child(1) img, .home-item:nth-child(4) img, .home-item:nth-child(5) img,
  .home-item:nth-child(7) img, .home-item:nth-child(8) img { height: 40vw; }
  .home-item:nth-child(2) img, .home-item:nth-child(3) img, .home-item:nth-child(6) img { height: 18vw; }
  .home-gallery { padding: 25vh var(--pad); }
  .home-item:nth-child(1) img { left: 0; }
  .home-item:nth-child(3) img { left: 30%; }
  .home-item:nth-child(5) img { left: 0; }
  .home-item:nth-child(7) img { left: 10%; margin-top: 3%; }
  .home-item:nth-child(8) img { margin-top: 5%; }

  .studio-gallery { padding: var(--pad); grid-template-columns: repeat(4, 1fr); }
  .service-gallery-track.is-ready { transition: none; }
}

@media screen and (max-width: 820px) {
  :root { --pad: .8rem; }
  .font-S { font-size: 1rem; line-height: 1.1; }
  .content-wrapper { width: 100%; }

  .space-0 div:first-child { padding-right: 2rem; margin-left: 1.5rem; }
  .space-1 div:first-child { padding-right: 2rem; margin-left: .7rem; }
  .space-1 div:last-child  { padding-left: 2.5rem; }
  .space-2 div:first-child { padding-right: 2rem; }
  .space-2 div:last-child  { padding-left: 4rem; }

  .service-title { padding-top: var(--pad); padding-bottom: var(--pad); }
  .studio-gallery { grid-template-columns: repeat(3, 1fr); gap: calc(var(--pad) * 3); }
}

@media screen and (max-width: 500px) {
  .about-images { width: 100%; }
  .logo-contact svg { width: 40px; }
  .header-contact img { height: 20vh; }
  .font-S { font-size: .9rem; }
  .service-gallery-track { gap: 10vw; }
  .service-image { height: 40vw; }
  .studio-gallery { grid-template-columns: repeat(2, 1fr); gap: calc(var(--pad) * 2); }
  .studio-img { max-height: 70vw; }
  .studio-gallery figure:nth-child(3n) { grid-column: 1 / -1; }
}

/* ==========================================================================
   Mobile optimisation (phones)
   ========================================================================== */
@media screen and (max-width: 1024px) {
  /* respect iPhone notch / home indicator */
  .site-header > .w-20:first-child { padding-top: calc(var(--pad) + env(safe-area-inset-top)); }
  .site-header > .w-20:nth-child(2) { padding-bottom: calc(var(--pad) + env(safe-area-inset-bottom)); }
}

@media screen and (max-width: 600px) {
  .font-S { font-size: .95rem; line-height: 1.2; }

  /* bigger touch targets in the menu, stagger stays intact */
  .nav-menu a { padding: .22rem 0; }
  .site-header .w-20 { padding: calc(var(--pad) * 1.1) var(--pad); }

  /* home: larger, still overlapping collage that fits the screen */
  .home-gallery { padding: 22vh var(--pad) 30vh; }
  .home-item:nth-child(1) img, .home-item:nth-child(4) img, .home-item:nth-child(5) img,
  .home-item:nth-child(7) img, .home-item:nth-child(8) img { height: 64vw; }
  .home-item:nth-child(2) img, .home-item:nth-child(3) img, .home-item:nth-child(6) img { height: 30vw; }
  .home-item:nth-child(1) img { left: 0; }
  .home-item:nth-child(2) img { left: 66%; margin-top: -6%; }
  .home-item:nth-child(3) img { left: 34%; margin-top: -2%; }
  .home-item:nth-child(4) img { left: 46%; margin-top: -4%; }
  .home-item:nth-child(5) img { left: 4%;  margin-top: -18%; }
  .home-item:nth-child(6) img { left: 62%; margin-top: -4%; }
  .home-item:nth-child(7) img { left: 14%; margin-top: 4%; }
  .home-item:nth-child(8) img { left: 40%; margin-top: 6%; }

  /* services: comfortable tap height, larger swipeable images */
  .services { padding: 24vh 0 30vh; }
  .service-title { padding: 1rem var(--pad); }
  .service-image { height: 58vw; }
  .service-gallery-track { gap: 6vw; touch-action: pan-y; }
  .service-gallery-wrap.is-open { padding: .4rem 0 .8rem; }

  /* studio */
  .studio-gallery { padding-top: 22vh; padding-bottom: 30vh; }

  /* about */
  .content-wrapper { padding-top: 22vh; padding-bottom: 30vh; }
  .about .text-format { max-width: 34em; margin: 0 auto; }
  .about-images { gap: .6rem; }

  /* contact */
  .page-contact .contact { padding: 22vh var(--pad) 30vh; }
  .header-contact img { height: 34vh; }
  .logo-contact svg { width: 48px; }
  .contact .text-format a { display: inline-block; padding: .15rem 0; }

}

/* phones held sideways: keep header compact */
@media screen and (max-width: 1024px) and (max-height: 500px) and (orientation: landscape) {
  .gradient-wrapper { height: 22%; }
  .site-header .w-20 { padding: .5rem var(--pad); }
  .service-image { height: 45vh; }
  .header-contact img { height: 45vh; }
}
