/* ============================================
   ALPEN HOMES — Hero
   ============================================ */

:root {
  --color-bg: #0a1814;
  --color-deep: #051310;
  --color-brand: #0a3d3a;
  --color-brand-light: #1d5e57;
  --color-accent: #d4b87a;
  --color-accent-warm: #e8c98a;
  --color-cream: #f4ede1;
  --color-text: #f4ede1;
  --color-text-dim: rgba(244, 237, 225, 0.68);
  --color-text-faint: rgba(244, 237, 225, 0.4);
  --color-line: rgba(244, 237, 225, 0.18);

  --font-display: "Fraunces", "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --pad-x: clamp(1.25rem, 4vw, 4rem);
  --nav-h: 88px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  font-weight: 400;
  overflow-x: hidden;
}

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

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

/* ============================================
   FLOATING NAV
   ============================================ */
.floatnav {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  translate: -50% 0;
  z-index: 100;
  width: min(calc(100% - 2.5rem), 860px);

  /* hidden by default — JS adds .is-visible */
  opacity: 0;
  transform: translateY(-16px);
  pointer-events: none;
  transition:
    opacity 0.5s var(--ease-out),
    transform 0.5s var(--ease-out);
}

.floatnav.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.floatnav__inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem 0.625rem 1.25rem;
  background: rgba(10, 24, 20, 0.72);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid rgba(244, 237, 225, 0.1);
  border-radius: 999px;
  box-shadow:
    0 8px 32px rgba(5, 19, 16, 0.55),
    0 1px 0 rgba(244, 237, 225, 0.06) inset;
}

.floatnav__brand {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  transition: opacity 0.3s var(--ease-out);
}
.floatnav__brand:hover { opacity: 0.75; }

.floatnav__logo {
  height: 22px;
  width: auto;
  filter: brightness(0) invert(1);
}

.floatnav__links {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  margin-left: 0.5rem;
  flex: 1;
}

.floatnav__links a {
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(244, 237, 225, 0.62);
  border-radius: 999px;
  transition: color 0.3s var(--ease-out), background 0.3s var(--ease-out);
  white-space: nowrap;
}

.floatnav__links a:hover {
  color: var(--color-cream);
  background: rgba(244, 237, 225, 0.07);
}

.floatnav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.125rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-brand);
  background: var(--color-cream);
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.35s var(--ease-out), color 0.35s var(--ease-out);
}

.floatnav__cta svg {
  width: 13px;
  height: 13px;
  transition: transform 0.35s var(--ease-out);
}

.floatnav__cta:hover {
  background: var(--color-accent);
  color: var(--color-brand);
}
.floatnav__cta:hover svg { transform: translateX(3px); }

.floatnav__toggle {
  display: none;
  width: 36px;
  height: 36px;
  background: rgba(244,237,225,0.07);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
}
.floatnav__toggle span {
  display: block;
  width: 14px;
  height: 1px;
  background: var(--color-cream);
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

/* active (open) state */
.floatnav.menu-open .floatnav__toggle span:nth-child(1) {
  transform: translateY(2.5px) rotate(45deg);
}
.floatnav.menu-open .floatnav__toggle span:nth-child(2) {
  transform: translateY(-2.5px) rotate(-45deg);
}

/* mobile dropdown */
@media (max-width: 720px) {
  .floatnav__links { display: none; }
  .floatnav__cta   { display: none; }
  .floatnav__toggle { display: inline-flex; margin-left: auto; }
  .floatnav__toggle.is-open span:nth-child(1) { transform: translateY(2.5px) rotate(45deg); }
  .floatnav__toggle.is-open span:nth-child(2) { transform: translateY(-2.5px) rotate(-45deg); }

  .floatnav.menu-open .floatnav__inner {
    border-radius: 1.25rem;
    flex-wrap: wrap;
    padding-bottom: 0.875rem;
  }

  .floatnav.menu-open .floatnav__links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0.125rem;
    padding: 0.5rem 0 0.25rem;
    border-top: 1px solid rgba(244,237,225,0.08);
    margin-left: 0;
  }

  .floatnav.menu-open .floatnav__cta {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    margin-top: 0.25rem;
  }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 0 var(--pad-x);
  isolation: isolate;
  overflow: hidden;
  color: var(--color-cream);
}

/* --- Background media --- */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
  animation: kenburns 24s var(--ease-in-out) infinite alternate;
}

@keyframes kenburns {
  0% {
    transform: scale(1.08) translate(0, 0);
  }
  100% {
    transform: scale(1.18) translate(-1.5%, -1%);
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(5, 19, 16, 0.72) 0%,
      rgba(5, 19, 16, 0.32) 30%,
      rgba(5, 19, 16, 0.18) 55%,
      rgba(5, 19, 16, 0.78) 100%
    ),
    linear-gradient(
      90deg,
      rgba(10, 61, 58, 0.45) 0%,
      rgba(10, 61, 58, 0) 45%,
      rgba(5, 19, 16, 0.35) 100%
    );
}

.hero__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 45%,
    transparent 35%,
    rgba(5, 19, 16, 0.55) 100%
  );
  pointer-events: none;
}

.hero__grain {
  position: absolute;
  inset: -50%;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.07;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 2;
  animation: grain 8s steps(6) infinite;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-2%, 1%); }
  40% { transform: translate(1%, -2%); }
  60% { transform: translate(-1%, 2%); }
  80% { transform: translate(2%, -1%); }
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: relative;
  z-index: 1000;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  height: var(--nav-h);
  padding-top: 1rem;
  animation: fadeDown 1s var(--ease-out) 0.2s both;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  color: var(--color-cream);
  transition: opacity 0.3s var(--ease-out);
  isolation: isolate;
}

.nav__brand:hover { opacity: 0.85; }

.nav__logo {
  height: 36px;
  width: auto;
  display: block;
  /* PNG z alpha — brightness(0) → wszystko czarne, invert(1) → czysta biel.
     Piksele przezroczyste pozostają bez zmian. */
  filter: brightness(0) invert(1);
  transition: opacity 0.3s var(--ease-out);
}

.nav__brand:hover .nav__logo { opacity: 0.8; }

@media (max-width: 560px) {
  .nav__logo { height: 28px; }
}

.nav__links {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  justify-self: center;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  font-weight: 400;
}

.nav__links a {
  position: relative;
  padding: 0.5rem 0;
  color: var(--color-text-dim);
  transition: color 0.3s var(--ease-out);
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.25rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}

.nav__links a:hover {
  color: var(--color-cream);
}

.nav__links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav__location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-dim);
}

.nav__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 0 rgba(212, 184, 122, 0.6);
  animation: pulse 2.4s var(--ease-out) infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(212, 184, 122, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(212, 184, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 184, 122, 0); }
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.nav__toggle span {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--color-cream);
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile menu toggle — X animation */
.nav__toggle span {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav__toggle.is-open span:nth-child(1) {
  transform: translateY(2.5px) rotate(45deg);
}
.nav__toggle.is-open span:nth-child(2) {
  transform: translateY(-2.5px) rotate(-45deg);
}

/* ============================================
   MOBILE MENU OVERLAY
   ============================================ */
.mobile-menu {
  display: flex;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  height: auto;
  max-height: calc(55vh - var(--nav-h));
  z-index: 998;
  background: linear-gradient(
    to bottom,
    rgba(5, 19, 16, 0) 0%,
    rgba(5, 19, 16, 0.6) 25%,
    rgba(5, 19, 16, 0.88) 50%,
    rgba(5, 19, 16, 0.92) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column;
  padding: 0 var(--pad-x) 2rem;
  border-bottom-left-radius: 1.25rem;
  border-bottom-right-radius: 1.25rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  /* closed state */
  clip-path: inset(0 0 100% 0);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: clip-path 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.3s ease,
              visibility 0s linear 0.45s;
}

.mobile-menu.is-open {
  clip-path: inset(0 0 0% 0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: clip-path 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.3s ease,
              visibility 0s linear 0s;
}

/* staggered links fade-in */
.mobile-menu__links a {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s;
}

.mobile-menu.is-open .mobile-menu__links a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.is-open .mobile-menu__links a:nth-child(1) { transition-delay: 0.15s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(2) { transition-delay: 0.22s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(3) { transition-delay: 0.29s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(4) { transition-delay: 0.36s; }

.mobile-menu.is-open .mobile-menu__cta {
  animation: fadeUp 0.35s ease 0.42s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding-top: 1rem;
  flex-shrink: 0;
  border-bottom: 1px solid var(--color-line);
}

.mobile-menu__brand img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}

.mobile-menu__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-menu__close span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--color-cream);
}

.mobile-menu__close span:nth-child(1) {
  transform: translateY(0.75px) rotate(45deg);
}
.mobile-menu__close span:nth-child(2) {
  transform: translateY(-0.75px) rotate(-45deg);
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  justify-content: center;
  gap: 0;
}

.mobile-menu__links a {
  display: block;
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-cream);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--color-line);
}

.mobile-menu__links a:first-child {
  border-top: none;
}

.mobile-menu__links a:hover {
  color: var(--color-accent);
}

.mobile-menu__cta {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.85rem 2rem;
  background: var(--color-brand);
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--color-cream);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  flex-shrink: 0;
  transition: background 0.25s, color 0.25s;
}

.mobile-menu__cta:hover {
  background: var(--color-cream);
  color: var(--color-deep);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  transition: all 0.4s var(--ease-out);
  white-space: nowrap;
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.4s var(--ease-out);
}

.btn:hover svg { transform: translateX(4px); }

.btn--primary {
  position: relative;
  padding: 1.125rem 1.75rem;
  background: var(--color-cream);
  color: var(--color-brand);
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
}

.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-accent);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-out);
  z-index: -1;
}

.btn--primary:hover::before { transform: translateY(0); }

.btn--ghost {
  padding: 0.75rem 1.25rem;
  color: var(--color-cream);
  border: 1px solid var(--color-line);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(244, 237, 225, 0.04);
}

.btn--ghost:hover {
  border-color: var(--color-cream);
  background: rgba(244, 237, 225, 0.1);
}

.btn--text {
  color: var(--color-cream);
  font-weight: 400;
  padding: 0.5rem 0;
}

.btn--text:hover { color: var(--color-accent); }

.btn__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-line);
  margin-right: 0.25rem;
  transition: all 0.4s var(--ease-out);
}

.btn__play svg {
  width: 12px;
  height: 12px;
  transform: translateX(1px);
}

.btn--text:hover .btn__play {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-brand);
}
.btn--text:hover .btn__play svg { transform: translateX(1px) !important; }

/* ============================================
   HERO CONTENT
   ============================================ */
.hero__inner {
  position: relative;
  z-index: 5;
  align-self: center;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(2rem, 6vh, 5rem) 0;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-bottom: clamp(1.5rem, 3vh, 2.5rem);
  animation: fadeUp 1s var(--ease-out) 0.4s both;
}

.hero__eyebrow-line {
  width: 48px;
  height: 1px;
  background: var(--color-accent);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.75rem, 7.5vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--color-cream);
  margin-bottom: clamp(1.5rem, 3vh, 2rem);
  max-width: 18ch;
}

.hero__title .line {
  display: block;
  overflow: hidden;
}

.hero__title .word {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  animation: wordReveal 1.2s var(--ease-out) forwards;
  margin-right: 0.18em;
}

.hero__title .word.italic {
  font-style: italic;
  font-variation-settings: "opsz" 144;
  color: var(--color-accent);
  font-weight: 300;
}

.hero__title .line--accent .word { font-style: normal; }

/* Stagger word animation */
.hero__title .line:nth-child(1) .word:nth-child(1) { animation-delay: 0.5s; }
.hero__title .line:nth-child(1) .word:nth-child(2) { animation-delay: 0.6s; }
.hero__title .line:nth-child(2) .word:nth-child(1) { animation-delay: 0.7s; }
.hero__title .line:nth-child(2) .word:nth-child(2) { animation-delay: 0.8s; }
.hero__title .line:nth-child(2) .word:nth-child(3) { animation-delay: 0.85s; }
.hero__title .line:nth-child(3) .word:nth-child(1) { animation-delay: 0.95s; }
.hero__title .line:nth-child(3) .word:nth-child(2) { animation-delay: 1.0s; }
.hero__title .line:nth-child(3) .word:nth-child(3) { animation-delay: 1.05s; }
.hero__title .line:nth-child(3) .word:nth-child(4) { animation-delay: 1.1s; }
.hero__title .line:nth-child(3) .word:nth-child(5) { animation-delay: 1.15s; }

@keyframes wordReveal {
  0% {
    transform: translateY(110%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.hero__lede {
  max-width: 38ch;
  font-size: clamp(0.95rem, 1.1vw, 1.0625rem);
  line-height: 1.65;
  color: var(--color-text-dim);
  margin-bottom: clamp(2rem, 4vh, 3rem);
  animation: fadeUp 1s var(--ease-out) 1.3s both;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  animation: fadeUp 1s var(--ease-out) 1.5s both;
}

/* ============================================
   HERO META STRIP
   ============================================ */
.hero__meta {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, auto) 1fr;
  align-items: end;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--color-line);
  animation: fadeUp 1s var(--ease-out) 1.8s both;
}

.hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hero__meta-num {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 300;
  line-height: 1;
  color: var(--color-cream);
  letter-spacing: -0.02em;
}

.hero__meta-num--accent {
  color: var(--color-accent);
}

.hero__meta-unit {
  font-size: 0.55em;
  color: var(--color-text-dim);
  margin-left: 0.15em;
  font-style: italic;
}

.hero__meta-item--featured .hero__meta-num {
  color: var(--color-accent);
}

.hero__meta-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

.hero__scroll {
  justify-self: end;
  align-self: end;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  transition: color 0.3s var(--ease-out);
}

.hero__scroll:hover { color: var(--color-cream); }

.hero__scroll-line {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 1px;
  background: var(--color-line);
  overflow: hidden;
}

.hero__scroll-line span {
  position: absolute;
  inset: 0;
  background: var(--color-accent);
  transform: translateX(-100%);
  animation: scrollLine 2.4s var(--ease-in-out) infinite;
}

@keyframes scrollLine {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* ============================================
   MANIFESTO
   ============================================ */
.manifesto {
  position: relative;
  background: var(--color-deep);
  color: var(--color-cream);
  padding: clamp(6rem, 14vh, 11rem) var(--pad-x);
  overflow: hidden;
  isolation: isolate;
}

.manifesto::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 20% 10%,
      rgba(10, 61, 58, 0.4) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse at 85% 90%,
      rgba(212, 184, 122, 0.08) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.manifesto__bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.manifesto__bg-word {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(12rem, 32vw, 32rem);
  letter-spacing: -0.04em;
  line-height: 0.8;
  color: var(--color-cream);
  opacity: 0.025;
  white-space: nowrap;
  user-select: none;
}

.manifesto__inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: clamp(2.5rem, 5vh, 4rem);
}

.manifesto__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-text-dim);
}

.manifesto__eyebrow-line {
  width: 48px;
  height: 1px;
  background: var(--color-accent);
}

.manifesto__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.25rem, 6vw, 5.75rem);
  line-height: 1.05;
  letter-spacing: -0.022em;
  color: var(--color-cream);
  display: grid;
  gap: clamp(0.5rem, 1.5vh, 1rem);
}

.manifesto__phrase {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: clamp(1rem, 2vw, 2.5rem);
  padding: 0.25em 0;
  border-bottom: 1px solid rgba(244, 237, 225, 0.08);
  opacity: 0;
  filter: blur(14px);
  transform: translateY(16px);
  transition:
    opacity 0.9s var(--ease-out),
    filter 0.9s var(--ease-out),
    transform 0.9s var(--ease-out),
    border-color 0.6s var(--ease-out);
}

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

@media (prefers-reduced-motion: reduce) {
  .manifesto__phrase {
    filter: none;
    transform: none;
    opacity: 1;
  }
}

.manifesto__title.is-visible .manifesto__phrase:nth-child(1) {
  transition-delay: 0s;
}
.manifesto__title.is-visible .manifesto__phrase:nth-child(2) {
  transition-delay: 0.28s;
}
.manifesto__title.is-visible .manifesto__phrase:nth-child(3) {
  transition-delay: 0.56s;
}
.manifesto__title.is-visible .manifesto__phrase:nth-child(4) {
  transition-delay: 0.84s;
}

.manifesto__phrase:hover {
  border-bottom-color: rgba(244, 237, 225, 0.25);
}

.manifesto__phrase:last-child {
  border-bottom: none;
}

.manifesto__label {
  font-family: var(--font-sans);
  font-size: clamp(0.75rem, 1vw, 0.95rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--color-text-faint);
  align-self: center;
  padding-top: 0.4em;
}

.manifesto__text {
  display: block;
  transition: transform 0.6s var(--ease-out), color 0.4s var(--ease-out);
}

.manifesto__phrase:hover .manifesto__text {
  transform: translateX(8px);
}

.manifesto__text--italic {
  font-style: italic;
  font-variation-settings: "opsz" 144;
}

.manifesto__phrase--brand .manifesto__text {
  color: var(--color-brand-light);
}

.manifesto__phrase--accent .manifesto__text {
  color: var(--color-accent);
  font-style: italic;
  font-variation-settings: "opsz" 144;
}

.manifesto__divider {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--color-accent);
  margin-top: 1rem;
}

.manifesto__divider::before,
.manifesto__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 184, 122, 0.4),
    transparent
  );
  max-width: 240px;
}

.manifesto__divider svg {
  width: 28px;
  height: 24px;
}

.manifesto__divider-logo {
  height: 22px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

@media (max-width: 700px) {
  .manifesto__phrase {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
  .manifesto__label { padding-top: 0; }
}

/* ============================================
   OUR PROJECTS
   ============================================ */
.projects {
  background: var(--color-deep);
  padding: clamp(5rem, 10vh, 9rem) var(--pad-x);
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 6vh, 5rem);
}

/* --- Header --- */
.projects__header {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 2rem;
}

.projects__eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-bottom: 1.25rem;
}

.projects__eyebrow-line {
  width: 48px;
  height: 1px;
  background: var(--color-accent);
}

.projects__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--color-cream);
}

.projects__title em {
  font-style: italic;
  font-variation-settings: "opsz" 144;
  color: var(--color-accent);
}

.projects__header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  padding-bottom: 0.5rem;
}

.projects__intro {
  font-size: clamp(0.9rem, 1vw, 1rem);
  line-height: 1.7;
  color: var(--color-text-dim);
  max-width: 38ch;
}

/* --- Grid --- */
.projects__grid {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 1rem;
  height: clamp(480px, 70vh, 680px);
}

.projects__stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
}

/* --- Project card base --- */
.proj-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: var(--color-bg);
}

.proj-card__media {
  position: absolute;
  inset: 0;
}

.proj-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  transition: transform 0.9s var(--ease-out);
}

.proj-card:hover .proj-card__media img {
  transform: scale(1.12);
}

/* no overlay — tekst bezpośrednio na zdjęciu */
.proj-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background: none;
  transition: background 0.5s var(--ease-out);
}

.proj-card:hover .proj-card__overlay {
  background: none;
}

/* --- Meta row (top) --- */
.proj-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.proj-card__tag {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-cream);
  padding: 0.35em 0.85em;
  border: 1px solid rgba(244,237,225,0.35);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: rgba(244,237,225,0.07);
}

.proj-card__year {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--color-text-dim);
}

/* --- Info (bottom) --- */
.proj-card__info {
  display: inline-flex;
  flex-direction: column;
  gap: 0.625rem;
  align-items: flex-end;
  align-self: flex-end;
  text-align: right;
  background: rgba(10, 24, 20, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border: 1px solid rgba(244, 237, 225, 0.1);
  border-radius: 10px;
  padding: 0.875rem 1rem;
}

.proj-card__name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-cream);
}

.proj-card--tall .proj-card__name,
.proj-card--landscape .proj-card__name {
  font-size: clamp(1.1rem, 1.6vw, 1.5rem);
}

.proj-card__details {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.625rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--color-text-dim);
  flex-wrap: wrap;
  text-align: right;
}

.proj-card__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--color-text-faint);
  flex-shrink: 0;
}

.proj-card__status {
  color: var(--color-accent);
  font-style: italic;
  letter-spacing: 0.03em;
  font-size: 0.75rem;
}

.proj-card__status--done {
  color: var(--color-accent-warm);
}

.proj-card__status--concept {
  color: var(--color-text-dim);
}

.proj-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin-top: 0.25rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.proj-card__link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.4s var(--ease-out);
}

.proj-card:hover .proj-card__link {
  opacity: 1;
  transform: translateY(0);
}

.proj-card:hover .proj-card__link svg {
  transform: translateX(4px);
}

/* --- Ghost index number --- */
.proj-card__index {
  position: absolute;
  bottom: 1.25rem;
  right: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(4rem, 7vw, 7rem);
  font-weight: 300;
  line-height: 1;
  color: rgba(244,237,225,0.06);
  letter-spacing: -0.05em;
  pointer-events: none;
  user-select: none;
  transition: color 0.5s var(--ease-out);
}

.proj-card:hover .proj-card__index {
  color: rgba(244,237,225,0.1);
}

/* --- Cards wrapper — spaja obie siatki z gap 1rem --- */
.projects__cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

/* --- Second row: two equal cards --- */
.projects__row {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  height: clamp(300px, 38vh, 440px);
}

@media (max-width: 640px) {
  .projects__row {
    grid-template-columns: 1fr;
    height: auto;
    grid-template-rows: 260px 260px;
  }
}

/* --- Featured horizontal project card --- */
.proj-featured {
  max-width: 1280px;
  margin: 1rem auto 0;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 480px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: var(--color-bg);
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.proj-featured.is-visible { opacity: 1; transform: translateY(0); }

.proj-featured__media {
  position: relative;
  overflow: hidden;
}
.proj-featured__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  transition: transform 0.9s var(--ease-out);
}
.proj-featured:hover .proj-featured__media img { transform: scale(1.1); }

.proj-featured__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5,19,16,0.18) 0%,
    rgba(5,19,16,0.0)  40%,
    rgba(5,19,16,0.55) 100%
  );
  transition: background 0.5s var(--ease-out);
}
.proj-featured:hover .proj-featured__overlay {
  background: linear-gradient(
    180deg,
    rgba(5,19,16,0.25) 0%,
    rgba(5,19,16,0.0)  40%,
    rgba(5,19,16,0.65) 100%
  );
}

.proj-featured__content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(2rem, 4vw, 3.5rem);
  background: var(--color-bg);
  justify-content: center;
}

.proj-featured__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.proj-featured__index {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-family: var(--font-display);
  font-size: clamp(5rem, 8vw, 8rem);
  font-weight: 300;
  line-height: 1;
  color: rgba(244,237,225,0.05);
  letter-spacing: -0.05em;
  pointer-events: none;
  user-select: none;
}

.proj-featured__name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.25rem, 3.5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--color-cream);
}
.proj-featured__name em {
  font-style: italic;
  font-variation-settings: "opsz" 144;
  color: var(--color-accent);
}

.proj-featured__desc {
  font-size: clamp(0.875rem, 1vw, 0.9375rem);
  line-height: 1.75;
  color: var(--color-text-dim);
  max-width: 40ch;
}

.proj-featured__cta {
  margin-top: 0.5rem;
  align-self: flex-start;
}

@media (max-width: 900px) {
  .proj-featured {
    grid-template-columns: 1fr;
    grid-template-rows: 280px auto;
  }
  .proj-featured__index { display: none; }
}

/* --- CTA strip --- */
.projects__cta {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 2.5rem;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  flex-wrap: wrap;
}

.projects__cta-label {
  font-size: clamp(0.875rem, 1.1vw, 1rem);
  color: var(--color-text-dim);
  max-width: 44ch;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .projects__grid {
    grid-template-columns: 1fr 1fr;
    height: auto;
  }
  .proj-card--featured { min-height: 420px; }
  .projects__stack { grid-template-rows: 1fr 1fr; min-height: 420px; }
}

@media (max-width: 768px) {
  .projects__header { grid-template-columns: 1fr; }
  .projects__header-right { padding-bottom: 0; }

  .projects__grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .proj-card--featured { min-height: 340px; }
  .projects__stack { grid-template-rows: unset; grid-template-columns: 1fr 1fr; min-height: 220px; }
  .proj-card--tall,
  .proj-card--landscape { min-height: 220px; }

  .proj-card__link { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .projects__stack { grid-template-columns: 1fr; }
  .projects__cta { flex-direction: column; align-items: flex-start; }
}

/* ============================================
   JOURNEY CARDS
   ============================================ */
/* ============================================
   STUDIO SECTION
   ============================================ */
.studio {
  background: var(--color-bg);
  padding: clamp(5rem, 10vh, 9rem) var(--pad-x);
  border-top: 1px solid rgba(244, 237, 225, 0.06);
}

.studio__inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.studio__eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.7rem;
  font-family: var(--font-ui);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.studio__eyebrow-line {
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--color-accent);
  flex-shrink: 0;
}

.studio__body {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.studio__lead {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 300;
  line-height: 1.35;
  color: var(--color-cream);
  font-style: italic;
}

.studio__text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 680px;
}

.studio__text p {
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.75;
  color: var(--color-text-dim);
  font-family: var(--font-ui);
}

.journey {
  background: var(--color-bg);
  padding: clamp(5rem, 10vh, 9rem) var(--pad-x);
}

.journey__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--color-line);
  border: 1.5px solid var(--color-line);
  border-radius: 16px;
  overflow: hidden;
}

/* --- Base card --- */
.journey__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
  background: var(--color-bg);
  overflow: hidden;
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
}

.journey__card.is-visible { opacity: 1; transform: translateY(0); }
.journey__card:nth-child(1) { transition-delay: 0.05s; }
.journey__card:nth-child(2) { transition-delay: 0.2s; }
.journey__card:nth-child(3) { transition-delay: 0.35s; }

/* subtle hover lift */
.journey__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212,184,122,0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  pointer-events: none;
}
.journey__card:hover::after { opacity: 1; }

/* --- Card variants --- */
.journey__card--build {
  background: var(--color-brand);
}

.journey__card--live {
  background: var(--color-deep);
}

.journey__card--build .journey__card-bg {
  position: absolute;
  inset: 0;
  background: url("309 skidder/10.jpeg") center/cover no-repeat;
  opacity: 0.18;
  transition: opacity 0.6s var(--ease-out);
}
.journey__card--build:hover .journey__card-bg { opacity: 0.28; }

.journey__card--live .journey__card-bg {
  position: absolute;
  inset: 0;
  background: url("380 Wassou/6.jpeg") center/cover no-repeat;
  opacity: 0.18;
  transition: opacity 0.6s var(--ease-out);
}
.journey__card--live:hover .journey__card-bg { opacity: 0.28; }

/* --- Card top row --- */
.journey__card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.journey__num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1;
  color: var(--color-text-faint);
  letter-spacing: -0.03em;
}

.journey__card--build .journey__num { color: rgba(244,237,225,0.3); }

.journey__tag {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  padding: 0.35em 0.8em;
  border: 1px solid var(--color-line);
  border-radius: 999px;
}

.journey__card--build .journey__tag {
  border-color: rgba(244,237,225,0.2);
}

/* --- Title --- */
.journey__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.8vw, 2.6rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-cream);
  flex-shrink: 0;
}

.journey__title em {
  font-style: italic;
  font-variation-settings: "opsz" 144;
}

.journey__card--dream .journey__title em { color: var(--color-accent); }
.journey__card--build .journey__title em { color: var(--color-accent-warm); }
.journey__card--live  .journey__title em { color: var(--color-accent); }

/* --- Body --- */
.journey__body {
  font-size: clamp(0.875rem, 1vw, 0.9375rem);
  line-height: 1.75;
  color: var(--color-text-dim);
  flex: 1;
}

.journey__card--build .journey__body {
  color: rgba(244,237,225,0.72);
}

/* --- Card footer --- */
.journey__card-foot {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-line);
  display: flex;
  align-items: center;
}

.journey__card--build .journey__card-foot {
  border-top-color: rgba(244,237,225,0.15);
}

.journey__icon {
  color: var(--color-text-faint);
}

.journey__icon svg {
  width: 36px;
  height: 36px;
}

.journey__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 300;
  color: var(--color-accent);
  letter-spacing: -0.01em;
}

.btn--sm {
  font-size: 0.8125rem;
  padding: 0.75rem 1.25rem;
}

/* --- Responsive --- */
@media (max-width: 960px) {
  .journey__inner {
    grid-template-columns: 1fr;
    gap: 1.5px;
  }

  .journey__card--live .journey__card-bg { opacity: 0.12; }
}

@media (max-width: 560px) {
  .journey { padding: 3.5rem var(--pad-x); }
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: transparent;
  color: var(--color-cream);
}

.lightbox[hidden] { display: none; }

/* open animation */
.lightbox.is-opening .lightbox__backdrop { animation: lbFadeIn 0.4s var(--ease-out) forwards; }
.lightbox.is-opening .lightbox__header   { animation: fadeDown 0.45s var(--ease-out) 0.1s both; }
.lightbox.is-opening .lightbox__stage    { animation: lbFadeIn 0.5s var(--ease-out) 0.05s both; }
.lightbox.is-opening .lightbox__thumbs  { animation: fadeUp 0.45s var(--ease-out) 0.15s both; }

/* close animation */
.lightbox.is-closing { pointer-events: none; }
.lightbox.is-closing .lightbox__backdrop { animation: lbFadeOut 0.35s var(--ease-out) forwards; }
.lightbox.is-closing .lightbox__header,
.lightbox.is-closing .lightbox__stage,
.lightbox.is-closing .lightbox__thumbs  { animation: lbFadeOut 0.3s var(--ease-out) forwards; }

@keyframes lbFadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes lbFadeOut { from { opacity: 1; } to { opacity: 0; } }

/* backdrop */
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 19, 16, 0.96);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: -1;
}

/* --- Header --- */
.lightbox__header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
  border-bottom: 1px solid var(--color-line);
}

.lightbox__meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.lightbox__project {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 300;
  letter-spacing: -0.01em;
}

.lightbox__location {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--color-text-dim);
}

.lightbox__counter {
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  color: var(--color-text-dim);
  display: flex;
  gap: 0.25rem;
}

.lightbox__current { color: var(--color-accent); }

.lightbox__close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-line);
  background: transparent;
  color: var(--color-cream);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-out);
  flex-shrink: 0;
}
.lightbox__close svg { width: 18px; height: 18px; }
.lightbox__close:hover { border-color: var(--color-cream); background: rgba(244,237,225,0.08); }

/* --- Stage --- */
.lightbox__stage {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: 0;
}

.lightbox__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.55s var(--ease-out);
}

.lightbox__slide {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem clamp(3rem, 8vw, 7rem);
  gap: 1rem;
  margin: 0;
  min-height: 0;
}

.lightbox__slide img,
.lightbox__slide video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  flex: 1;
  min-height: 0;
  box-shadow: 0 24px 80px rgba(5,19,16,0.7);
}

.lightbox__slide figcaption {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--color-text-dim);
  text-align: center;
}

.lightbox__disclaimer {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  color: var(--color-text-faint);
  font-style: italic;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* arrows */
.lightbox__arrow {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  z-index: 10;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(244,237,225,0.2);
  background: rgba(10,24,20,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-cream);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s var(--ease-out);
}
.lightbox__arrow svg { width: 20px; height: 20px; }
.lightbox__arrow--prev { left: clamp(0.75rem, 2vw, 2rem); }
.lightbox__arrow--next { right: clamp(0.75rem, 2vw, 2rem); }
.lightbox__arrow:hover {
  border-color: var(--color-accent);
  background: rgba(212,184,122,0.12);
  color: var(--color-accent);
}
.lightbox__arrow:disabled { opacity: 0.2; pointer-events: none; }

/* --- Thumbnails --- */
.lightbox__thumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 1rem clamp(1.25rem, 4vw, 3rem) 1.5rem;
  border-top: 1px solid var(--color-line);
  overflow-x: auto;
  scrollbar-width: none;
}
.lightbox__thumbs::-webkit-scrollbar { display: none; }

.lightbox__thumb {
  position: relative;
  flex-shrink: 0;
  width: 72px;
  height: 52px;
  border-radius: 5px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  background: var(--color-bg);
  transition: border-color 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
  opacity: 0.5;
}
.lightbox__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lightbox__thumb.is-active { border-color: var(--color-accent); opacity: 1; }
.lightbox__thumb:hover:not(.is-active) { opacity: 0.8; }

.lightbox__thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,24,20,0.5);
  color: var(--color-cream);
}
.lightbox__thumb-play svg { width: 14px; height: 14px; }

/* keyboard focus */
.lightbox__close:focus-visible,
.lightbox__arrow:focus-visible,
.lightbox__thumb:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* make the featured card feel clickable */
#card-lakeshore { cursor: pointer; }

@media (max-width: 600px) {
  .lightbox__slide { padding: 1rem 3.5rem; }
  .lightbox__thumb { width: 56px; height: 42px; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-deep);
  border-top: 1px solid var(--color-line);
}

/* --- CTA band --- */
.footer__cta {
  background: var(--color-brand);
  padding: clamp(4rem, 8vh, 7rem) var(--pad-x);
  position: relative;
  overflow: hidden;
}

.footer__cta-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.3;
  pointer-events: none;
}

.footer__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 19, 16, 0.55);
  pointer-events: none;
  z-index: 1;
}

.footer__cta-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer__cta-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(244,237,225,0.55);
  margin-bottom: 1.25rem;
}

.footer__cta-line {
  width: 40px;
  height: 1px;
  background: var(--color-accent);
}

.footer__cta-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--color-cream);
}

.footer__cta-title em {
  font-style: italic;
  font-variation-settings: "opsz" 144;
  color: var(--color-accent);
}

.footer__cta-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-shrink: 0;
}

.footer__cta-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1;
  max-width: 560px;
}

.footer__cta-phone {
  align-self: flex-start;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-form__field label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-dim);
}

.contact-form__field label span {
  color: var(--color-text-faint);
  text-transform: none;
  letter-spacing: 0;
}

.contact-form__field input,
.contact-form__field textarea {
  background: rgba(244, 237, 225, 0.05);
  border: 1px solid var(--color-line);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  color: var(--color-cream);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}

.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
  color: var(--color-text-faint);
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  border-color: rgba(244, 237, 225, 0.4);
}

.contact-form__submit {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  align-self: flex-start;
  padding: 0.85rem 1.75rem;
  background: var(--color-accent);
  color: var(--color-brand);
  border: none;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
}

.contact-form__submit svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s;
}

.contact-form__submit:hover {
  background: var(--color-accent-warm);
  transform: translateY(-1px);
}

.contact-form__submit:hover svg {
  transform: translateX(3px);
}

.contact-form__bottom {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.contact-form__or {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--color-text-faint);
}

.contact-form__tel {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  color: var(--color-cream);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}

.contact-form__tel svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.contact-form__tel:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.contact-form__success {
  font-size: 0.85rem;
  color: var(--color-accent);
  min-height: 1.2em;
}

@media (max-width: 560px) {
  .contact-form__row { grid-template-columns: 1fr; }
  .contact-form__submit { align-self: stretch; justify-content: center; }
}

/* --- Body --- */
.footer__body {
  padding: clamp(4rem, 7vh, 6rem) var(--pad-x);
  border-bottom: 1px solid var(--color-line);
  position: relative;
  overflow: hidden;
}

.footer__body-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  transform-origin: center center;
  will-change: transform;
}

@keyframes footerVideoDrift {
  0%   { transform: scale(1)    translate(0%,    0%);   }
  33%  { transform: scale(1.03) translate(-0.6%, 0.4%); }
  66%  { transform: scale(1.05) translate(0.4%,  -0.5%);}
  100% { transform: scale(1)    translate(0%,    0%);   }
}

.footer__body-video.is-drifting {
  animation: footerVideoDrift 14s ease-in-out infinite;
}

.footer__body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 19, 16, 0.72);
  pointer-events: none;
  z-index: 1;
}

.footer__body-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  justify-items: end;
  position: relative;
  z-index: 2;
}

/* --- Column --- */
.footer__col-title {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: 1.5rem;
}

/* --- Brand col --- */
.footer__col--brand {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.footer__logo-wrap {
  display: inline-flex;
  margin-bottom: 1.5rem;
}

.footer__logo {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  transition: opacity 0.3s var(--ease-out);
}

.footer__logo-wrap:hover .footer__logo { opacity: 1; }

.footer__partner {
  display: inline-flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  margin-top: 1.5rem;
  border: 1px solid var(--color-line);
  border-radius: 0.625rem;
  text-decoration: none;
  align-self: flex-end;
  transition: border-color 0.25s, background 0.25s;
}

.footer__partner:hover {
  border-color: rgba(244, 237, 225, 0.3);
  background: rgba(244, 237, 225, 0.04);
}

.footer__partner-title {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.footer__partner-desc {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--color-text-dim);
}

.footer__partner-desc strong {
  color: var(--color-cream);
  font-weight: 600;
}

.footer__tagline {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--color-text-dim);
  max-width: 30ch;
  margin-bottom: 2rem;
}

.footer__socials {
  display: flex;
  gap: 0.75rem;
}

.footer__social {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-dim);
  transition: all 0.35s var(--ease-out);
}

.footer__social svg { width: 16px; height: 16px; }

.footer__social:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(212,184,122,0.08);
}

/* --- Nav col --- */
.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.footer__nav a {
  font-size: 0.875rem;
  color: var(--color-text-dim);
  transition: color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  display: inline-block;
}

.footer__nav a:hover {
  color: var(--color-cream);
  transform: translateX(4px);
}

/* --- Contact col --- */
.footer__address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer__contact-item {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 0.875rem;
  font-size: 0.875rem;
  color: var(--color-text-dim);
  line-height: 1.55;
}

.footer__contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-accent);
}

.footer__contact-item a {
  color: var(--color-text-dim);
  transition: color 0.3s var(--ease-out);
}

.footer__contact-item a:hover { color: var(--color-accent); }

.footer__map {
  margin-top: 1rem;
  border-radius: 0.625rem;
  overflow: hidden;
  border: 1px solid var(--color-line);
  opacity: 0.85;
  transition: opacity 0.25s;
}

.footer__map:hover { opacity: 1; }

.footer__map iframe {
  display: block;
  height: 240px;
  filter: grayscale(1) invert(1) brightness(0.75) contrast(0.9);
}

/* --- Bottom bar --- */
.footer__bottom {
  padding: 1.5rem var(--pad-x);
}

.footer__bottom-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer__copy,
.footer__legal a,
.footer__location {
  font-size: 0.75rem;
  color: var(--color-text-faint);
  letter-spacing: 0.04em;
}

.footer__legal {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer__legal a:hover { color: var(--color-text-dim); }

.footer__built-by {
  font-size: 0.75rem;
  color: var(--color-text-faint);
  letter-spacing: 0.04em;
}

.footer__built-by a {
  color: var(--color-text-faint);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__built-by a:hover { color: var(--color-text-dim); }

.footer__location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__loc-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .footer__body-inner {
    grid-template-columns: 1fr 1fr;
    gap: 3rem 2rem;
  }
  .footer__col--brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .footer__cta-inner { flex-direction: column; align-items: flex-start; }
  .footer__body-inner { grid-template-columns: 1fr; }
  .footer__col--brand { grid-column: 1; }
  .footer__bottom-inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}

/* ============================================
   ANIMATIONS — shared
   ============================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__location { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__actions .btn--ghost { display: none; }

  .hero {
    grid-template-rows: auto 1fr auto;
  }

  .hero__meta {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .hero__meta-item--featured {
    grid-column: 1 / -1;
  }

  .hero__scroll {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 0.5rem;
  }
}

@media (max-width: 560px) {
  :root { --nav-h: 72px; }

  .nav__wordmark { font-size: 0.95rem; }

  .hero__cta { flex-direction: column; align-items: flex-start; }

  .btn--primary { width: 100%; justify-content: center; }

  .hero__meta { grid-template-columns: 1fr; }

  .hero__meta-item--featured { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero__video { animation: none; transform: scale(1.04); }
}

@media (max-width: 768px) {
  .hero__video { object-position: left center; }
}

@media (max-width: 720px) {
  .mobile-menu {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}
