/* Undisclosed Productions - static rebuild of the Framer site */

:root {
  --nav-h: 64px;
  --blue: #0088ff;
  --grey: #777;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

.site-nav {
  position: relative;
  z-index: 20;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 20px;
  background: #000;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.09);
  overflow: hidden;
}

.nav-top { display: flex; align-items: center; padding: 10px 0 10px 10px; }
.nav-brand { display: block; flex: none; }
.nav-logo { width: 132px; height: 132px; }
.nav-spacer { width: 26px; height: 24px; flex: none; }

.nav-links { display: flex; align-items: center; gap: 20px; }

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  line-height: 2em;
  letter-spacing: -0.01em;
  color: #fff;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--blue);
  text-decoration: underline;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 2px;
  border-radius: 10px;
  background: #999;
  transition: transform 0.3s ease, top 0.3s ease;
}
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 24px; }
.site-nav.open .nav-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.site-nav.open .nav-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Full-bleed video backgrounds ---------- */

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.hero {
  position: relative;
  height: 616px;
  overflow: hidden;
  background: #111;
}

.hero h1 {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 20px;
  text-align: center;
  font-size: 52px;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  z-index: 1;
}

/* ---------- Slideshow ---------- */

.slideshow {
  position: relative;
  height: 400px;
  overflow: hidden;
  background: #000;
}

.slides { display: flex; height: 100%; will-change: transform; }
.slide { flex: 0 0 100%; height: 100%; }
.slide img { width: 100%; height: 100%; object-fit: cover; }

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
}
.arrow:hover { background: rgba(0, 0, 0, 0.4); }
.arrow.prev { left: 20px; }
.arrow.next { right: 20px; }

.dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 50px;
  background: rgba(0, 0, 0, 0.2);
  z-index: 2;
}
.dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  opacity: 0.5;
  cursor: pointer;
}
.dots button[aria-current="true"] { opacity: 1; }

/* ---------- Brands strip ---------- */

.brands {
  background: #fff;
  color: #000;
  padding: 33px 20px 34px;
  text-align: center;
}

.brands h2 { font-size: 17px; font-weight: 400; line-height: 1.2; margin-bottom: 6px; }

.brand-row {
  max-width: 896px;
  height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-row img { flex: none; object-fit: contain; }

/* ---------- Services ---------- */

.features { background: #000; padding: 80px 20px; }

.features-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.card img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.card h3 {
  margin: 20px 0 10px;
  font-size: 24px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
  text-align: center;
}

.card p {
  max-width: 320px;
  margin: 0 auto;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--grey);
  text-align: center;
}

/* ---------- About ---------- */

.about { background: #000; padding: 39px 20px; }

.about-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}

.about-text { width: 320px; max-width: 100%; margin: 0 auto; }

.about-text h2 {
  margin-bottom: 15px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
}

.about-text p {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #fff;
}
.about-text p + p { margin-top: 1.2em; }

.about-image { height: 480px; }
.about-image img {
  width: calc(100% + 21px);
  max-width: none;
  height: 480px;
  margin-left: -10px;
  object-fit: cover;
}

/* ---------- Contact section + form ---------- */

.contact-section {
  position: relative;
  min-height: 746px;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #222;
}

/* Dark wash over the looping video, as in the original */
.contact-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.47);
}

.contact-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-heading {
  padding: 19px 0;
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
}

.contact-form {
  position: relative;
  width: min(437px, 100%);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field { display: flex; flex-direction: column; gap: 10px; }
.field span { font-size: 12px; font-weight: 500; line-height: 1.2; color: #fff; }

.field input,
.field textarea {
  width: 100%;
  height: 40px;
  padding: 12px;
  border: 1px solid rgba(136, 136, 136, 0.1);
  border-radius: 10px;
  background: rgba(187, 187, 187, 0.15);
  color: #fff;
  font: 400 14px/1.2 var(--font);
  letter-spacing: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  outline: none;
}
.field textarea { height: 96px; min-height: 40px; resize: vertical; }

.field input:focus-visible,
.field textarea:focus-visible {
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.btn {
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: #333;
  color: #fff;
  font: 600 14px/1 var(--font);
  cursor: pointer;
  transition: background 0.2s ease;
}
.btn:hover { background: #444; }
.btn:disabled { opacity: 0.6; cursor: default; }

.form-status { min-height: 1.2em; font-size: 13px; color: #fff; text-align: center; }

/* Spam trap: keep off-screen, never display:none */
.hp { position: absolute; left: -9999px; }

.contact-page .contact-section { min-height: calc(100vh - var(--nav-h)); }

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

.portfolio { background: #000; padding: 80px 20px 120px; }
.portfolio-inner { max-width: 1562px; margin: 0 auto; }

.portfolio h2 {
  margin-bottom: 73px;
  text-align: center;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
}

.portfolio .category + .category { margin-top: 110px; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 60px clamp(24px, 5.6vw, 102px);
}

.yt {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111 center / cover no-repeat;
}
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Thank-you / 404 pages ---------- */

.message-page {
  min-height: calc(100vh - var(--nav-h));
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
}
.message-page h1 { font-size: 40px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.message-page p { font-size: 20px; font-weight: 500; color: var(--grey); }
.message-page .btn { display: inline-grid; place-items: center; padding: 0 28px; }

/* ---------- Tablet / phone ---------- */

@media (max-width: 809px) {
  .site-nav { display: block; transition: height 0.3s ease; }
  .site-nav.open { height: auto; }
  .nav-top { width: 100%; padding: 10px; justify-content: space-between; }
  .nav-logo { width: 48px; height: 48px; }
  .nav-spacer { display: none; }
  .nav-toggle { display: block; }
  .nav-links { display: none; flex-direction: column; align-items: flex-start; gap: 0; padding: 20px; }
  .site-nav.open .nav-links { display: flex; }
  .nav-links a { font-family: "Inter Tight", var(--font); font-size: 32px; font-weight: 600; line-height: 1.5em; letter-spacing: 0; }

  .hero h1 { font-size: 26px; }
  .slideshow { height: 203px; }

  .brands { padding: 33px 20px 40px; }
  .brand-row { height: auto; max-width: 340px; flex-wrap: wrap; justify-content: center; gap: 20px 24px; margin-top: 14px; }

  .features { padding: 40px 20px; }
  .features-inner { grid-template-columns: 1fr; max-width: 350px; gap: 20px; }
  .card { padding-bottom: 40px; }
  .card img { aspect-ratio: 1; }

  .about { padding: 40px 20px; }
  .about-inner { grid-template-columns: 1fr; max-width: 417px; gap: 20px; }
  .about-image { order: -1; height: auto; }
  .about-image img { width: 100%; height: auto; aspect-ratio: 417 / 363; margin-left: 0; }
  .about-text h2 { font-size: 24px; margin-bottom: 10px; }
  .about-text { width: 100%; max-width: 320px; }

  .contact-section { min-height: 746px; }
  .hide-phone { display: none; }
  .contact-form { width: min(315px, 100%); }

  .portfolio { padding: 50px 20px 80px; }
  .portfolio h2 { font-size: 32px; margin-bottom: 36px; }
  .portfolio .category + .category { margin-top: 70px; }
  .video-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (min-width: 810px) and (max-width: 1100px) {
  .card p { font-size: 18px; }
}
