* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: #080808;
  color: #f4f0e8;
  font-family: "Manrope", sans-serif;
}

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

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

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 9999;
  pointer-events: none;
}

.corner-logo {
  position: fixed;
  top: 24px;
  left: 5vw;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  pointer-events: auto;
}

.corner-logo img {
  width: auto;
  height: 26px;
}

.pill-nav {
  position: fixed;
  top: 24px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 28px;
  height: 52px;
  padding: 0 24px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  pointer-events: auto;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pill-nav a {
  transition: opacity 0.25s ease;
}

.pill-nav a:hover {
  opacity: 0.65;
}

/* Hero */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 100px 5vw 0;
  overflow: hidden;
}

.hero-video {
  display: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(to right, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.25)),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.7)),
    url("assets/hero4.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(
      circle at 55% 45%,
      rgba(255, 255, 255, 0.04),
      transparent 32%
    ),
    radial-gradient(
      circle at center,
      transparent 20%,
      rgba(0, 0, 0, 0.35) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1000px;
}

.eyebrow {
  margin: 0 0 22px;
  color: #c8bfae;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero-title {
  max-width: 900px;
  margin: 0;
  font-size: clamp(4rem, 9vw, 8rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.06em;
  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.4),
    0 12px 50px rgba(0, 0, 0, 0.5);
}

h2 {
  font-size: clamp(42px, 7vw, 100px);
}

.hero-copy {
  width: max-content;
  max-width: none;
  margin: 32px 0 0;
  color: rgba(244, 240, 232, 0.85);
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  line-height: 1.5;
  white-space: nowrap;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
}

/* Shared Sections */

.section {
  padding: 110px 5vw;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
}

.section-heading h2 {
  max-width: 850px;
}

/* Selected Work */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.work-card {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border-radius: 22px;
  background: #151515;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.work-card:focus-visible {
  outline: 2px solid #f4f0e8;
  outline-offset: 4px;
}

.work-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition:
    transform 0.7s ease,
    opacity 0.7s ease;
}

.work-card:hover img {
  transform: scale(1.04);
  opacity: 0.9;
}

.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent 60%);
}

.work-card div {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 2;
}

.work-card p {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.15;
}

.work-card span {
  color: #d3cabd;
  line-height: 1.4;
}

/* Approach */

.approach-section {
  background: #f4f0e8;
  color: #080808;
}

.approach-text {
  max-width: 980px;
}

.approach-section .eyebrow {
  color: #6f6659;
}

.approach-text p:last-child {
  margin: 34px 0 0;
  font-size: clamp(22px, 3vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

/* Image Collage */

.collage-section {
  padding-top: 90px;
  padding-bottom: 90px;
  background: #080808;
}

.image-collage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.image-collage img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 22px;
  filter: grayscale(100%);
  opacity: 0.82;
  transition:
    filter 0.45s ease,
    opacity 0.45s ease,
    transform 0.45s ease;
}

.image-collage img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.015);
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease,
    background 0.25s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.primary {
  background: #f4f0e8;
  color: #080808;
}

.secondary {
  border: 1px solid rgba(244, 240, 232, 0.5);
  color: #f4f0e8;
}

/* Contact */

.contact-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 70vh;
}

.contact-section h2 {
  max-width: 980px;
  margin-bottom: 36px;
}

.contact-disclaimer {
  max-width: 720px;
  margin: -12px 0 36px;
  color: rgba(244, 240, 232, 0.5);
  font-size: 12px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.7;
}

/* Footer */

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 5vw;
  border-top: 1px solid rgba(244, 240, 232, 0.15);
  color: #a9a093;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.footer-logo {
  width: auto;
  height: 84px;
  margin-bottom: 20px;
  opacity: 0.4;
  filter: sepia(1) hue-rotate(320deg) saturate(1.1) brightness(1.1);
}

footer p {
  max-width: 700px;
  margin: 0 auto 16px;
}

footer span {
  display: block;
}

/* Video Modal */

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 20px;
  background: rgba(0, 0, 0, 0.92);
}

.video-modal.active {
  display: flex;
}

.video-modal-content {
  position: relative;
  width: 90vw;
  max-width: 1400px;
  aspect-ratio: 16 / 9;
}

.video-modal iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 16px;
}

.video-close {
  position: absolute;
  top: -50px;
  right: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
}

/* Tablet */

@media (max-width: 900px) {
  .pill-nav {
    gap: 16px;
    padding: 0 20px;
    font-size: 11px;
  }

  .section {
    padding: 85px 5vw;
  }

  .section-heading {
    display: block;
  }

  .section-heading .eyebrow {
    margin-bottom: 20px;
  }

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

  .work-card {
    min-height: 420px;
  }

  .image-collage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-modal-content {
    width: 94vw;
  }
}

/* Mobile */

@media (max-width: 600px) {
  .corner-logo {
    top: 16px;
    left: 18px;
    height: 44px;
    padding: 0 14px;
  }

  .corner-logo img {
    height: 22px;
  }

  .pill-nav {
    display: none;
  }

  .hero {
    align-items: center;
    min-height: 100svh;
    padding: 110px 22px 60px;
  }

  .hero::before {
    background-position: 65% center;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
  }

  .eyebrow {
    max-width: 310px;
    margin-bottom: 18px;
    font-size: 10px;
    line-height: 1.6;
    letter-spacing: 0.14em;
  }

  .hero-title {
    max-width: 100%;
    font-size: clamp(3.25rem, 15vw, 5rem);
    line-height: 0.92;
    letter-spacing: -0.055em;
  }

  .hero-copy {
    width: auto;
    max-width: 100%;
    margin-top: 24px;
    font-size: 1rem;
    line-height: 1.55;
    white-space: normal;
  }

  h2 {
    font-size: clamp(2.6rem, 12vw, 4.25rem);
    line-height: 0.98;
  }

  .section {
    padding: 75px 22px;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .work-grid {
    gap: 16px;
  }

  .work-card {
    min-height: 240px;
    border-radius: 16px;
  }

  .work-card div {
    right: 18px;
    bottom: 18px;
    left: 18px;
  }

  .work-card p {
    margin-bottom: 5px;
    font-size: 20px;
  }

  .work-card span {
    font-size: 13px;
  }

  .work-card:nth-child(2) img {
    content: url("assets/Agua-mobile.png");
    object-position: center;
  }

  .approach-text p:last-child {
    margin-top: 28px;
    font-size: 22px;
    line-height: 1.28;
    letter-spacing: -0.025em;
  }

  .collage-section {
    padding-top: 55px;
    padding-bottom: 55px;
  }

  .image-collage {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .image-collage img {
    aspect-ratio: 16 / 10;
    border-radius: 16px;
  }

  .image-collage img:hover {
    transform: none;
  }

  .contact-section {
    min-height: auto;
  }

  .contact-section h2 {
    margin-bottom: 30px;
  }

  .contact-disclaimer {
    max-width: 100%;
    margin: 0 0 30px;
    font-size: 12px;
    line-height: 1.7;
  }

  .button {
    min-height: 54px;
    padding: 0 22px;
  }

  footer {
    padding: 60px 22px;
    font-size: 13px;
  }

  .footer-logo {
    height: 72px;
    margin-bottom: 18px;
  }

  .video-modal {
    padding-right: 12px;
    padding-left: 12px;
  }

  .video-modal-content {
    width: 94vw;
    max-width: none;
  }

  .video-modal iframe {
    border-radius: 10px;
  }

  .video-close {
    top: -46px;
    font-size: 38px;
  }
}

/* Respect reduced-motion settings */

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}