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

:root {
  --black: #0a0a0a;
  --white: #fafafa;
  --gray-100: #f2f2f2;
  --gray-300: #ccc;
  --gray-500: #888;
  --gray-700: #444;
  --header-height: 72px;
  --font-body: "Raleway", sans-serif;
  --font-display: "Oswald", sans-serif;
  --transition: 0.3s ease;
  --panel-transition: 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

body.panel-open {
  overflow: hidden;
}

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

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

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

/* Header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(12px);
  transition: background var(--transition);
}

body.panel-open .site-header {
  background: rgba(250, 250, 250, 0.95);
}

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

.logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.instagram-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  transition: opacity var(--transition);
}

.instagram-link:hover {
  opacity: 0.6;
}

.instagram-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--black);
  transition: width var(--transition);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.is-active::after {
  width: 100%;
}

/* Slider */

.slider {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.slide-bg {
  position: absolute;
  inset: 0;
  background-color: var(--black);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.slide-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.1) 45%,
    transparent 70%
  );
}

.slide-content {
  position: absolute;
  bottom: clamp(5rem, 12vh, 8rem);
  left: clamp(1.25rem, 4vw, 3rem);
  right: clamp(1.25rem, 4vw, 3rem);
  max-width: 720px;
  color: var(--white);
  z-index: 2;
  background: rgba(0, 0, 0, 0.38);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.slide-project {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.slide-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 0.5rem;
}

.slide-title {
  font-family: var(--font-body);
  font-size: clamp(0.875rem, 2vw, 1rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
  margin-bottom: 1.5rem;
}

.interested-btn {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.875rem 1.75rem;
  border: 1px solid var(--white);
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.interested-btn:hover {
  background: transparent;
  color: var(--white);
}

.slide-date {
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0;
  line-height: 1.25rem;
  opacity: 0.8;
  margin-top: 0.5rem;
}

.slider-controls {
  position: absolute;
  bottom: clamp(1.5rem, 4vh, 2.5rem);
  left: clamp(1.25rem, 4vw, 3rem);
  right: clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.slider-btn {
  font-size: 1.25rem;
  color: var(--white);
  opacity: 0.7;
  padding: 0.5rem;
  transition: opacity var(--transition);
}

.slider-btn:hover {
  opacity: 1;
}

.slider-dots {
  display: flex;
  gap: 0.625rem;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}

.slider-dot.is-active {
  background: var(--white);
  transform: scale(1.15);
}

/* Videos */

.videos {
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(2rem, 4vw, 3rem) clamp(0.5rem, 1.5vw, 1rem);
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.videos-heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
  text-align: center;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  padding: 0 clamp(0.75rem, 2vw, 1.5rem);
  flex-shrink: 0;
}

.videos-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.5rem, 1vw, 0.75rem);
  width: 100%;
  min-height: 0;
  align-items: stretch;
}

.video-thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: var(--black);
  cursor: pointer;
  aspect-ratio: 9 / 16;
  overflow: hidden;
}

.video-thumb-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.video-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.28);
  transition: background var(--transition);
}

.video-play-icon::after {
  content: "";
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 1.1rem no-repeat;
}

.video-thumb:hover .video-play-icon {
  background: rgba(0, 0, 0, 0.4);
}

/* Video player panel */

.video-panel-inner {
  max-width: 640px;
}

.video-panel-player-wrap {
  width: 100%;
  max-height: min(62vh, 720px);
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  background: var(--black);
}

.video-panel-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: var(--black);
}

.video-panel-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.375rem, 1vw, 0.625rem);
  margin-top: clamp(1rem, 2vw, 1.25rem);
}

.video-panel-thumb {
  position: relative;
  padding: 0;
  border: 2px solid transparent;
  background: var(--black);
  cursor: pointer;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 2px;
  transition: border-color var(--transition), opacity var(--transition);
}

.video-panel-thumb.is-active {
  border-color: var(--black);
}

.video-panel-thumb:not(.is-active):hover {
  opacity: 0.85;
}

.video-panel-thumb .video-thumb-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-panel-thumb .video-play-icon {
  background: rgba(0, 0, 0, 0.35);
}

.video-panel-thumb .video-play-icon::after {
  width: 1.75rem;
  height: 1.75rem;
  background-size: 0.65rem;
}

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

@media (max-width: 480px) {
  .videos {
    min-height: auto;
    padding-bottom: clamp(2rem, 4vw, 3rem);
  }

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

  .video-thumb {
    aspect-ratio: 9 / 16;
  }

  .video-panel-thumbs {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Footer */

.site-footer {
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem);
  background: var(--black);
  color: var(--white);
  text-align: center;
}

.site-footer .instagram-link {
  color: var(--white);
}

.site-footer .instagram-link:hover {
  opacity: 0.7;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--white);
  letter-spacing: 0.04em;
  margin-top: 1.25rem;
}

.footer-note {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Slide-up panels */

.panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10, 10, 10, 0.45);
  opacity: 0;
  transition: opacity var(--panel-transition);
  pointer-events: none;
}

.panel-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.slide-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 400;
  max-height: 92vh;
  background: var(--white);
  border-radius: 1rem 1rem 0 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(100%);
  transition: transform var(--panel-transition);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.slide-panel.is-open {
  transform: translateY(0);
}

.slide-panel-inner {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 2rem) clamp(2rem, 4vw, 3rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.panel-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 2;
  font-size: 2rem;
  line-height: 1;
  color: var(--gray-500);
  padding: 0.25rem 0.5rem 0.5rem;
  margin: -0.5rem -0.5rem 0 0;
  background: var(--white);
  box-shadow: 0 6px 12px -6px var(--white);
  cursor: pointer;
  transition: color var(--transition);
}

.panel-close:hover {
  color: var(--black);
}

.panel-heading {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
  text-align: center;
  color: var(--black);
  margin-bottom: 1rem;
}

.panel-intro {
  font-size: 0.875rem;
  color: var(--gray-700);
  margin-bottom: 2rem;
  line-height: 1.7;
  text-align: center;
}

.contact-copy {
  font-size: 0.875rem;
  color: var(--gray-700);
  margin-bottom: 2rem;
  line-height: 1.7;
  text-align: center;
}

.contact-intro {
  margin-bottom: 1rem;
}

.panel-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.booking-subheading {
  font-size: 1.25rem;
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}

.booking-thank-you {
  text-align: center;
  padding: 1rem 0 2rem;
}

.booking-thank-you-logo {
  display: block;
  width: 300px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 1.25rem;
}

.booking-thank-you-heading {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 1rem;
}

.booking-thank-you p {
  font-size: 0.875rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.booking-thank-you .panel-social {
  margin-bottom: 0;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.captcha-row {
  display: flex;
  justify-content: center;
}

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

.form-row label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.form-row label .required {
  color: #c0392b;
  text-transform: none;
  letter-spacing: 0;
}

.form-row input,
.form-row textarea,
.form-row select {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--gray-300);
  background: var(--white);
  color: var(--black);
  transition: border-color var(--transition);
  resize: vertical;
}

.form-row select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23888' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--black);
}

.form-row input.field-error,
.form-row textarea.field-error,
.form-row select.field-error {
  border-color: #c0392b;
}

.form-row input.field-error:focus,
.form-row textarea.field-error:focus,
.form-row select.field-error:focus {
  border-color: #c0392b;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--gray-300);
}

.submit-btn {
  align-self: center;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border: 1px solid var(--black);
  background: var(--black);
  color: var(--white);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.submit-btn:hover:not(:disabled) {
  background: transparent;
  color: var(--black);
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-status {
  font-size: 0.875rem;
  min-height: 1.25rem;
}

.form-status.success {
  color: var(--gray-700);
}

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

/* Responsive */

@media (max-width: 480px) {
  .logo {
    height: 36px;
  }

  .site-nav {
    gap: 1.25rem;
  }

  .nav-link {
    font-size: 0.75rem;
  }

  .slide-content {
    bottom: clamp(6rem, 18vh, 9rem);
  }
}
