/* ---------------------------------------------------
   Raised by Volcanoes — base styles
--------------------------------------------------- */

:root {
  --bg: #0a0a0a;
  --bg-alt: #101010;
  --fg: #f6f4ef;
  --fg-muted: rgba(246, 244, 239, 0.62);
  --fg-faint: rgba(246, 244, 239, 0.32);
  --hairline: rgba(246, 244, 239, 0.14);
  --nav-h: 84px;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* ---------------------------------------------------
   Navigation
--------------------------------------------------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  z-index: 100;
  background: transparent;
  transition: background 0.5s ease, padding 0.4s ease, border-color 0.5s ease;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.75rem, 3vw, 3rem);
  list-style: none;
}

.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--fg);
  transition: width 0.35s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--fg);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
}

.nav-toggle span {
  width: 24px;
  height: 1px;
  background: var(--fg);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ---------------------------------------------------
   Hero
--------------------------------------------------- */

.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s ease;
}

.hero-video video.is-ready {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.28) 40%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

.hero-logo {
  position: relative;
  z-index: 2;
  width: min(26vw, 230px);
  filter: drop-shadow(0 2px 24px rgba(0, 0, 0, 0.35));
  opacity: 0;
  transform: translateY(16px);
  animation: hero-logo-in 1.2s ease 0.3s forwards;
}

@keyframes hero-logo-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sound toggle for embedded videos */

.sound-toggle {
  position: absolute;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(246, 244, 239, 0.4);
  background: rgba(10, 10, 10, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  color: var(--fg);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.sound-toggle:hover {
  background: rgba(10, 10, 10, 0.75);
  border-color: var(--fg);
}

.sound-toggle svg {
  width: 18px;
  height: 18px;
  display: none;
}

.sound-toggle[data-muted="true"] .icon-muted {
  display: block;
}

.sound-toggle[data-muted="false"] .icon-unmuted {
  display: block;
}

.video-feature-media .sound-toggle {
  bottom: 1.25rem;
  right: 1.25rem;
}

.video-feature-expand {
  display: none;
}

/* ---------------------------------------------------
   Section helpers
--------------------------------------------------- */

.section {
  padding: clamp(5rem, 12vw, 9rem) clamp(1.5rem, 5vw, 4rem);
}

.section-alt {
  background: var(--fg);
  padding: clamp(2.25rem, 4vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
}

.section-alt .about-text h2,
.section-alt .about-text p {
  color: var(--bg);
}

/* Intro / welcome */

.intro {
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}

.intro-lead {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  line-height: 1.5;
  color: var(--fg);
}

.intro-body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--fg);
}

.intro-body + .intro-body {
  margin-top: 1.15rem;
}

.intro-lead + .intro-body {
  margin-top: 2.5rem;
}

/* About */

.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
}

.about-image {
  overflow: hidden;
  min-width: 0;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  filter: grayscale(0.15);
}

.about-text h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 1.6rem;
}

.about-text {
  min-width: 0;
}

.about-text p {
  font-size: 1rem;
  color: var(--fg);
  max-width: 60ch;
}

.about-text p + p {
  margin-top: 1.15rem;
}

/* Discover statement */

.discover {
  max-width: 1180px;
  margin: clamp(2rem, 5vw, 4rem) auto 0;
  text-align: center;
  border-top: 1px solid var(--hairline);
  padding-top: clamp(7rem, 15vw, 12rem);
  padding-bottom: clamp(1.5rem, 4vw, 3rem);
}

.discover h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.discover p {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--fg);
}

/* Video feature — text above, large video below (Music / Documentary / Festival After Movies) */

.video-feature {
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
  padding-top: clamp(3.5rem, 8vw, 6.5rem);
  padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
}

.video-feature + .video-feature {
  margin-top: clamp(1rem, 3vw, 2rem);
}

.video-feature-heading {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 1rem;
  margin-bottom: 1.2rem;
}

.video-feature-heading h3 {
  grid-column: 2;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
}

.video-feature-index {
  grid-column: 1;
  justify-self: start;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(3.5rem, 7vw, 6rem);
  line-height: 1;
  color: #2a2926;
  white-space: nowrap;
}

.video-feature > p {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--fg);
  max-width: 60ch;
  margin: 0 auto;
}

.video-feature-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--hairline);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.video-feature-media iframe {
  position: absolute;
  top: -64px;
  left: 50%;
  width: 100%;
  height: calc(100% + 64px);
  min-width: calc(100% * 16 / 9);
  transform: translateX(-50%);
}

.video-feature-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg);
  position: relative;
  padding-bottom: 4px;
}

.portfolio-contact-cta {
  margin-top: clamp(3.5rem, 7vw, 6rem);
}

.video-feature-cta::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--fg-faint);
  transition: background 0.3s ease;
}

.video-feature-cta:hover::after {
  background: var(--fg);
}

.closing-note {
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
  padding-top: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.closing-note p {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--fg);
}

/* ---------------------------------------------------
   Gallery
--------------------------------------------------- */

.gallery {
  padding-left: 0;
  padding-right: 0;
  padding-top: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: 0;
  margin-bottom: clamp(5rem, 11vw, 9rem);
}

.gallery-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  touch-action: pan-x;
}

.gallery-scroll::-webkit-scrollbar {
  display: none;
}

.gallery-track {
  display: flex;
  gap: 1rem;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  width: max-content;
}

.gallery-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  height: min(62vh, 560px);
}

.gallery-item img {
  height: 100%;
  width: auto;
  max-width: none;
  display: block;
  object-fit: cover;
  filter: grayscale(0.1);
}

.gallery-item img,
.photo-grid-item img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
}

.gallery-progress {
  position: relative;
  height: 2px;
  margin: 1.75rem clamp(1.5rem, 5vw, 4rem) 0;
  padding: 8px 0;
  cursor: pointer;
  touch-action: none;
}

.gallery-progress.is-dragging {
  cursor: grabbing;
}

.gallery-progress::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--hairline);
}

.gallery-progress-bar {
  position: absolute;
  top: 8px;
  left: 0;
  height: 2px;
  width: 20%;
  background: var(--fg);
  pointer-events: none;
}

/* ---------------------------------------------------
   Photography
--------------------------------------------------- */

.photography {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.photography h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.photo-grid {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  text-align: left;
}

.photo-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.photo-grid-item {
  overflow: hidden;
  background: var(--bg-alt);
}

.photo-grid-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.6s ease;
}

.photo-grid-item:hover img {
  transform: scale(1.03);
}

.photo-grid-item--extra {
  display: none;
}

/* ---------------------------------------------------
   Footer
--------------------------------------------------- */

.footer {
  border-top: 1px solid var(--hairline);
  padding: 1.5rem clamp(1.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-mark {
  height: 34px;
  width: auto;
  opacity: 0.85;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  display: flex;
  color: var(--fg-muted);
  transition: color 0.3s ease;
}

.footer-links svg {
  width: 20px;
  height: 20px;
}

.footer-links a:hover {
  color: var(--fg);
}

.footer-note {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--fg-faint);
  text-align: center;
  flex: 1;
}

/* ---------------------------------------------------
   Placeholder page (Portfolio / Contact)
--------------------------------------------------- */

/* ---------------------------------------------------
   Portfolio hero
--------------------------------------------------- */

.portfolio-hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.7) 45%,
    rgba(0, 0, 0, 0.85) 100%
  );
}

.portfolio-hero-text {
  position: relative;
  z-index: 2;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: var(--fg);
  text-align: center;
  max-width: 900px;
  padding: 0 1.5rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(16px);
  animation: hero-logo-in 1.2s ease 0.3s forwards;
}

/* ---------------------------------------------------
   Videography grid
--------------------------------------------------- */

.videography {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.videography h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.video-tile {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--hairline);
  padding: 0;
  cursor: pointer;
  display: block;
}

.video-tile-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.video-tile:hover .video-tile-thumb {
  transform: scale(1.04);
  opacity: 0.75;
}

.video-tile-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .video-tile:hover .video-tile-overlay {
    opacity: 1;
  }
}

.video-tile-title {
  padding: 1rem 1.1rem;
  color: var(--fg);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.video-tile-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid rgba(246, 244, 239, 0.5);
  background: rgba(10, 10, 10, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.video-tile:hover .video-tile-play {
  background: rgba(10, 10, 10, 0.75);
  border-color: var(--fg);
  transform: translate(-50%, -50%) scale(1.08);
}

.video-tile-play svg {
  width: 22px;
  height: 22px;
  margin-left: 3px;
}

.video-tile.is-unavailable {
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-tile.is-unavailable span {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--fg-faint);
}

.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 6, 6, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 4rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.video-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.video-lightbox-frame {
  position: relative;
  width: 100%;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-lightbox-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-lightbox-close {
  position: absolute;
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(246, 244, 239, 0.4);
  background: rgba(10, 10, 10, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.video-lightbox-close:hover {
  background: rgba(10, 10, 10, 0.75);
  border-color: var(--fg);
}

.video-lightbox-close svg {
  width: 18px;
  height: 18px;
}

.video-lightbox-title {
  display: none;
  color: var(--fg);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-align: center;
  padding-bottom: 0.9rem;
}

@media (max-width: 860px) {
  .video-lightbox-title:not(:empty) {
    display: block;
    padding-bottom: 2rem;
  }
}

.photo-grid-item img {
  cursor: pointer;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 6, 6, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 4rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.photo-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.photo-lightbox-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
}

.photo-lightbox-close,
.photo-lightbox-prev,
.photo-lightbox-next {
  position: fixed;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(246, 244, 239, 0.4);
  background: rgba(10, 10, 10, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.photo-lightbox-close:hover,
.photo-lightbox-prev:hover,
.photo-lightbox-next:hover {
  background: rgba(10, 10, 10, 0.75);
  border-color: var(--fg);
}

.photo-lightbox-close {
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
}

.photo-lightbox-close svg {
  width: 18px;
  height: 18px;
}

.photo-lightbox-prev,
.photo-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

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

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

.photo-lightbox-prev svg,
.photo-lightbox-next svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 640px) {
  .photo-lightbox-prev,
  .photo-lightbox-next {
    width: 38px;
    height: 38px;
  }
}

/* ---------------------------------------------------
   Newsletter
--------------------------------------------------- */

.newsletter {
  padding-top: clamp(0.75rem, 1.5vw, 1.25rem);
}

.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;
}

.newsletter-honeypot {
  position: absolute;
  left: -5000px;
}

.newsletter-frame {
  display: none;
}

.newsletter-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-inner h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
}

.newsletter-intro {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--fg-muted);
  margin-bottom: 2.25rem;
  text-wrap: pretty;
}

.newsletter-fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 460px;
  margin: 0 auto;
}

.newsletter-row {
  display: flex;
  align-items: stretch;
  gap: 1rem;
}

.newsletter-row input[type="email"],
.newsletter-row input[type="text"] {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  padding: 0.6rem 0;
  outline: none;
  border-radius: 0;
  transition: border-color 0.3s ease;
}

.newsletter-row input[type="email"]:focus,
.newsletter-row input[type="text"]:focus {
  border-color: var(--fg);
}

.newsletter-submit {
  flex: 0 0 auto;
  padding: 0.9rem 1.8rem;
  border: 1px solid var(--fg);
  background: transparent;
  color: var(--fg);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.newsletter-submit:hover {
  background: var(--fg);
  color: var(--bg);
}

.newsletter-success {
  display: none;
  margin-top: 1.5rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
}

.newsletter.is-subscribed .newsletter-form {
  display: none;
}

.newsletter.is-subscribed .newsletter-success {
  display: block;
}

@media (max-width: 640px) {
  .newsletter-row {
    flex-direction: column;
  }

  .newsletter-submit {
    align-self: center;
  }
}

/* ---------------------------------------------------
   Newsletter Popup
--------------------------------------------------- */

.newsletter-popup {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 5vw, 2rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.newsletter-popup.is-open {
  opacity: 1;
  pointer-events: auto;
}

.newsletter-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 6, 0.82);
}

.newsletter-popup-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--bg-alt);
  border: 1px solid var(--hairline);
  padding: clamp(2.25rem, 5vw, 3rem) clamp(1.75rem, 5vw, 2.5rem);
  text-align: center;
  transform: translateY(12px);
  transition: transform 0.4s ease;
}

.newsletter-popup.is-open .newsletter-popup-card {
  transform: translateY(0);
}

.newsletter-popup-card .newsletter-inner {
  max-width: none;
}

.newsletter-popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.newsletter-popup-close:hover {
  background: rgba(246, 244, 239, 0.08);
  border-color: var(--fg);
}

.newsletter-popup-close svg {
  width: 16px;
  height: 16px;
}

.newsletter-popup.is-subscribed .newsletter-form {
  display: none;
}

.newsletter-popup.is-subscribed .newsletter-success {
  display: block;
}

/* ---------------------------------------------------
   Contact
--------------------------------------------------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
  max-width: 1240px;
  margin: 0 auto;
  margin-bottom: clamp(5rem, 11vw, 9rem);
}

.contact-image {
  overflow: hidden;
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  min-width: 0;
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  filter: grayscale(0.15);
}

.contact-form-wrap {
  min-width: 0;
}

.contact-form-wrap h1,
.contact-form-wrap h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 1.2rem;
}

.contact-intro {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--fg-muted);
  max-width: 46ch;
  margin-bottom: 2.75rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-row-split .form-row {
  gap: 0.6rem;
}

.contact-form label {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  padding: 0.6rem 0;
  outline: none;
  border-radius: 0;
  transition: border-color 0.3s ease;
}

.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 1.6rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  color: var(--fg-muted);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6f4ef' stroke-width='1.5'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 14px;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.contact-form select:valid {
  color: var(--fg);
}

.contact-form select option {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  letter-spacing: 0.02em;
  padding: 0.5rem;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--fg);
}

.contact-form textarea {
  resize: vertical;
  min-height: 110px;
}

.contact-submit {
  align-self: flex-start;
  margin-top: 0.5rem;
  padding: 0.9rem 2.4rem;
  border: 1px solid var(--fg);
  background: transparent;
  color: var(--fg);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.contact-submit:hover {
  background: var(--fg);
  color: var(--bg);
}

.form-status {
  margin: 0.75rem 0 0;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  min-height: 1.2em;
}

.form-status-success {
  color: #6fbf73;
}

.form-status-error {
  color: #e07a6c;
}

.section-alt .contact-form-wrap h1,
.section-alt .contact-form-wrap h2,
.section-alt .contact-intro,
.section-alt .contact-form label {
  color: var(--bg);
}

.section-alt .contact-form input,
.section-alt .contact-form textarea {
  color: var(--bg);
  border-bottom-color: rgba(10, 10, 10, 0.25);
}

.section-alt .contact-form select {
  color: rgba(10, 10, 10, 0.55);
  border-bottom-color: rgba(10, 10, 10, 0.25);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='1.5'><path d='M6 9l6 6 6-6'/></svg>");
}

.section-alt .contact-form select:valid {
  color: var(--bg);
}

.section-alt .contact-form select option {
  background: var(--fg);
  color: var(--bg);
  font-family: var(--sans);
  letter-spacing: 0.02em;
  padding: 0.5rem;
}

.section-alt .contact-form input:focus,
.section-alt .contact-form select:focus,
.section-alt .contact-form textarea:focus {
  border-bottom-color: var(--bg);
}

.section-alt .contact-submit {
  border-color: var(--bg);
  color: var(--bg);
}

.section-alt .contact-submit:hover {
  background: var(--bg);
  color: var(--fg);
}

/* ---------------------------------------------------
   Contact page (standalone) — isolated from the
   homepage's embedded contact section above, so nothing
   here ever affects .contact on the homepage.
--------------------------------------------------- */

.contact-page {
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  max-width: 1400px;
  align-items: start;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  padding-top: calc(var(--nav-h) + 5rem);
}

.contact-page .contact-image {
  overflow: hidden;
}

.contact-page .contact-image img {
  aspect-ratio: unset;
  width: 100%;
  height: 100%;
  display: block;
}

.contact-page .contact-form-wrap h1 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  margin-bottom: 0.6rem;
}

.contact-page .contact-intro {
  color: var(--fg);
  max-width: none;
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.contact-page .contact-form {
  gap: 0.9rem;
}

.contact-page .form-row {
  gap: 0.35rem;
}

.contact-page .contact-form textarea {
  min-height: 64px;
}

.contact-page .contact-submit {
  margin-top: 0.2rem;
}

/* ---------------------------------------------------
   Scroll reveal
--------------------------------------------------- */

.reveal > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal.is-visible > *:nth-child(1) { transition-delay: 0s; }
.reveal.is-visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal.is-visible > *:nth-child(3) { transition-delay: 0.2s; }
.reveal.is-visible > *:nth-child(4) { transition-delay: 0.3s; }
.reveal.is-visible > *:nth-child(5) { transition-delay: 0.4s; }

/* ---------------------------------------------------
   Responsive
--------------------------------------------------- */

@media (max-width: 1024px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .photo-grid {
    flex-wrap: wrap;
  }

  .photo-col:nth-child(3) {
    flex-basis: 100%;
  }
}

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

  .photo-grid {
    gap: 0.75rem;
  }

  .photo-col {
    gap: 0.75rem;
  }

  .photo-col.is-empty {
    display: none;
  }

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

  .contact-image {
    position: static;
    aspect-ratio: 4 / 3;
    justify-self: stretch;
  }

  .contact-image img {
    aspect-ratio: 4 / 3;
  }

  .contact-page .contact-image img {
    aspect-ratio: 4 / 3;
    height: auto;
  }

  .form-row-split {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .video-feature-heading {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 0.25rem;
  }

  .video-feature-heading h3 {
    grid-column: 1;
  }

  .contact-submit {
    align-self: center;
  }

  .contact-form-wrap h1,
  .contact-form-wrap h2 {
    text-align: center;
  }

  .closing-note p {
    margin-bottom: 1.8rem;
  }

  .video-feature-expand {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 2;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
  }

  .video-feature-expand-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(246, 244, 239, 0.4);
    background: rgba(10, 10, 10, 0.45);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fg);
  }

  .video-feature-expand-icon svg {
    width: 18px;
    height: 18px;
  }

  .video-feature-index {
    grid-column: 1;
    justify-self: center;
    font-size: clamp(2.5rem, 12vw, 3.5rem);
  }

  .nav-links {
    position: fixed;
    inset: 0;
    height: 100vh;
    background: rgba(8, 8, 8, 0.98);
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
    transform: translateY(-100%);
    transition: transform 0.5s ease;
  }

  .nav-links.is-open {
    transform: translateY(0);
  }

  .nav-links a {
    font-size: 1rem;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

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

  .about-image {
    order: -1;
  }

  .footer {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .footer {
    flex-wrap: wrap;
    row-gap: 0.9rem;
  }

  .footer-mark {
    order: 1;
  }

  .footer-links {
    order: 2;
  }

  .footer-note {
    order: 3;
    flex: 1 1 100%;
  }
}
