:root {
  --nav-offset: 84px;
}

/* ── Sofia Pro ───────────────────────────────────── */
@font-face {
  font-family: 'Sofia Pro';
  src: url('/fonts/Sofia Pro Light Az.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Sofia Pro';
  src: url('/fonts/Sofia Pro Regular Az.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Sofia Pro';
  src: url('/fonts/Sofia Pro Medium Az.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ── Reset & Base ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  min-height: 100svh;
  min-height: 100dvh;
  position: relative;
  isolation: isolate;
  background-color: #0e0e0e;
  color: #f5f5f5;
  font-family: 'Sofia Pro', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url('/images/optimized/background-site-grain-5e9aede429.webp');
  background-repeat: repeat;
  background-size: 400px 400px;
  opacity: 0.16;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 500;
  transform: translateY(-160%);
  padding: 10px 12px;
  background: #f5f5f5;
  color: #0e0e0e;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid #0e0e0e;
  outline-offset: 2px;
}

a,
button,
.work-item {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* ── Sections ───────────────────────────────────── */
.panel {
  --section-opacity: 1;
  --section-shift: 0px;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px calc(80px + env(safe-area-inset-bottom, 0px));
  position: relative;
}

.panel-inner {
  width: min(100%, 1100px);
  opacity: var(--section-opacity);
  transform: translateY(var(--section-shift));
}

/* ── Navigation (thin top bar) ──────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(24px, 4vw, 48px);
  pointer-events: none;
}

.nav > * { pointer-events: auto; }

.nav-logo {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 400;
  color: rgba(245, 245, 245, 0.5);
  transition: color 0.3s;
}

.nav-logo:hover { color: #f5f5f5; }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  color: rgba(245, 245, 245, 0.4);
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 13px;
  left: 0;
  width: 0;
  height: 1px;
  background: #f5f5f5;
  transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #f5f5f5;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* ── Hero ───────────────────────────────────────── */
.hero {
  justify-content: flex-end;
  align-items: flex-start;
  padding-bottom: 12vh;
  padding-left: clamp(24px, 4vw, 48px);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: #1a1a1a;
  z-index: 0;
  opacity: var(--section-opacity);
  transform: translateY(calc(var(--section-shift) * 0.35)) scale(1.015);
  transform-origin: center;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.hero .panel-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

/* ── Works ──────────────────────────────────────── */
.section-label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.3);
  font-weight: 400;
  margin-bottom: 48px;
}

.works-grid {
  column-count: 4;
  column-gap: 0;
  min-height: 240px;
}

.work-item {
  width: 100%;
  border: 0;
  padding: 0;
  border-radius: 0;
  overflow: hidden;
  background: #1a1a1a;
  position: relative;
  cursor: pointer;
  -webkit-column-break-inside: avoid;
  break-inside: avoid;
  page-break-inside: avoid;
}

.work-item:focus-visible {
  outline: 2px solid #f5f5f5;
  outline-offset: -2px;
}

.work-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s;
  opacity: 0.85;
}

.work-item:hover img {
  transform: scale(1.04);
  opacity: 1;
}

.work-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.15);
}

/* ── Shop ──────────────────────────────────────── */
.shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: clamp(36px, 7vw, 96px);
  align-items: start;
}

.shop-copy h2 {
  max-width: 720px;
  font-size: clamp(1.65rem, 3vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 300;
  margin-bottom: 24px;
}

.shop-copy p,
.shop-details li,
.shop-note {
  color: rgba(245, 245, 245, 0.5);
  font-size: 0.95rem;
  line-height: 1.75;
  font-weight: 300;
}

.shop-details {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.shop-action {
  border-top: 1px solid rgba(245, 245, 245, 0.08);
  padding-top: 28px;
}

.shop-price {
  display: block;
  margin-bottom: 18px;
  font-size: 1.45rem;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.shop-button {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(245, 245, 245, 0.32);
  background: #f5f5f5;
  color: #0e0e0e;
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s, opacity 0.25s;
}

.shop-button:hover {
  background: transparent;
  color: #f5f5f5;
  border-color: rgba(245, 245, 245, 0.7);
}

.shop-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.shop-note {
  margin-top: 16px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: rgba(245, 245, 245, 0.38);
}

.shop-status {
  min-height: 22px;
  margin-top: 14px;
  color: rgba(245, 245, 245, 0.48);
  font-size: 0.78rem;
  line-height: 1.5;
}

/* ── Booking ────────────────────────────────────── */
#booking .section-label {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  color: rgba(245, 245, 245, 0.24);
  font-weight: 400;
  margin-bottom: 52px;
}

.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 60px;
  row-gap: 0;
  align-items: start;
}

.booking-col h3 {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.booking-col p {
  color: rgba(245, 245, 245, 0.5);
  font-size: 0.92rem;
  line-height: 1.65;
  font-weight: 300;
}

.booking-col p + p {
  margin-top: 11px;
}

.booking-offer h3 {
  font-size: 0.93rem;
  line-height: 1.82;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: rgba(245, 245, 245, 0.5);
  margin-bottom: 11px;
}

.booking-offer p {
  color: rgba(245, 245, 245, 0.5);
  font-size: 0.93rem;
  line-height: 1.82;
  font-weight: 400;
  letter-spacing: -0.005em;
}

.booking-contact h3 {
  margin-bottom: 14px;
}

.booking-col a {
  color: rgba(245, 245, 245, 0.7);
  border-bottom: 1px solid rgba(245, 245, 245, 0.2);
  transition: color 0.3s, border-color 0.3s;
}

.booking-col a:hover {
  color: #f5f5f5;
  border-color: #f5f5f5;
}

.section-divider,
.booking-divider {
  width: 100%;
  height: 1px;
  background: rgba(245, 245, 245, 0.08);
}

.section-divider {
  margin-bottom: 40px;
}

.booking-divider {
  margin: 40px 0;
  grid-column: 1 / -1;
}

.booking-turnaround {
  grid-column: 1 / -1;
  color: rgba(245, 245, 245, 0.42);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  margin-top: 28px;
}

.booking-faq {
  grid-column: 1 / -1;
}

.booking-faq h3 {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.booking-faq-list {
  list-style: none;
}

.booking-faq-item {
  display: grid;
  grid-template-rows: auto 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.booking-faq-item + .booking-faq-item {
  margin-top: 24px;
}

.booking-faq-toggle {
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.booking-faq-toggle:focus-visible {
  outline: 1px solid rgba(245, 245, 245, 0.32);
  outline-offset: 6px;
}

.booking-faq-question {
  display: block;
  font-size: 0.92rem;
  line-height: 1.7;
  font-weight: 500;
  margin-bottom: 0;
}

.booking-faq-answer-wrap {
  overflow: hidden;
}

.booking-faq-answer {
  color: rgba(245, 245, 245, 0.5);
  font-size: 0.92rem;
  line-height: 1.7;
  font-weight: 300;
  padding-top: 0;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              padding-top 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.booking-faq-item.is-open {
  grid-template-rows: auto 1fr;
}

.booking-faq-item.is-open .booking-faq-answer {
  padding-top: 4px;
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .booking-faq-item,
  .booking-faq-answer {
    transition: none;
  }
}

/* ── About ──────────────────────────────────────── */
.about-layout {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 92px);
  align-items: start;
}

.about-portrait-block {
  width: 100%;
  max-width: 380px;
  justify-self: start;
}

.about-portrait {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: min(62vh, 680px);
  border-radius: 12px;
  overflow: hidden;
  background: #1a1a1a;
  position: relative;
}

.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-photo-credit {
  margin-top: 8px;
  font-size: 0.56rem;
  letter-spacing: 0.06em;
  color: rgba(245, 245, 245, 0.38);
  font-weight: 300;
}

#about {
  align-items: flex-start;
  padding-top: calc(var(--nav-offset) + 28px);
}

#about .panel-inner {
  width: min(100%, 1080px);
}

.about-text {
  align-self: start;
  max-width: 520px;
  padding-top: clamp(34px, 8vh, 88px);
}

.about-text h2 {
  font-size: clamp(1.35rem, 2.25vw, 1.95rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 28px;
}

.about-text p {
  color: rgba(245, 245, 245, 0.5);
  font-size: 0.95rem;
  line-height: 1.75;
  font-weight: 300;
  max-width: none;
}

.about-text p + p {
  margin-top: 16px;
}

.about-location {
  margin-top: 32px;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.3);
  font-weight: 400;
}

/* ── Footer ─────────────────────────────────────── */
.footer {
  margin-top: 48px;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}

.footer a {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.25);
  transition: color 0.3s;
  padding: 10px 0;
}

.footer a:hover {
  color: rgba(245, 245, 245, 0.6);
}

/* ── Carousel ────────────────────────────────────── */
.carousel {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #0e0e0e;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s, visibility 0.4s;
}

.carousel.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.carousel-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(24px, 4vw, 48px);
  flex-shrink: 0;
}

.carousel-counter {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: rgba(245, 245, 245, 0.4);
}

.carousel-close {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.4);
  cursor: pointer;
  transition: color 0.3s;
}

.carousel-close:hover { color: #f5f5f5; }

.carousel-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 0 72px;
}

.carousel-stage {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  margin-top: -22px;
  z-index: 10;
  background: rgba(14, 14, 14, 0.6);
  border: 1px solid rgba(245, 245, 245, 0.15);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(245, 245, 245, 0.6);
  cursor: pointer;
  font-size: 1.2rem;
  font-family: inherit;
  line-height: 1;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
  pointer-events: auto;
}

.carousel-nav:hover {
  color: #f5f5f5;
  border-color: rgba(245, 245, 245, 0.4);
  background: rgba(245, 245, 245, 0.1);
}

.carousel-nav.prev { left: 12px; }
.carousel-nav.next { right: 12px; }

.carousel-bottombar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px;
  flex-shrink: 0;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(245, 245, 245, 0.15);
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  padding: 0;
}

.carousel-dot.active {
  background: rgba(245, 245, 245, 0.6);
  transform: scale(1.3);
}

.carousel-dot:focus-visible,
.carousel-close:focus-visible,
.carousel-nav:focus-visible {
  outline: 1px solid rgba(245, 245, 245, 0.7);
  outline-offset: 4px;
}

/* ── Responsive ─────────────────────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {
  .works-grid { column-count: 2; }
}

@media (max-width: 768px) {
  .nav-links { gap: 20px; }

  .works-grid { column-count: 2; }

  .shop-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .shop-action {
    max-width: 360px;
  }

  .booking-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 0;
  }

  .booking-offer + .booking-offer { margin-top: 32px; }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-portrait-block {
    max-width: 320px;
    justify-self: center;
  }

  .about-portrait {
    max-height: 420px;
  }

  .about-text {
    align-self: start;
    padding-top: 0;
  }

  .footer {
    justify-content: flex-start;
  }

  .carousel-body {
    padding: 0 20px;
  }

  .carousel-nav.prev { left: 4px; }
  .carousel-nav.next { right: 4px; }
}

@media (max-width: 480px) {
  :root {
    --nav-offset: 68px;
  }

  .nav {
    padding: max(6px, env(safe-area-inset-top, 0px)) 14px 6px;
  }

  .nav-logo {
    max-width: 92px;
    font-size: 0.58rem;
    line-height: 1.2;
    letter-spacing: 0.1em;
  }

  .nav-links { gap: 6px; }

  .nav-links a {
    padding: 0 2px;
    font-size: 0.58rem;
    letter-spacing: 0.1em;
  }

  .panel {
    padding: 88px 16px calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .hero {
    padding-bottom: calc(10vh + env(safe-area-inset-bottom, 0px));
    padding-left: 16px;
  }

  .section-label { margin-bottom: 36px; }
  .section-divider { margin-bottom: 32px; }
  .booking-divider { margin: 32px 0; }
  .booking-faq-item + .booking-faq-item { margin-top: 28px; }

  #about { padding-top: calc(var(--nav-offset) + 20px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .panel,
  .panel-inner,
  .hero-bg {
    --section-opacity: 1 !important;
    --section-shift: 0px !important;
    transform: none;
  }

  .skip-link,
  .work-item img,
  .carousel,
  .carousel-slide,
  .carousel-dot,
  .carousel-close,
  .carousel-nav {
    transition: none;
  }

  .work-item:hover img {
    transform: none;
  }
}
