/* =========================================================
   Undeniable Creative Studio stylesheet
   ========================================================= */

:root {
  --bg: #181818;
  --text: #ebebeb;
  --text-muted: #8f8f8f;
  --line: rgba(235, 235, 235, 0.14);

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", "Roboto Mono", Consolas, monospace;

  --edge: clamp(20px, 6vw, 64px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100svh;
}

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

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

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

/* =========================================================
   Full-screen video background
   ========================================================= */

.bg-video-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg);
}

.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.bg-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(24, 24, 24, 0.55) 0%,
    rgba(24, 24, 24, 0.1) 18%,
    rgba(24, 24, 24, 0.1) 55%,
    rgba(24, 24, 24, 0.75) 82%,
    rgba(24, 24, 24, 0.92) 100%
  );
}

/* =========================================================
   Page layout
   ========================================================= */

.page {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

/* Nav */

.landing-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: clamp(20px, 4vh, 36px) var(--edge) 0;
}

.landing-logo {
  grid-column: 2;
  justify-self: center;
}

.landing-logo img {
  height: clamp(26px, 3.6vw, 36px);
  width: auto;
  opacity: 0.95;
}

.landing-nav-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  background: none;
  border: none;
  padding: 4px 2px;
  cursor: pointer;
  position: relative;
}

.landing-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 1px;
  background: var(--text);
  transition: width 0.3s var(--ease);
}

.landing-nav-link:hover::after {
  width: 100%;
}

.landing-nav-info {
  grid-column: 1;
  justify-self: start;
}

.landing-nav-talk {
  grid-column: 3;
  justify-self: end;
}

.landing-nav-hamburger {
  display: none;
  grid-column: 3;
  justify-self: end;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 26px;
  height: 20px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.landing-nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
}

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

  .landing-logo {
    grid-column: 1;
    justify-self: start;
  }

  .landing-nav-info,
  .landing-nav-talk {
    display: none;
  }

  .landing-nav-hamburger {
    display: flex;
  }
}

/* Mobile nav menu */

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(10, 10, 10, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.mobile-nav-backdrop:not([hidden]) {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.mobile-nav-menu {
  position: fixed;
  top: clamp(64px, 12vh, 88px);
  right: var(--edge);
  z-index: 501;
  flex-direction: column;
  gap: 2px;
  min-width: 170px;
  background: var(--bg-raised, #1f1f1f);
  border: 1px solid var(--line);
  padding: 8px;
  transform-origin: top right;
  transform: scale(0.95);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.2s var(--ease), opacity 0.2s ease, visibility 0s linear 0.2s;
}

.mobile-nav-menu:not([hidden]) {
  display: flex;
  transform: scale(1);
  opacity: 1;
  visibility: visible;
  transition: transform 0.2s var(--ease), opacity 0.2s ease, visibility 0s linear 0s;
}

.mobile-nav-link {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  padding: 12px 14px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.mobile-nav-link:hover {
  background: rgba(235, 235, 235, 0.06);
}

/* Main / tagline */

.landing-main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: 40px var(--edge) clamp(20px, 3.5vh, 32px);
  gap: clamp(16px, 2.5vh, 22px);
}

.landing-tagline {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(20px, 3.4vw, 34px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0;
}

/* Footer */

.landing-footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: clamp(16px, 3vh, 22px) var(--edge);
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-muted);
}

.landing-copyright {
  margin: 0;
}

.landing-footer-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.landing-privacy {
  transition: color 0.2s ease;
}

.landing-privacy:hover {
  color: var(--text);
}

.cookie-manage-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-links a {
  display: inline-flex;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.social-links a:hover {
  color: var(--text);
}

@media (max-width: 480px) {
  .landing-footer {
    flex-direction: column;
    text-align: center;
  }
}

/* =========================================================
   Cookie consent banner
   ========================================================= */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 600;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px var(--edge);
  background: var(--bg-raised, #1f1f1f);
  border-top: 1px solid var(--line);
  transform: translateY(0);
  transition: transform 0.3s var(--ease), opacity 0.3s ease;
}

.cookie-banner[hidden] {
  display: flex;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.cookie-banner-text {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  max-width: 56ch;
}

.cookie-learn-more {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-banner-actions button {
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.01em;
  padding: 10px 20px;
  border-radius: 0;
  cursor: pointer;
  transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.cookie-accept {
  background: var(--text);
  color: var(--bg);
}

.cookie-accept:hover {
  opacity: 0.85;
}

.cookie-decline {
  background: transparent;
  color: var(--text-muted);
}

.cookie-decline:hover {
  color: var(--text);
}

@media (max-width: 560px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cookie-banner-actions {
    justify-content: center;
  }
}

.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 700;
  background: rgba(10, 10, 10, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.cookie-modal-backdrop:not([hidden]) {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.cookie-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 701;
  width: min(90vw, 440px);
  max-height: min(80vh, 560px);
  overflow-y: auto;
  background: var(--bg-raised, #1f1f1f);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: 0 30px 80px -12px rgba(0, 0, 0, 0.65), 0 10px 30px rgba(0, 0, 0, 0.4);
  padding: clamp(28px, 5vw, 36px);
  transform: translate(-50%, -50%) scale(0.97);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.25s var(--ease), opacity 0.25s ease, visibility 0s linear 0.25s;
}

.cookie-modal:not([hidden]) {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
  transition: transform 0.25s var(--ease), opacity 0.25s ease, visibility 0s linear 0s;
}

.cookie-modal h2 {
  font-size: 20px;
  margin: 0 0 16px;
  padding-right: 24px;
}

.cookie-modal p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 14px;
}

.cookie-modal-link {
  display: inline-block;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--text);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.cookie-modal-link:hover {
  color: var(--text-muted);
  border-color: var(--text-muted);
}

.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  line-height: 1;
  padding: 4px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.cookie-modal-close:hover {
  color: var(--text);
}

/* =========================================================
   Contact modal ("Let's Talk")
   ========================================================= */

.contact-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: rgba(10, 10, 10, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.contact-modal-backdrop:not([hidden]) {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.contact-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 801;
  width: min(94vw, 800px);
  max-height: min(90vh, 640px);
  overflow-y: auto;
  background: var(--bg-raised, #1f1f1f);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: 0 30px 80px -12px rgba(0, 0, 0, 0.65), 0 10px 30px rgba(0, 0, 0, 0.4);
  padding: clamp(28px, 5vw, 36px);
  transform: translate(-50%, -50%) scale(0.97);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.25s var(--ease), opacity 0.25s ease, visibility 0s linear 0.25s;
}

.contact-modal:not([hidden]) {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
  transition: transform 0.25s var(--ease), opacity 0.25s ease, visibility 0s linear 0s;
}

.contact-modal-grid {
  display: flex;
  align-items: flex-start;
  gap: clamp(28px, 4vw, 48px);
}

.contact-modal-aside {
  flex: 0 0 220px;
  padding-right: clamp(28px, 4vw, 48px);
  border-right: 1px solid var(--line);
  text-align: left;
}

.contact-modal h2 {
  font-size: 22px;
  margin: 0 0 8px;
}

.contact-modal-intro {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.contact-modal-email-block {
  margin-top: clamp(28px, 6vh, 48px);
}

.contact-modal-email-prompt {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.contact-modal-email-link {
  display: inline-block;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  padding: 2px 6px 4px;
  margin-left: -6px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.contact-modal-email-link:hover {
  color: var(--bg);
  background: var(--text);
}

@media (max-width: 640px) {
  .contact-modal-grid {
    flex-direction: column;
    gap: 24px;
  }

  .contact-modal-aside {
    flex: 1 1 auto;
    width: auto;
    padding-right: 0;
    padding-bottom: 22px;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
}

.contact-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  line-height: 1;
  padding: 4px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.contact-modal-close:hover {
  color: var(--text);
}

.contact-form {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.contact-form-field label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-form-field input,
.contact-form-field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 8px 2px;
  resize: vertical;
  transition: border-color 0.2s ease;
}

.contact-form-field input::placeholder,
.contact-form-field textarea::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

.contact-form-field input:focus,
.contact-form-field textarea:focus {
  outline: none;
  border-color: var(--text);
}

.contact-form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form-submit {
  align-self: flex-start;
  margin-top: 4px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--bg);
  background: var(--text);
  border: none;
  padding: 13px 28px;
  border-radius: 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.contact-form-submit:hover {
  opacity: 0.85;
}

.contact-form-submit:disabled {
  opacity: 0.55;
  cursor: default;
}

.contact-form-status {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  min-height: 16px;
  margin: -6px 0 0;
}

/* =========================================================
   Info page
   ========================================================= */

.info-page {
  flex: 1 0 auto;
}

.info-hero {
  max-width: 900px;
  padding: clamp(48px, 8vh, 88px) var(--edge) clamp(40px, 6vh, 64px);
}

.info-hero-heading {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
}

.info-hero-copy p {
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 62ch;
  margin: 0 0 28px;
}

.info-cta {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  background: none;
  border: none;
  border-bottom: 1px solid var(--text);
  padding: 0 0 3px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.info-cta:hover {
  color: var(--text-muted);
  border-color: var(--text-muted);
}

.info-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 80vh;
  overflow: hidden;
  background: var(--bg-raised, #1f1f1f);
}

.info-media-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.info-values {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: clamp(32px, 6vw, 80px);
  padding: clamp(56px, 10vh, 110px) var(--edge);
}

.info-values-heading {
  position: sticky;
  top: clamp(24px, 6vh, 48px);
  align-self: start;
}

.info-values-heading h2 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0;
}

.info-values-list {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vh, 40px);
}

.info-value h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 12px;
}

.info-value p {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 800px) {
  .info-values {
    grid-template-columns: 1fr;
  }

  .info-values-heading {
    position: static;
  }
}

/* =========================================================
   Legal pages (Privacy)
   ========================================================= */

.legal-body {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

.legal-nav {
  border-bottom: 1px solid var(--line);
  padding-bottom: clamp(20px, 4vh, 36px);
}

.legal-content {
  flex: 1 0 auto;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(48px, 8vh, 88px) var(--edge) 80px;
}

.legal-content h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  margin: 0 0 8px;
}

.legal-updated {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 40px;
}

.legal-content h2 {
  font-size: clamp(20px, 2.6vw, 26px);
  margin: 48px 0 16px;
}

.legal-content h3 {
  font-size: 17px;
  margin: 32px 0 12px;
}

.legal-content p {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 16px;
}

.legal-content ul {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 16px;
  padding-left: 20px;
}

.legal-content a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: var(--text-muted);
}

.legal-inline-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.legal-inline-link:hover {
  color: var(--text-muted);
}

.legal-footer {
  border-top: 1px solid var(--line);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
