:root {
  color-scheme: dark;
  --ink: #f7f5ef;
  --muted: #c7c0b3;
  --paper: #11110f;
  --panel: #191815;
  --line: rgba(247, 245, 239, 0.18);
  --accent: #d7b46a;
  --accent-strong: #f0cf7a;
  --danger: #f29b8f;
  --success: #91d3ad;
  --max: 1180px;
  --header-h: 72px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --gallery-w: calc(100vw + var(--safe-left) + var(--safe-right));
  --gallery-h: calc(100dvh + var(--safe-top) + var(--safe-bottom));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

.home-page,
.gallery-page {
  overflow: hidden;
}

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

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

code {
  padding: 0.12rem 0.28rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 30;
  padding: 0.55rem 0.8rem;
  border-radius: 4px;
  background: var(--ink);
  color: #111;
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  padding: 0.9rem clamp(1rem, 3vw, 2.4rem);
  background: linear-gradient(to bottom, rgba(17, 17, 15, 0.86), rgba(17, 17, 15, 0.38), rgba(17, 17, 15, 0));
  color: var(--ink);
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.site-nav {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.site-nav a,
.nav-trigger {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.46rem 0.66rem;
  border-radius: 4px;
  color: rgba(247, 245, 239, 0.92);
  font-size: 0.92rem;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.nav-dropdown:focus-within .nav-trigger,
.nav-dropdown:hover .nav-trigger {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  display: grid;
  min-width: 230px;
  padding: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(17, 17, 15, 0.94);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-menu a {
  justify-content: flex-start;
  white-space: nowrap;
}

main {
  min-height: 100vh;
  min-height: 100dvh;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: hidden;
  padding: var(--header-h) clamp(1.25rem, 6vw, 5rem) clamp(2.8rem, 9vh, 6rem);
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 8, 7, 0.82), rgba(8, 8, 7, 0.34) 48%, rgba(8, 8, 7, 0.05)),
    linear-gradient(to top, rgba(8, 8, 7, 0.76), rgba(8, 8, 7, 0.02) 58%);
}

.hero-bg-picture,
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg-picture {
  display: block;
}

.hero-bg {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
}

.hero-content {
  width: min(780px, 100%);
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1;
}

.hero h1 {
  white-space: nowrap;
  font-size: clamp(1.6rem, 5vw, 4.1rem);
}

.hero-text {
  max-width: 48rem;
  margin: 1.1rem 0 0;
  color: rgba(247, 245, 239, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.68rem 1rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-weight: 700;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #17130a;
}

.button:hover,
.button:focus-visible {
  outline: 2px solid rgba(240, 207, 122, 0.45);
  outline-offset: 3px;
}

.section,
.page-intro,
.contact-layout {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.page-intro {
  padding: calc(var(--header-h) + 5.5rem) 0 2.5rem;
}

.page-intro h1 {
  font-size: clamp(2.4rem, 7vw, 5rem);
}

.page-intro p {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 0.9rem;
}

.gallery-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  isolation: isolate;
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.08) 56%);
}

.gallery-card-picture {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  transition: transform 700ms ease;
  user-select: none;
  -webkit-user-drag: none;
}

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

.gallery-card-label {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.gallery-card-label span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1;
}

.gallery-card-label small {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.8rem;
}

.carousel-shell {
  position: fixed;
  top: calc(-1 * var(--safe-top));
  right: calc(-1 * var(--safe-right));
  bottom: calc(-1 * var(--safe-bottom));
  left: calc(-1 * var(--safe-left));
  width: var(--gallery-w);
  height: var(--gallery-h);
  overflow: hidden;
  background: #080807;
}

.carousel-title {
  position: fixed;
  left: clamp(1rem, 3vw, 2.4rem);
  bottom: clamp(1rem, 4vh, 2.2rem);
  z-index: 8;
  max-width: min(560px, calc(100vw - 2rem));
  padding: 0.85rem 0;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

.carousel-title h1 {
  font-size: clamp(2.1rem, 5vw, 4.6rem);
}

.carousel-title p {
  margin: 0.35rem 0 0;
  color: rgba(247, 245, 239, 0.82);
}

.carousel-track,
.carousel-shell .splide__track,
.carousel-shell .splide__list,
.carousel-shell .splide__slide {
  width: 100%;
  height: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.carousel-shell .splide__slide {
  flex: 0 0 100% !important;
  min-width: 100% !important;
}

.carousel-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.carousel-image-button {
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: none;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.carousel-picture {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.carousel-image-button img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  margin: 0;
  user-select: none;
  -webkit-user-drag: none;
}

.carousel-shell:fullscreen,
.carousel-shell:-webkit-full-screen {
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
}

body.is-gallery-immersive {
  overflow: hidden;
}

body.is-gallery-immersive .site-header,
body.is-gallery-immersive .site-footer {
  display: none;
}

body.is-gallery-immersive .carousel-shell {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
}

.carousel-zone {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 7;
  width: 33.333vw;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.carousel-prev {
  left: 0;
}

.carousel-next {
  right: 0;
}

.carousel-zone span {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.38);
  font-size: 2.5rem;
  line-height: 1;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 160ms ease, background 160ms ease;
}

.carousel-prev span {
  left: clamp(0.75rem, 3vw, 2rem);
}

.carousel-next span {
  right: clamp(0.75rem, 3vw, 2rem);
}

.carousel-zone:hover span,
.carousel-zone:focus-visible span {
  opacity: 1;
  background: rgba(0, 0, 0, 0.56);
}

.fullscreen-toggle {
  position: fixed;
  right: clamp(0.75rem, 3vw, 1.6rem);
  bottom: clamp(0.75rem, 3vh, 1.4rem);
  z-index: 9;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.34);
  color: var(--ink);
  cursor: pointer;
  opacity: 0.72;
}

.fullscreen-toggle::before,
.fullscreen-toggle::after {
  content: "";
  position: absolute;
  inset: 0.62rem;
  border-color: currentColor;
  border-style: solid;
}

.fullscreen-toggle::before {
  border-width: 2px 0 0 2px;
}

.fullscreen-toggle::after {
  border-width: 0 2px 2px 0;
}

.fullscreen-toggle:hover,
.fullscreen-toggle:focus-visible {
  opacity: 1;
  outline: 2px solid rgba(240, 207, 122, 0.42);
  outline-offset: 3px;
}

.fullscreen-toggle[hidden] {
  display: none;
}

.contact-layout {
  padding: 0 0 clamp(3rem, 8vw, 6rem);
}

.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 760px;
}

.field {
  display: grid;
  gap: 0.42rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font: inherit;
  padding: 0.85rem 0.9rem;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  outline: none;
}

.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.notice {
  max-width: 760px;
  margin-bottom: 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.notice.success {
  border-color: rgba(145, 211, 173, 0.55);
  color: var(--success);
}

.notice.error {
  border-color: rgba(242, 155, 143, 0.55);
  color: var(--danger);
}

.empty-state {
  color: var(--muted);
}

.site-footer {
  display: block;
  padding: 1.6rem clamp(1rem, 3vw, 2.4rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.home-page .site-footer,
.gallery-page .site-footer,
.lightbox {
  display: none;
}

.site-footer p {
  margin: 0;
}

.copy-note {
  max-width: 520px;
  text-align: right;
}

.protected-image {
  -webkit-touch-callout: none;
}

@media (max-width: 720px), (hover: none) and (pointer: coarse) {
  :root {
    --header-h: 64px;
  }

  .home-page,
  .gallery-page {
    width: 100vw;
    height: 100svh;
    height: 100dvh;
    overflow: hidden;
  }

  .site-header {
    align-items: flex-start;
    gap: 0.6rem;
    min-height: var(--header-h);
    padding: 0.7rem 0.8rem;
  }

  .site-nav {
    gap: 0.2rem;
  }

  .site-nav a,
  .nav-trigger {
    padding-inline: 0.46rem;
  }

  .dropdown-menu {
    right: -3.2rem;
    max-width: calc(100vw - 1rem);
    min-width: 210px;
  }

  .hero {
    align-items: end;
    min-height: 100svh;
    min-height: 100dvh;
    padding: var(--header-h) 0.8rem 2rem;
  }

  .hero-content {
    width: 100%;
  }

  .hero h1 {
    max-width: 100%;
    font-size: 1.42rem;
    line-height: 1.04;
  }

  .hero-text {
    max-width: 21rem;
    margin-top: 0.75rem;
    font-size: 0.92rem;
    line-height: 1.35;
  }

  .gallery-card,
  .gallery-card-picture,
  .gallery-card img {
    min-height: 300px;
  }

  .gallery-card-label {
    display: grid;
  }

  .carousel-title {
    left: 0.7rem;
    bottom: 0.65rem;
    max-width: calc(100vw - 1.4rem);
    padding: 0;
  }

  .carousel-title h1 {
    font-size: 1.25rem;
  }

  .carousel-title p {
    margin-top: 0.2rem;
    font-size: 0.82rem;
  }

  .carousel-title .eyebrow {
    display: none;
  }

  .carousel-slide {
    width: 100%;
    height: 100%;
  }

  .carousel-image-button,
  .carousel-picture {
    width: 100%;
    height: 100%;
  }

  .carousel-image-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .carousel-zone {
    top: 0;
    bottom: 0;
    width: 33.333vw;
  }

  .carousel-zone span {
    opacity: 0.82;
    width: 2.45rem;
    height: 2.45rem;
    font-size: 2rem;
  }

  .fullscreen-toggle {
    right: 0.65rem;
    bottom: 0.65rem;
    width: 2.35rem;
    height: 2.35rem;
  }

  .site-footer {
    display: grid;
  }

  .copy-note {
    text-align: left;
  }
}

@media (max-width: 430px) {
  .hero h1 {
    font-size: 1.32rem;
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 1.16rem;
  }

  .hero-text {
    font-size: 0.86rem;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  :root {
    --header-h: 52px;
  }

  .site-header {
    min-height: var(--header-h);
    padding: 0.42rem 0.8rem;
  }

  .hero {
    padding: var(--header-h) 1rem 1rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-text {
    max-width: 36rem;
    font-size: 0.92rem;
  }

  .carousel-title {
    bottom: 0.45rem;
  }

  .carousel-title h1 {
    font-size: 1.05rem;
  }

  .carousel-title p {
    font-size: 0.76rem;
  }

  .carousel-slide {
    width: 100%;
    height: 100%;
  }

  .carousel-image-button,
  .carousel-picture {
    width: 100%;
    height: 100%;
  }

  .carousel-image-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .carousel-zone {
    top: 0;
    bottom: 0;
  }
}

@media (hover: none) and (pointer: coarse), (max-width: 1000px) {
  body.gallery-page {
    overflow: hidden;
  }

  body.gallery-page .site-header,
  body.gallery-page .site-footer {
    display: none;
  }

  body.gallery-page .carousel-shell {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
  }
}
