:root {
  --bg: #f4f4f1;
  --paper: #ffffff;
  --ink: #1f1a18;
  --accent: #9c6d4f;
  --accent-soft: #d7ba9f;
  --border: #d7ccbf;
  --shadow: 0 20px 45px rgba(38, 27, 18, 0.14);
  --ticker-height: 38px;
  --header-height: 72px;
  --top-ui-height: 110px;
  --font-ui: "Manrope", "Segoe UI", sans-serif;
  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-copy: "Source Serif 4", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  line-height: 1.12;
  margin: 0 0 0.4em;
}

p {
  font-family: var(--font-copy);
  font-weight: 400;
  letter-spacing: 0;
  font-size: 0.98rem;
  line-height: 1.68;
}

h1 {
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 600;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
}

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.header-wrap .wrap {
  width: 100%;
}

.ticker {
  border-bottom: 1px solid #2c3d2e;
  background: #2c3d2e;
  color: white;
  font-size: 0.9rem;
  letter-spacing: 0.07em;
  overflow: hidden;
  white-space: nowrap;
  padding: 0.5rem 0;
}

.ticker-track {
  display: inline-flex;
  width: max-content;
  animation: ticker-flow 33.1s linear infinite;
}

.ticker-group {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  padding-right: 1.1rem;
}

.ticker-item {
  display: inline-block;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes ticker-flow {
  from {
    transform: translateX(100vw);
  }
  to {
    transform: translateX(-100%);
  }
}

.site-header {
  padding: 0 0.8rem;
  margin-top: -1px;
  position: sticky;
  top: 0;
  z-index: 5;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.header-wrap {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 0.8rem;
  width: 100%;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: brightness(0.12);
}

.brand {
  font-family: var(--font-heading);
  text-decoration: none;
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  letter-spacing: 0.04em;
}

.main-nav {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-toggle {
  display: none;
  color: var(--ink);
}

.main-nav a {
  text-decoration: none;
  padding: 0.35rem 0.4rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  border-color: var(--accent);
}

.page-content {
  width: 100%;
  /* padding: 0 0 4.5rem; */
}

.hero-video,
.hero-image {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  margin-bottom: 0;
}

.hero-video::after,
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-video::after {
  background: rgba(16, 10, 7, 0.18);
}

.hero-image::after {
  background: linear-gradient(0deg, rgba(16, 10, 7, 0.32), rgba(16, 10, 7, 0.02));
}

.hero-image .hero-title,
.hero-video .hero-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  margin: 0;
  width: min(90vw, 800px);
  text-align: center;
  color: #ffffff;
  font-size: clamp(2.1rem, 6.2vw, 5.2rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.hero-video video,
.hero-image img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.hero-video video {
  height: clamp(260px, 55vh, 620px);
}

#video-player-tag {
  width: 100%;
  height: calc(100svh - var(--ticker-height));
  min-height: 320px;
  object-fit: cover;
}

.hero-image img {
  height: calc(100svh - var(--ticker-height));
  min-height: 320px;
}

.image-with-credit {
  margin: 0;
}

.image-credit {
  margin: 0.55rem 0 0;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 60%, transparent);
  line-height: 1.2;
}

.hero-image > .image-credit {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  margin: 0;
  padding: 0.35rem 0.55rem;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
}

.landing-hero {
  margin-top: calc(-1 * var(--header-height));
  margin-bottom: 0;
}

.page-content > .hero-image:first-child + .section {
  margin-top: 4rem;
}

.section {
  width: 100%;
  max-width: 1120px;
  margin: 4rem auto 4rem;
  padding: 0 clamp(1.5rem, 4vw, 3.5rem);
}

.panel {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-align: center;
}

.panel h1,
.panel h2 {
  font-size: clamp(2.4rem, 5vw, 5rem);
}

.panel > p {
  font-size: clamp(0.98rem, 1.45vw, 1.16rem);
  max-width: 72ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}

.landing-hero + .section.panel > p,
.hero-image + .section.panel > p {
  font-size: clamp(1.06rem, 1.68vw, 1.26rem);
}

.home-page .landing-hero + .section.panel {
  min-height: calc(100svh - var(--top-ui-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-section {
  margin-top: 2.75rem;
  max-width: 1240px;
  padding-left: clamp(1rem, 2vw, 2rem);
  padding-right: clamp(1rem, 2vw, 2rem);
  min-height: calc(100svh - var(--top-ui-height));
  display: flex;
  align-items: center;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: start;
  width: 100%;
}

.about-image-wrap {
  width: 100%;
  display: grid;
  gap: 1rem;
}

.about-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  aspect-ratio: auto;
  border: 1px solid #e3d7cb;
}

.about-copy {
  text-align: left;
  max-width: 42rem;
}

.about-copy h1 {
  font-size: clamp(2.5rem, 4.4vw, 4rem);
  margin-bottom: 0.35em;
}

.about-copy p {
  margin: 0;
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  line-height: 1.72;
}

.carousel-wrap {
  position: relative;
  width: min(96vw, 1680px);
  margin-inline: auto;
  padding-inline: clamp(0.85rem, 2vw, 2rem);
  left: 50%;
  transform: translateX(-50%);
}

.card-carousel {
  --carousel-gap: clamp(1rem, 1.6vw, 1.5rem);
  --carousel-edge-spacer: calc((100% - (var(--carousel-gap) * 2)) / 3);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--carousel-gap) * 2)) / 3);
  gap: var(--carousel-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--carousel-gap);
  scrollbar-width: none;
}

.card-carousel::-webkit-scrollbar {
  display: none;
}

.card-carousel::before,
.card-carousel::after {
  content: "";
  display: block;
  width: var(--carousel-edge-spacer);
  height: 1px;
}

.carousel-btn {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  border: 1px solid var(--border);
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  font-size: 1.1rem;
  line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  backdrop-filter: blur(4px);
}

.carousel-btn:hover {
  background: var(--paper);
  border-color: var(--accent-soft);
}

.carousel-btn:disabled {
  opacity: 0;
  pointer-events: none;
}

.carousel-btn--prev {
  left: clamp(0.2rem, 0.8vw, 0.6rem);
}

.carousel-btn--next {
  right: clamp(0.2rem, 0.8vw, 0.6rem);
}

.card {
  background: transparent;
  border-radius: 0;
  overflow: hidden;
  border: none;
}

.card-carousel .card {
  scroll-snap-align: center;
  opacity: 0.2;
  transform: scale(0.98);
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-carousel .card.is-side {
  opacity: 0.5;
  transform: scale(0.99);
}

.card-carousel .card.is-center {
  opacity: 1;
  transform: scale(1);
}

.card-carousel .image-with-credit {
  height: clamp(280px, 32vw, 420px);
  overflow: hidden;
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.card-carousel .card img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
}

.card-carousel .card:not(.is-center) {
  cursor: pointer;
}

.card-body {
  padding: 0.85rem 0 0;
  flex: 1;
}

.card-body h3 {
  margin-bottom: 0.3em;
}

.card-body p {
  margin: 0;
  font-size: 0.93rem;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
  line-height: 1.55;
}

@media (max-width: 980px) {
  .card-carousel {
    grid-auto-columns: calc((100% - var(--carousel-gap)) / 2);
  }
}

@media (max-width: 900px) {
  .carousel-wrap {
    width: 100vw;
    padding-inline: 0;
  }

  .card-carousel {
    --carousel-gap: 0px;
    --carousel-edge-spacer: 0px;
    grid-auto-columns: 100%;
    scroll-padding-inline: 0;
  }

  .carousel-btn {
    top: 50%;
    width: 40px;
    height: 40px;
  }

  .carousel-btn--prev {
    left: 0.35rem;
  }

  .carousel-btn--next {
    right: 0.35rem;
  }
}

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

.gallery-item {
  margin: 0;
  position: relative;
  overflow: hidden;
}

.gallery-item .image-credit {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  margin: 0;
  padding: 0.35rem 0.55rem;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(20, 16, 12, 0.12);
}

.gallery-grid img {
  width: 100%;
  height: clamp(280px, 30vw, 420px);
  display: block;
  border-radius: 0;
  object-fit: cover;
  border: 1px solid #e3d7cb;
  cursor: pointer;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(18, 13, 9, 0.72);
  touch-action: pan-y;
}

.gallery-modal.is-open {
  display: flex;
}

.gallery-modal-image {
  max-width: min(92vw, 1180px);
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: 0;
  border: 1px solid color-mix(in srgb, var(--paper) 35%, transparent);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.42);
}

.gallery-modal-credit {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 1;
  margin: 0;
  padding: 0.35rem 0.55rem;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(20, 16, 12, 0.12);
  white-space: nowrap;
}

.gallery-modal-nav,
.gallery-modal-close {
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(14, 10, 7, 0.5);
  color: #fff;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  font-size: 1.6rem;
}

.gallery-modal-close {
  top: 1rem;
  right: 1rem;
}

.gallery-modal-nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
}

.gallery-modal-nav-prev {
  left: 1rem;
}

.gallery-modal-nav-next {
  right: 1rem;
}

.gallery-modal-nav:hover,
.gallery-modal-close:hover {
  background: rgba(14, 10, 7, 0.72);
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 980px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-modal-nav,
  .gallery-modal-close {
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0.25rem;
  }

  .gallery-modal-nav {
    font-size: 1.7rem;
  }

  .gallery-modal-nav-prev {
    left: 0.5rem;
  }

  .gallery-modal-nav-next {
    right: 0.5rem;
  }

  .gallery-modal-close {
    top: 0.5rem;
    right: 0.5rem;
    font-size: 1.9rem;
  }
}

.form-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  font-weight: 500;
  display: block;
  margin-bottom: 0.3rem;
}

input,
select,
textarea,
button {
  width: 100%;
  font: inherit;
}

input,
select,
textarea {
  padding: 0.7rem 0.85rem;
  border-radius: 9px;
  border: 1px solid #cdbbab;
  background: #fff;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

button {
  border: 0;
  padding: 0.9rem 2rem;
  border-radius: 10px;
  background: #408a71;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  filter: brightness(1.03);
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 760px) {
  .section {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .header-wrap {
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    min-height: 64px;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    padding: 0.4rem;
    cursor: pointer;
    width: auto;
    border-radius: 6px;
  }

  .nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .main-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1rem;
    width: 100%;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    padding: 0;
    margin-top: 0;
    border-top: 0;
    background: #ffffff;
    transition: max-height 0.28s ease, opacity 0.22s ease, padding 0.22s ease, margin-top 0.22s ease;
  }

  .main-nav.is-open {
    max-height: 420px;
    opacity: 1;
    pointer-events: auto;
    padding: 0.8rem 0 1rem;
    margin-top: 0.4rem;
  }

  .main-nav a {
    font-size: 1.08rem;
    padding: 0.25rem 0;
  }

  .home-page .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 8;
    width: 100%;
    margin-top: 0;
    border-top: 0;
    background: #ffffff;
    padding: 1rem 1.3rem;
  }

  .home-page .main-nav.is-open,
  .home-page.nav-stuck .main-nav.is-open {
    background: #ffffff;
    border-top: 1px solid var(--border);
    box-shadow: 0 16px 28px rgba(26, 18, 12, 0.08);
    padding: 1rem 1.3rem;
  }

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

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