:root {
  --bg: oklch(97% 0.012 78);
  --surface: oklch(92% 0.016 78);
  --text: oklch(25% 0.02 72);
  --muted: oklch(40% 0.012 72);
  --accent: oklch(58% 0.1 48);
  --accent-ink: oklch(98% 0.01 78);
  --hero-overlay: linear-gradient(
    to top,
    oklch(20% 0.01 72 / 0.75) 0%,
    oklch(25% 0.02 72 / 0.15) 60%,
    oklch(98% 0.01 78 / 0) 100%
  );
  --shadow-soft: 0 14px 35px oklch(25% 0.02 72 / 0.12);
  --space-2: clamp(0.5rem, 0.4rem + 0.4vw, 0.85rem);
  --space-3: clamp(0.8rem, 0.6rem + 0.7vw, 1.25rem);
  --space-4: clamp(1rem, 0.8rem + 1vw, 1.8rem);
  --space-6: clamp(1.8rem, 1.2rem + 2vw, 3rem);
  --space-8: clamp(2.4rem, 1.5rem + 3vw, 5rem);
  --container: min(1680px, calc(100vw - 4rem));
  --content-measure: 70ch;
  --radius: 1.1rem;
  --nav-height: 4rem;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  line-height: 1.55;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  position: relative;
  min-height: 100vh;
}

.top-nav {
  position: fixed;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--container);
  gap: 0.75rem;
  padding: 0.45rem;
  border-radius: 12px;
  border: 1px solid oklch(96% 0.01 78 / 0.35);
  background: oklch(24% 0.01 72 / 0.42);
  backdrop-filter: blur(8px);
}

.top-nav-menu {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  margin-left: auto;
}

.top-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  color: oklch(98% 0.01 78);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background-color 220ms ease, color 220ms ease;
}

.top-nav-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
}

.top-nav-brand img {
  display: block;
  width: auto;
  height: 1.6rem;
  object-fit: contain;
}

.top-nav-brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.top-nav-link:hover,
.top-nav-link:focus-visible {
  background: oklch(98% 0.01 78 / 0.18);
}

.hero-slider {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(0.95);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  z-index: 1;
}

.hero-content {
  position: absolute;
  z-index: 2;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  width: var(--container);
  display: grid;
  gap: var(--space-4);
  align-items: start;
}

.hero-quote {
  max-width: 42rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 1.2rem + 3vw, 3.8rem);
  color: oklch(98% 0.01 78);
  text-wrap: balance;
}

.btn-contact {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 600;
  transition: transform 220ms ease, filter 220ms ease;
}

.btn-contact:hover,
.btn-contact:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.btn-contact:focus-visible,
.slide-control:focus-visible,
.slide-dot:focus-visible,
.social-links a:focus-visible,
.top-nav-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.hero-controls {
  position: absolute;
  z-index: 2;
  right: max(1.5rem, calc((100vw - var(--container)) / 2));
  bottom: var(--space-8);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.slide-control {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid oklch(97% 0.01 78 / 0.8);
  background: oklch(96% 0.01 78 / 0.16);
  color: oklch(98% 0.01 78);
  font-size: 1.1rem;
  cursor: pointer;
  backdrop-filter: blur(2px);
}

.slide-dots {
  display: inline-flex;
  gap: 0.4rem;
}

.slide-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  border: 0;
  background: oklch(96% 0.01 78 / 0.4);
  cursor: pointer;
  padding: 0;
}

.slide-dot.is-active {
  background: oklch(98% 0.01 78);
}

.about-section,
.gallery-section {
  width: var(--container);
  margin-inline: auto;
  scroll-margin-top: calc(var(--nav-height) + 1.1rem);
}

.logo-loop-section {
  width: 100%;
  margin: 0;
  padding: var(--space-8) 0;
  background: oklch(100% 0 0);
  scroll-margin-top: calc(var(--nav-height) + 1.1rem);
}

.section-title {
  font-size: clamp(1.7rem, 1.4rem + 1.4vw, 2.5rem);
  margin-bottom: var(--space-4);
}

.logo-marquee {
  width: var(--container);
  margin-inline: auto;
  background: oklch(100% 0 0);
}

.logo-track {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  padding: var(--space-4) 0;
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
}

.logo-item {
  width: clamp(155px, 12vw, 230px);
  height: clamp(84px, 7vw, 118px);
  object-fit: contain;
  filter: grayscale(1) contrast(1.05) opacity(0.75);
}

.about-section {
  padding: var(--space-8) 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: var(--space-4);
}

.about-copy {
  display: grid;
  gap: var(--space-4);
}

.about-section h2 {
  font-size: clamp(2.2rem, 1.5rem + 2vw, 3.4rem);
}

.about-section p {
  max-width: var(--content-measure);
  color: var(--muted);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
}

.about-image {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  justify-self: end;
  max-width: 430px;
  width: 100%;
}

.about-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.gallery-section {
  padding-bottom: var(--space-8);
}

.gallery-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  cursor: zoom-in;
}

.gallery-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 300ms ease;
}

.gallery-card:hover img,
.gallery-card:focus-within img {
  transform: scale(1.03);
}

.gallery-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.site-footer {
  margin-top: var(--space-6);
  padding: var(--space-8) 1.5rem;
  background: color-mix(in oklch, var(--surface), white 12%);
  text-align: center;
  border-top: 1px solid oklch(82% 0.015 78);
  scroll-margin-top: calc(var(--nav-height) + 1.1rem);
}

.footer-headline {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem);
}

.footer-subline {
  max-width: var(--content-measure);
  margin: var(--space-3) auto var(--space-4);
  color: var(--muted);
}

.footer-btn {
  margin-bottom: var(--space-4);
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.9rem;
}

.social-links a {
  display: inline-flex;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  background: oklch(88% 0.02 78);
  color: oklch(34% 0.03 62);
  transition: transform 220ms ease, background-color 220ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  transform: translateY(-2px);
  background: oklch(82% 0.04 62);
}

.social-links svg {
  width: 1.2rem;
  height: 1.2rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: oklch(10% 0.01 70 / 0.84);
  display: grid;
  place-items: center;
  padding: 2rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(92vw, 1200px);
  max-height: 86vh;
  border-radius: 0.8rem;
  box-shadow: 0 24px 60px oklch(10% 0.01 70 / 0.5);
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  background: oklch(92% 0.02 78);
  color: oklch(24% 0.02 72);
}

.lightbox-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (min-width: 1800px) {
  .gallery-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 2400px) {
  .gallery-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .about-section {
    grid-template-columns: 1fr;
  }

  .about-image {
    justify-self: start;
    max-width: 360px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-controls {
    right: 50%;
    transform: translateX(50%);
    bottom: 1.5rem;
  }

  .hero-content {
    bottom: 7rem;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(1680px, calc(100vw - 1.6rem));
  }

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

  .hero-content {
    bottom: 6.4rem;
  }

  .hero-controls {
    bottom: 1.2rem;
  }

  .lightbox {
    padding: 1rem;
  }

  .top-nav {
    top: 0.5rem;
    gap: 0.25rem;
    padding: 0.3rem;
  }

  .top-nav-link {
    padding: 0.3rem 0.58rem;
    min-height: 2rem;
    font-size: 0.82rem;
  }

  .top-nav-brand {
    height: 2rem;
    padding: 0 0.22rem;
  }

  .top-nav-brand img {
    height: 1.3rem;
  }

  .top-nav-menu {
    gap: 0.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
