* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  background: #eeeeee;
  color: #111;
  overflow: hidden;
}

.site-slider {
  width: 200vw;
  height: 100vh;
  display: flex;
  transform: translateX(0);
  transition: transform 1s cubic-bezier(.77, 0, .175, 1);
}

.site-slider.show-designers {
  transform: translateX(-100vw);
}

.page {
  width: 100vw;
  height: 100vh;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.home-page {
  background: #eeeeee;
}

/* SPLASH SCREEN */

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #1d1d1b;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.9s cubic-bezier(.22, 1, .36, 1),
    visibility 0.9s;
}

.splash-screen.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
}

.splash-logo {
  width: 36px;
  height: auto;
  filter: invert(1);
  opacity: 0;
  transform: translateX(74px);
  transition:
    opacity 0.65s cubic-bezier(.22, 1, .36, 1),
    transform 0.9s cubic-bezier(.22, 1, .36, 1);
}

.splash-logo.active {
  opacity: 1;
}

.splash-logo.move-left {
  transform: translateX(0);
}

.splash-words {
  display: flex;
  align-items: center;
  gap: 8px;
}

.splash-word {
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.5s cubic-bezier(.22, 1, .36, 1),
    transform 0.5s cubic-bezier(.22, 1, .36, 1);
}

.splash-word.active {
  opacity: 1;
  transform: translateY(0);
}

/* HOME HERO */

.hero-gallery {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #eeeeee;
}

.top-logo {
  position: absolute;
  top: 32px;
  left: 64px;
  z-index: 100;
  display: block;
  width: 72px;
  height: auto;
}

.top-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.gallery-stage {
  position: absolute;
  inset: 0;
  z-index: 5;
  perspective: 1600px;
  transform-style: preserve-3d;
}

.hero-copy {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 45;
  transform: translate(-50%, -50%);
  width: min(720px, 80vw);
  text-align: center;
  font-family: "Roboto Mono", monospace;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.28;
  letter-spacing: 0;
  color: #1d1d1b;
  pointer-events: none;
}

.copy-desktop {
  display: block;
}

.copy-mobile {
  display: none;
  font-size: 10px;
}

.gallery-item {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 170px;
  height: 230px;
  transform-origin: center center;
  will-change: transform, opacity;
  transition:
    transform 1s cubic-bezier(.22, 1, .36, 1),
    opacity 1s ease;
  cursor: pointer;
  pointer-events: auto;
  overflow: visible;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition:
    transform .45s cubic-bezier(.22, 1, .36, 1),
    filter .45s cubic-bezier(.22, 1, .36, 1);
  transform: scale(1);
}

.gallery-item:hover img {
  transform: scale(1.1);
  filter: brightness(.96);
}

/* BOTTOM MENU */

.bottom-menu {
  position: absolute;
  left: 64px;
  bottom: 72px;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  gap: 48px;
  font-size: 13px;
  line-height: 1.25;
}

.footer-accordion {
  width: 160px;
  display: flex;
  flex-direction: column;
}

.footer-link,
.footer-toggle {
  width: 100%;
  min-height: 34px;
  padding: 7px 0;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.14);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: #111;
  text-decoration: none;
}

.footer-link:hover,
.footer-toggle:hover {
  opacity: 0.6;
}

.footer-toggle span {
  margin-left: 4px;
}

.footer-instagram {
  display: none;
}

.footer-panel {
  display: none;
  min-width: 160px;
}

.footer-panel.active {
  display: block;
}

.services-panel {
  width: 160px;
  transform: translateY(-34px);
}

.services-panel p {
  margin: 0;
  min-height: 34px;
  padding: 7px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.14);
}

.contact-panel {
  gap: 48px;
  align-items: flex-start;
  transform: translateY(34px);
}

.contact-panel.active {
  display: flex;
}

.contact-column {
  display: flex;
  flex-direction: column;
}

.contact-left {
  width: 170px;
}

.contact-right {
  width: 340px;
}

.contact-row {
  min-height: 34px;
  display: flex;
  align-items: flex-start;
  padding-top: 7px;
  border-top: 0;
}

.contact-left .contact-row {
  width: 170px;
  border-top: 1px solid rgba(0, 0, 0, 0.14);
}

.contact-right .contact-row {
  width: 340px;
}

.contact-right .contact-row:first-child,
.contact-right .contact-row:nth-child(3) {
  border-top: 1px solid rgba(0, 0, 0, 0.14);
}

.contact-right .contact-row:nth-child(2),
.contact-right .contact-row:nth-child(4) {
  border-top: 0;
}

.contact-row p,
.contact-row span,
.copy-link {
  margin: 0;
  white-space: nowrap;
}

.phone-label-row {
  margin-top: 34px;
}

.copy-link {
  display: block;
  color: #111;
  text-decoration: none;
  cursor: pointer;
}

.copy-link:hover {
  text-decoration: underline;
}

/* RIGHT FOOTER */

.instagram-link {
  position: absolute;
  right: 64px;
  bottom: 98px;
  z-index: 100;
  font-size: 13px;
  color: #111;
  text-decoration: none;
}

.instagram-link:hover {
  opacity: 0.55;
}

.copyright {
  position: absolute;
  right: 64px;
  bottom: 72px;
  z-index: 100;
  font-size: 13px;
  line-height: 1.25;
  color: #111;
}

/* SWITCH */

.layout-switch {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

.layout-switch button {
  min-width: 92px;
  padding: 9px 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #111;
  font-size: 14px;
  cursor: pointer;
}

.layout-switch button.active {
  background: #000;
  color: #fff;
}

/* COPY MESSAGE */

.copy-message {
  position: fixed;
  left: 50%;
  bottom: 120px;
  z-index: 999;
  transform: translateX(-50%);
  padding: 8px 14px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.copy-message.active {
  opacity: 1;
}

/* DESIGNERS */

.designers-page {
  background: #1d1d1b;
  color: #1d1d1b;
  cursor: none;
}

.back-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 999;
  transform: translate(-50%, -50%);
  font-size: 18px;
  line-height: 1;
  color: #ffffff;
  pointer-events: none;
  opacity: 0.55;
}

.designers-back-mobile {
  display: none;
}

.designers-grid {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(1180px, 72vw);
  height: min(560px, 62vh);
  transform: translate(-50%, -50%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.photo-frame {
  position: relative;
  overflow: hidden;
  background: #1d1d1b;
}

.photo-track {
  position: absolute;
  left: 0;
  top: 0;
  width: 400%;
  height: 100%;
  display: flex;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.photo-track img {
  width: 25%;
  height: 100%;
  flex: 0 0 25%;
  object-fit: cover;
  display: block;
}

.photo-left .photo-track {
  transition: transform 1.05s cubic-bezier(.22, 1, .36, 1);
}

.photo-center .photo-track {
  transition: transform 1.35s cubic-bezier(.22, 1, .36, 1);
}

.photo-right .photo-track {
  transition: transform .88s cubic-bezier(.22, 1, .36, 1);
}

.designers-copy {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 5;
  width: 82%;
  transform: translateX(-50%);
  font-family: "Roboto Mono", monospace;
  font-weight: 300;
  font-size: calc(10.5px + 1pt);
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-align: left;
  pointer-events: none;
  white-space: pre-line;
}

.designers-copyright {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 20;
  transform: translateX(-50%);
  font-size: 13px;
  line-height: 1.25;
  color: #ffffff;
}

/* TABLET + PHONE */

@media (max-width: 1024px) {
  .hero-gallery {
    height: 100svh;
  }

  .top-logo {
    top: 54px;
    left: 50%;
    width: 82px;
    transform: translateX(-50%);
  }

  .hero-copy {
    top: 21%;
    width: calc(100% - 40px);
    font-size: 15px;
    line-height: 1.35;
    color: #9f9f9f;
  }

  .copy-desktop {
    display: none;
  }

  .copy-mobile {
    display: block;
  }

  .gallery-item {
    width: 150px;
    height: 205px;
  }

  .bottom-menu {
    left: 50%;
    bottom: calc(env(safe-area-inset-bottom) + 62px);
    transform: translateX(-50%);
    width: auto;
    display: block;
    font-size: 14px;
    z-index: 300;
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transition:
      opacity 0.75s cubic-bezier(.22, 1, .36, 1),
      clip-path 0.9s cubic-bezier(.22, 1, .36, 1);
  }

  .copyright {
    left: 50%;
    right: auto;
    bottom: calc(env(safe-area-inset-bottom) + 34px);
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    font-size: 14px;
    opacity: 1;
    transition: opacity 0.75s cubic-bezier(.22, 1, .36, 1);
  }

  .touch-intro-ui-hidden .bottom-menu {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }

  .touch-intro-ui-hidden .copyright {
    opacity: 0;
  }

  .touch-intro-gallery-hidden .gallery-item {
    opacity: 0 !important;
  }

  .footer-accordion {
    width: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 28px;
  }

  .footer-link,
  .footer-toggle {
    width: auto;
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: center;
    white-space: nowrap;
  }

  .footer-toggle span {
    display: none;
  }

  .footer-instagram {
    display: inline-block;
  }

  .footer-panel {
    position: fixed;
    left: 50%;
    bottom: calc(env(safe-area-inset-bottom) + 104px);
    transform: translateX(-50%);
    z-index: 500;
    min-width: auto;
    width: max-content;
    text-align: center;
    background: transparent;
  }

  .footer-panel.active {
    display: block !important;
  }

  .services-panel {
    transform: translateX(-50%);
  }

  .services-panel p {
    border: 0;
    padding: 3px 0;
    min-height: auto;
    font-size: 13px;
  }

  .contact-panel {
    transform: translateX(-50%);
  }

  .contact-panel.active {
    display: block !important;
  }

  .contact-left {
    display: none;
  }

  .contact-right {
    width: auto;
  }

  .contact-row {
    border: 0 !important;
    padding: 3px 0;
    min-height: auto;
    justify-content: center;
  }

  .contact-row:first-child {
    display: none;
  }

  .contact-row p {
    display: none;
  }

  .copy-link {
    font-size: 13px;
    padding: 3px 0;
  }

  .instagram-link {
    display: none;
  }

  .layout-switch {
    display: none;
  }

  .designers-page {
    cursor: pointer;
  }

  .back-cursor {
    display: none;
  }

  .designers-grid {
  width: calc(100vw - 40px);
  height: 52vh;
  top: 45%;
  gap: 10px;
  }

  .designers-copy {
    bottom: 20px;
    width: 88%;
    font-size: calc(8.5px + 1pt);
    line-height: 1.2;
  }

  .designers-copyright {
    bottom: calc(env(safe-area-inset-bottom) + 42px);
    font-size: 13px;
    color: #ffffff;
  }

  .designers-back-mobile {
    display: block;
    position: absolute;
    left: 50%;
    top: 13%;
    z-index: 80;
    transform: translateX(-50%);
    border: 0;
    background: transparent;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 34px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    opacity: 0.9;
  }
  
}

/* PHONE */

@media (max-width: 768px) {
  .top-logo {
    top: 54px;
    width: 78px;
  }

  .hero-copy {
    top: 21%;
    width: calc(100% - 34px);
    font-size: 13.5px;
    line-height: 1.35;
  }

  .gallery-item {
    width: 145px;
    height: 198px;
  }

  .bottom-menu {
    bottom: calc(env(safe-area-inset-bottom) + 68px);
    font-size: 13px;
  }

  .footer-accordion {
    gap: 24px;
  }

  .copyright {
    bottom: calc(env(safe-area-inset-bottom) + 40px);
    font-size: 13px;
  }

  .designers-grid {
    width: calc(100vw - 28px);
    height: 43vh;
    top: 44%;
    gap: 6px;
  }

  .designers-copy {
    bottom: 14px;
    width: 90%;
    font-size: calc(6.8px + 1pt);
    line-height: 1.14;
  }

  .designers-copyright{
    position:absolute;

    left:50%;
    bottom:calc(env(safe-area-inset-bottom) + 18px);

    transform:translateX(-50%);

    font-size:11px;
    letter-spacing:.04em;

    color:#fff;

    z-index:200;
  }
  
  .designers-back-mobile {
  display: block;
  position: absolute;

  left: 50%;
  top: auto;
  bottom: 15vh;

  transform: translateX(-50%);

  border: 0;
  background: transparent;

  color: rgba(255,255,255,.9);

  font-family: Arial, Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 100;

  line-height: 1;

  cursor: pointer;

  opacity: .8;

  transition: opacity .3s ease;
}

.designers-back-mobile:active{
    opacity:.4;
  }
}

/* SMALL PHONE */

@media (max-width: 420px) {
  .top-logo {
    top: 50px;
    width: 72px;
  }

  .hero-copy {
    top: 21%;
    font-size: 13px;
  }

  .gallery-item {
    width: 142px;
    height: 194px;
  }

  .bottom-menu {
    bottom: calc(env(safe-area-inset-bottom) + 68px);
    font-size: 13px;
  }

  .footer-accordion {
    gap: 20px;
  }

  .copyright {
    bottom: calc(env(safe-area-inset-bottom) + 40px);
    font-size: 13px;
  }
}

/* Mobile and tablet footer: centered panels opening above the menu. */
@media (max-width: 1024px) {
  .bottom-menu {
    width: calc(100% - 32px);
    max-width: 480px;
    clip-path: none;
    overflow: visible;
    transition: opacity .75s cubic-bezier(.22, 1, .36, 1);
  }

  .touch-intro-ui-hidden .bottom-menu {
    clip-path: none;
    pointer-events: none;
  }

  .footer-accordion {
    justify-content: center;
    gap: clamp(12px, 4vw, 28px);
  }

  .footer-link,
  .footer-toggle {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
  }

  .footer-panel,
  .footer-panel.active,
  .contact-panel.active {
    display: block !important;
    position: absolute;
    left: 50%;
    bottom: calc(100% + 16px);
    width: 100%;
    min-width: 0;
    max-height: calc(100svh - 180px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 20px 16px;
    background: #eeeeee;
    text-align: center;
    transform: translate(-50%, 20px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .35s ease, opacity .35s ease, visibility .35s;
  }

  .footer-panel.active {
    transform: translate(-50%, 0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .services-panel p {
    padding: 8px 0;
    line-height: 1.4;
  }

  .contact-panel .contact-right,
  .contact-panel .contact-right .contact-row {
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: center;
  }

  .contact-panel .copy-link {
    max-width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.4;
  }
}

@media (max-width: 1024px) and (prefers-reduced-motion: reduce) {
  .footer-panel { transition: none; }
}


/* Compact transparent footer panels on phone and tablet. */
@media (max-width: 1024px) {
  .footer-panel,
  .footer-panel.active,
  .contact-panel.active {
    width: min(100%, 340px);
    bottom: calc(100% + 6px);
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .contact-panel .contact-right .contact-row {
    min-height: 0;
    padding: 0;
    border: 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, .3) !important;
  }

  .contact-panel .copy-link {
    width: 100%;
    min-height: 0;
    padding: 7px 0;
    line-height: 1.3;
    font-size: 13px;
  }

  .services-panel p {
    min-height: 0;
    margin: 0;
    padding: 7px 0;
    border: 0;
    border-bottom: 1px solid rgba(0, 0, 0, .3);
    line-height: 1.3;
    font-size: 13px;
  }
}


/* Viewport and touch navigation, including rotated devices. */
@media (max-width: 1024px), (pointer: coarse) {
  html, body { width: 100%; height: 100%; }
  .site-slider { width: 200%; height: 100dvh; }
  .page { width: 100vw; height: 100dvh; }
  .hero-gallery { height: 100dvh; }
  .designers-page { background: #1d1d1b; touch-action: none; cursor: default; }
  .designers-back-mobile, .back-cursor { display: none !important; }
  .designers-copyright { bottom: calc(env(safe-area-inset-bottom) + 18px); }
}

@media (orientation: landscape) and (max-width: 1024px),
       (orientation: landscape) and (pointer: coarse) {
  .home-page .top-logo,
  .home-page .hero-copy,
  .home-page .bottom-menu,
  .home-page .instagram-link,
  .home-page .copyright,
  .home-page .layout-switch,
  .home-page .copy-message { display: none !important; }
  .gallery-item { width: min(150px, 24dvh); height: min(205px, 34dvh); }
  .designers-grid {
    top: 48%;
    width: calc(100vw - 48px - env(safe-area-inset-left) - env(safe-area-inset-right));
    height: 72dvh;
    gap: 10px;
  }
  .designers-copy { bottom: 10px; font-size: calc(clamp(6px, 1.8dvh, 10px) + 1pt); line-height: 1.15; }
  .designers-copyright { font-size: 10px; bottom: calc(env(safe-area-inset-bottom) + 6px); }
}


/* Landscape gallery: 165% of the previous image dimensions. */
@media (orientation: landscape) and (max-width: 1024px),
       (orientation: landscape) and (pointer: coarse) {
  .gallery-item {
    width: min(247.5px, 39.6dvh);
    height: min(338.25px, 56.1dvh);
  }
}

/* Paint Safari safe areas with the designers background as well. */
html.designers-visible,
html.designers-visible body {
  background-color: #1d1d1b;
}
