@charset "UTF-8";

:root {
  --ink: #0a0a0a;
  --paper: #f2f0ec;
  --muted: #9a958c;
  --line: rgba(242, 240, 236, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-ui: "Outfit", "Segoe UI", sans-serif;
  --pad-x: clamp(1rem, 4vw, 2rem);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--font-ui);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.lang-switch {
  position: fixed;
  top: calc(0.85rem + var(--safe-top));
  right: calc(0.85rem + var(--safe-right));
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  color: var(--paper);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  opacity: 0.45;
  min-width: 44px;
  min-height: 44px;
  padding: 0.65rem 0.45rem;
  transition: opacity 0.25s ease;
}

.lang-switch button:hover,
.lang-switch button.is-active {
  opacity: 1;
}

.lang-switch button.is-active {
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

/* -- Screen 1: logo only -- */
.intro {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  display: grid;
  place-items: center;
  background: #000;
  overflow: hidden;
  padding:
    calc(1rem + var(--safe-top))
    calc(1rem + var(--safe-right))
    calc(1rem + var(--safe-bottom))
    calc(1rem + var(--safe-left));
}

.intro-logo {
  width: min(220px, 42vw);
  height: auto;
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  animation: logo-in 1.35s var(--ease) 0.2s forwards;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: calc(1.5rem + var(--safe-bottom));
  transform: translateX(-50%);
  color: rgba(242, 240, 236, 0.7);
  text-decoration: none;
  opacity: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  animation: cue-in 0.9s var(--ease) 1.1s forwards, cue-bounce 1.8s ease-in-out 2s infinite;
}

.scroll-cue:hover {
  color: #fff;
}

.scroll-cue:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 6px;
}

/* -- Screen 2: Instagram + masonry -- */
.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  width: 100%;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  background: #000;
  overflow: hidden;
}

.split-insta,
.split-gallery {
  min-height: 0;
  min-width: 0;
}

.split-insta {
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border-right: 1px solid var(--line);
}

.split-insta-inner {
  width: min(360px, 100%);
  display: grid;
  gap: 1rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.split-insta h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.split-copy {
  margin: 0;
  color: rgba(242, 240, 236, 0.72);
  font-weight: 300;
  font-size: 0.98rem;
  max-width: 28ch;
}

.insta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  width: fit-content;
  min-height: 44px;
  text-decoration: none;
  color: var(--paper);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(242, 240, 236, 0.35);
  padding: 0.35rem 0;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.insta-link:hover {
  color: #fff;
  border-color: #fff;
}

.insta-icon {
  flex-shrink: 0;
}

.map-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  min-height: 40px;
  padding: 0.2rem 0;
  margin-top: 0.15rem;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.map-toggle:hover,
.map-toggle[aria-expanded="true"] {
  color: var(--paper);
  border-bottom-color: rgba(242, 240, 236, 0.28);
}

.map-toggle:focus-visible {
  outline: 1px solid rgba(242, 240, 236, 0.55);
  outline-offset: 4px;
}

.map-panel {
  display: grid;
  grid-template-rows: 0fr;
  background: #000;
  border-top: 1px solid transparent;
  transition:
    grid-template-rows 0.9s var(--ease),
    border-color 0.4s ease;
}

.map-panel.is-open {
  grid-template-rows: 1fr;
  border-top-color: var(--line);
}

.map-panel-inner {
  overflow: hidden;
  min-height: 0;
}

.map-frame {
  position: relative;
  width: 100%;
  height: min(52vh, 460px);
  overflow: hidden;
  background: #111;
  filter: grayscale(0.45) contrast(1.02) brightness(0.95);
  transform: translateY(100%);
  transition: transform 0.9s var(--ease);
  will-change: transform;
}

.map-panel.is-open .map-frame {
  transform: translateY(0);
}

.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-external {
  display: block;
  width: fit-content;
  margin: 0.9rem auto 1.15rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(242, 240, 236, 0.2);
  padding-bottom: 0.2rem;
  opacity: 0;
  transform: translateY(10px);
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    opacity 0.45s ease 0.35s,
    transform 0.55s var(--ease) 0.3s;
}

.map-panel.is-open .map-external {
  opacity: 1;
  transform: none;
}

.map-external:hover {
  color: var(--paper);
  border-color: rgba(242, 240, 236, 0.55);
}

.split-gallery {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 0.75rem;
}

.masonry {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-rows: repeat(3, 1fr);
  height: 100%;
  gap: 0.65rem;
}

.masonry figure {
  margin: 0;
  min-height: 0;
  overflow: hidden;
  background: #111;
}

.masonry .span-2 {
  grid-row: span 2;
}

.masonry img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (hover: hover) and (pointer: fine) {
  .masonry img {
    transition: transform 0.8s var(--ease);
  }

  .masonry figure:hover img {
    transform: scale(1.03);
  }
}

/* -- Footer -- */
.site-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.75rem;
  padding:
    1.35rem
    calc(var(--pad-x) + var(--safe-right))
    calc(1.35rem + var(--safe-bottom))
    calc(var(--pad-x) + var(--safe-left));
  background: #000;
  border-top: 1px solid var(--line);
  color: rgba(242, 240, 236, 0.72);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.site-foot p {
  margin: 0;
}

.foot-brand {
  color: var(--paper);
  text-transform: none;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.foot-place,
.foot-insta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.foot-place {
  text-decoration: none;
  color: rgba(242, 240, 236, 0.72);
  min-height: 44px;
  transition: color 0.25s ease;
}

.foot-place:hover {
  color: #fff;
}

.foot-insta {
  text-decoration: none;
  color: rgba(242, 240, 236, 0.85);
  min-height: 44px;
  transition: color 0.25s ease;
}

.foot-insta:hover {
  color: #fff;
}

@keyframes logo-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes cue-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes cue-bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

/* -- Tablet -- */
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .split-insta {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    min-height: 0;
    place-items: start center;
    padding:
      clamp(2.5rem, 8vw, 3.5rem)
      var(--pad-x)
      clamp(2rem, 6vw, 2.75rem);
  }

  .split-insta-inner {
    width: min(420px, 100%);
    gap: 0.85rem;
  }

  .split-insta h2 {
    font-size: clamp(1.7rem, 5.5vw, 2.2rem);
    max-width: 14ch;
  }

  .split-copy {
    max-width: 34ch;
    font-size: 1rem;
  }

  .split-gallery {
    height: min(78vw, 560px);
    padding: 0.55rem;
  }

  .masonry {
    gap: 0.45rem;
  }

  .site-foot {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 0.85rem 1rem;
  }

  .foot-brand {
    grid-column: 1 / -1;
  }
}

/* -- Phone -- */
@media (max-width: 640px) {
  .lang-switch {
    top: calc(0.35rem + var(--safe-top));
    right: calc(0.25rem + var(--safe-right));
    font-size: 0.68rem;
  }

  .intro-logo {
    width: min(168px, 48vw);
  }

  .scroll-cue {
    bottom: calc(1.1rem + var(--safe-bottom));
  }

  .split-insta {
    padding-top: clamp(2.75rem, 10vw, 3.5rem);
    padding-bottom: 2rem;
  }

  .split-insta-inner {
    gap: 0.75rem;
  }

  .eyebrow {
    font-size: 0.68rem;
  }

  .split-insta h2 {
    font-size: clamp(1.55rem, 7vw, 1.9rem);
  }

  .split-copy {
    font-size: 0.95rem;
    max-width: 30ch;
  }

  .insta-link {
    margin-top: 0.35rem;
    font-size: 0.92rem;
  }

  .map-toggle {
    font-size: 0.78rem;
  }

  .map-frame {
    height: min(48vh, 340px);
  }

  .split-gallery {
    height: min(92vw, 420px);
    padding: 0.45rem;
  }

  .masonry {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1.25fr 0.95fr 0.95fr;
    gap: 0.35rem;
  }

  .site-foot {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    padding-top: 1.25rem;
    padding-bottom: calc(1.4rem + var(--safe-bottom));
    font-size: 0.74rem;
  }

  .foot-brand {
    font-size: 0.86rem;
  }

  .foot-place,
  .foot-insta {
    width: 100%;
  }

  .foot-insta {
    align-items: center;
  }
}

/* -- Small phones -- */
@media (max-width: 380px) {
  .intro-logo {
    width: min(148px, 54vw);
  }

  .split-gallery {
    height: min(100vw, 380px);
  }

  .split-copy {
    font-size: 0.9rem;
  }
}

/* -- Landscape phones -- */
@media (max-height: 480px) and (orientation: landscape) {
  .intro-logo {
    width: min(140px, 28vw);
  }

  .scroll-cue {
    bottom: calc(0.6rem + var(--safe-bottom));
    width: 40px;
    height: 40px;
  }

  .split {
    grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.15fr);
    height: 100svh;
    height: 100dvh;
    overflow: hidden;
  }

  .split-insta {
    border-right: 1px solid var(--line);
    border-bottom: 0;
    place-items: center;
    padding: 1rem 1.1rem;
    min-height: 0;
  }

  .split-insta-inner {
    gap: 0.55rem;
  }

  .split-insta h2 {
    font-size: 1.25rem;
    max-width: none;
  }

  .split-copy {
    font-size: 0.85rem;
    max-width: 28ch;
  }

  .insta-link {
    margin-top: 0.2rem;
    min-height: 36px;
  }

  .split-gallery {
    height: 100%;
    padding: 0.4rem;
  }

  .site-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.25rem;
  }

  .foot-brand {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .intro-logo,
  .scroll-cue {
    opacity: 1;
    transform: none;
  }

  .map-panel {
    transition: none;
  }
}
