/* ============================================================
   SLIDE-WALL — photography template
   Wordmark-split intro that grows into a hero slideshow,
   followed by a dense masonry photo wall.
   ============================================================ */

:root {
  --sw-bg: #eeeeee;
  --sw-white: #ffffff;
  --sw-ink: #262626;
  --sw-ink-soft: #58585c;
  --sw-gap: 8px;
  --sw-font: "Quantico", Arial, sans-serif;
  --sw-nav-h: 52px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sw-bg);
  color: var(--sw-ink);
  font-family: var(--sw-font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

/* ============ FLOATING BRAND MARK ============ */
.sw-brand {
  position: fixed;
  top: 14px;
  left: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  line-height: 0.92;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 14px;
  color: #fff;
  mix-blend-mode: difference;
  padding: 6px 8px;
}
.sw-brand__line { white-space: nowrap; }

/* ============ NAV ============ */
.sw-nav-wrap {
  position: fixed;
  top: 8px;
  right: 16px;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sw-nav {
  background: var(--sw-white);
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  padding: 4px;
}

.sw-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.sw-nav__link,
.sw-nav__toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}

.sw-nav__link:hover,
.sw-nav__toggle:hover { background: var(--sw-bg); }

.sw-nav__item--dropdown { position: relative; }

.sw-nav__chev {
  font-size: 10px;
  transition: transform 0.2s;
}
.sw-nav__toggle[aria-expanded="true"] .sw-nav__chev { transform: rotate(180deg); }

.sw-nav__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--sw-white);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  padding: 8px;
  min-width: 170px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
}
.sw-nav__dropdown.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.sw-nav__dropdown .sw-nav__link { text-transform: none; font-weight: 600; padding: 10px 14px; }

.sw-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sw-white);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  position: relative;
}
.sw-menu-btn span,
.sw-menu-btn span::before,
.sw-menu-btn span::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  background: var(--sw-ink);
  transition: transform 0.2s, opacity 0.2s;
}
.sw-menu-btn span { top: 21px; }
.sw-menu-btn span::before { top: -6px; }
.sw-menu-btn span::after { top: 6px; }
.sw-menu-btn[aria-expanded="true"] span { background: transparent; }
.sw-menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.sw-menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.sw-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9997;
  background: var(--sw-white);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  transform: translateY(-100%);
  transition: transform 0.35s ease;
}
.sw-mobile-menu.is-open { transform: translateY(0); }
.sw-mobile-menu__link {
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ============ HERO ============ */
.sw-hero {
  position: relative;
  height: 100dvh;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sw-bg);
  overflow: hidden;
}

.sw-hero__word {
  display: flex;
  font-family: var(--sw-font);
  font-weight: 700;
  font-size: clamp(2.4rem, 9vw, 7rem);
  line-height: 0.88;
  color: var(--sw-ink);
  white-space: nowrap;
  z-index: 1;
}
.sw-hero__word--start { justify-content: flex-end; }
.sw-hero__word--end { justify-content: flex-start; }

.sw-letter { display: inline-block; will-change: transform; }

.sw-hero__box {
  position: relative;
  width: 6px;
  height: 60vh;
  flex: none;
  overflow: hidden;
  z-index: 2;
  background: var(--sw-ink);
}
.sw-hero__box.is--full {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 3;
}
.sw-hero__box.is--settled { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }

.sw-hero__box-inner {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.sw-slider { position: absolute; inset: 0; }
.sw-slider__list { position: absolute; inset: 0; overflow: hidden; }

.sw-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.sw-slide.is--current { opacity: 1; pointer-events: auto; }

.sw-slide__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.sw-slider__nav {
  position: absolute;
  left: 27px;
  bottom: 2.7rem;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sw-thumb {
  width: 7rem;
  aspect-ratio: 1.5;
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  padding: 0;
  transition: border-color 0.2s;
  flex: none;
}
.sw-thumb:hover { border-color: rgba(255, 255, 255, 0.6); }
.sw-thumb.is--current { border-color: #fff; }
.sw-thumb__img { width: 100%; height: 100%; object-fit: cover; }

.sw-hero__credit {
  position: absolute;
  right: 19px;
  bottom: 10px;
  z-index: 4;
  font-size: 12px;
  color: #fff;
  mix-blend-mode: difference;
  letter-spacing: 0.02em;
}

/* ============ MASONRY WALL ============ */
.sw-wall {
  background: var(--sw-bg);
  padding: var(--sw-gap) var(--sw-gap) 4em;
  position: relative;
  z-index: 5;
}

.sw-masonry {
  position: relative;
  --masonry-col: 3;
  --masonry-gap: var(--sw-gap);
}

.sw-masonry__item {
  overflow: hidden;
  background: #ddd;
}
.sw-masonry__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============ FOOTER ============ */
.sw-footer {
  background: var(--sw-white);
  padding: 70px 20px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.sw-footer__logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.sw-footer__links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}
.sw-footer__links a {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.sw-footer__links a:hover { text-decoration: underline; }

.sw-footer__social {
  display: flex;
  gap: 16px;
}
.sw-footer__social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, color 0.2s;
}
.sw-footer__social a:hover { background: var(--sw-ink); color: #fff; }

.sw-footer__copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--sw-ink-soft);
}
.sw-footer__credit { opacity: 0.75; }

/* ============ REDUCED MOTION / NO-JS SAFETY ============ */
.sw-hero.no-anim .sw-hero__word { display: none; }
.sw-hero.no-anim .sw-hero__box {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 991px) {
  .sw-masonry { --masonry-col: 3; }
}

@media (max-width: 767px) {
  .sw-nav { display: none; }
  .sw-menu-btn { display: block; }
  .sw-mobile-menu { display: flex; }
  .sw-masonry { --masonry-col: 1; }
  .sw-hero__word { font-size: clamp(1.6rem, 10vw, 3rem); }
  .sw-thumb { width: 4.6rem; }
  .sw-slider__nav { left: 14px; bottom: 1.6rem; gap: 0.35rem; }
  .sw-hero__credit { display: none; }
  .sw-brand { top: 12px; left: 12px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .sw-hero__word,
  .sw-hero__box,
  .sw-slide,
  .sw-slide__img { transition: none !important; animation: none !important; }
}
