/* ============================================
   REALMOTION — shared styles
   ============================================ */

:root {
  --bg: #0a0a0a;
  --bg-soft: #111111;
  --text: #f5f5f2;
  --muted: rgba(245, 245, 242, 0.62);
  --muted-dim: rgba(245, 245, 242, 0.38);
  --line: rgba(245, 245, 242, 0.14);
  --white: #ffffff;
  --nav-h: 88px;
  --container: 1360px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
  border-radius: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

.headline-font {
  font-family: 'Anton', 'Manrope', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
}

.nav-inner {
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 17px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(245, 245, 242, 0.09);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(245, 245, 242, 0.16);
  border-radius: 999px;
  padding: 6px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--muted);
  position: relative;
  padding: 11px 22px;
  border-radius: 999px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.nav-link:hover {
  color: var(--white);
  background: rgba(245, 245, 242, 0.08);
}

.nav-link.is-active {
  color: #0a0a0a;
  background: var(--white);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
  white-space: nowrap;
}

.btn-light {
  background: var(--white);
  color: #0a0a0a;
}

.btn-light:hover {
  transform: translateY(-2px);
  background: #e9e9e6;
}

.btn-light:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-outline {
  border: 1px solid var(--line);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--white);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 11px;
}

.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* ---------- Full-bleed section (hero / page header) ---------- */

.fb-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.fb-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.fb-media video,
.fb-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.fb-gradient-bottom {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0) 40%, rgba(10, 10, 10, 0.55) 78%, rgba(10, 10, 10, 0.92) 100%);
}

.fb-gradient-side {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(10, 10, 10, 0.96) 0%, rgba(10, 10, 10, 0.82) 22%, rgba(10, 10, 10, 0.35) 48%, rgba(10, 10, 10, 0) 68%);
}

.fb-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 clamp(24px, 5vw, 80px) 72px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.fb-title {
  font-size: clamp(40px, 6vw, 84px);
  line-height: 0.98;
  color: var(--white);
}

.fb-subtitle {
  max-width: 360px;
  font-size: 14px;
  color: var(--muted);
  text-align: right;
  line-height: 1.6;
}

/* Page header variant (shorter than full hero, used on interior pages) */
.page-header {
  min-height: 78vh;
}

.page-header .fb-content {
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.page-header .fb-subtitle {
  text-align: left;
  max-width: 480px;
}

/* ---------- About-style split header (matches reference "About" page) ---------- */

.split-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  overflow: hidden;
}

.split-hero .fb-media {
  left: 28%;
}

.split-hero .fb-media img {
  object-position: center 30%;
}

.split-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px) 100px;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
}

.split-hero-text {
  max-width: 520px;
  padding-bottom: 8px;
}

.split-hero-text h1 {
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 18px;
  color: var(--white);
}

.split-hero-text p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 480px;
}

.split-hero-text p + p {
  margin-top: 16px;
}

/* ---------- Generic section spacing ---------- */

.section {
  padding: 130px 0;
  position: relative;
}

.section-tight {
  padding: 90px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.section-header h2 {
  font-size: clamp(30px, 4vw, 46px);
  color: var(--white);
}

.section-header p {
  max-width: 380px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

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

.work-grid .reveal:nth-child(2) { transition-delay: 0.06s; }
.work-grid .reveal:nth-child(3) { transition-delay: 0.12s; }
.work-grid .reveal:nth-child(4) { transition-delay: 0.18s; }
.work-grid .reveal:nth-child(5) { transition-delay: 0.24s; }
.work-grid .reveal:nth-child(6) { transition-delay: 0.3s; }

.service-list .reveal:nth-child(2) { transition-delay: 0.06s; }
.service-list .reveal:nth-child(3) { transition-delay: 0.12s; }
.service-list .reveal:nth-child(4) { transition-delay: 0.18s; }
.service-list .reveal:nth-child(5) { transition-delay: 0.24s; }
.service-list .reveal:nth-child(6) { transition-delay: 0.3s; }

/* ---------- Work / portfolio grid ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.work-card {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  display: block;
  width: 100%;
  text-align: left;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.work-card:hover img {
  transform: scale(1.06);
}

.work-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0) 45%, rgba(10, 10, 10, 0.88) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
}

.work-card-cat {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.work-card-title {
  font-size: 19px;
  font-weight: 600;
  color: var(--white);
}

.work-card.is-placeholder {
  background: var(--bg-soft);
  border: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-card.is-placeholder .placeholder-inner {
  text-align: center;
  color: var(--muted-dim);
}

.work-card.is-placeholder .placeholder-inner span {
  display: block;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 8px;
}

.work-card.is-placeholder .plus {
  font-family: 'Anton', sans-serif;
  font-size: 34px;
  color: var(--muted-dim);
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: border-color 0.3s var(--ease), gap 0.3s var(--ease);
}

.view-all-link:hover {
  border-color: var(--white);
  gap: 14px;
}

/* ---------- Services / approach list ---------- */

.service-list {
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 90px 1fr 1.2fr;
  gap: 40px;
  align-items: center;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease);
}

.service-row:hover {
  background: rgba(245, 245, 242, 0.03);
}

.service-index {
  font-family: 'Anton', sans-serif;
  font-size: 15px;
  color: var(--muted-dim);
}

.service-row h3 {
  font-size: 22px;
  color: var(--white);
  font-weight: 600;
}

.service-row p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ---------- CTA band ---------- */

.cta-band {
  padding: 120px 0;
  text-align: center;
  border-top: 1px solid var(--line);
}

.cta-band h2 {
  font-size: clamp(30px, 5vw, 56px);
  color: var(--white);
  margin-bottom: 30px;
}

.cta-band p {
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 38px;
  font-size: 15px;
}

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

.footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 34px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 48px;
}

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

.footer-logo p {
  color: var(--muted);
  font-size: 14px;
  max-width: 280px;
  line-height: 1.6;
}

.footer-cols {
  display: flex;
  gap: 80px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 18px;
}

.footer-col a,
.footer-col span {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
  transition: color 0.25s var(--ease);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 14px;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--muted-dim);
}

.footer-legal {
  padding-top: 14px;
}

.footer-legal p {
  font-size: 11px;
  color: var(--muted-dim);
}

.footer-legal a {
  color: var(--muted-dim);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.25s var(--ease);
}

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

/* ---------- Legal / terms page ---------- */

.legal-content {
  max-width: 720px;
}

.legal-content h3 {
  font-size: 20px;
  color: var(--white);
  margin: 40px 0 12px;
}

.legal-content h3:first-child {
  margin-top: 0;
}

.legal-content p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.legal-content p + p {
  margin-top: 14px;
}

.legal-content a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.25s var(--ease);
}

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

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

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 90px;
}

.contact-info h3 {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin: 34px 0 10px;
}

.contact-info h3:first-child {
  margin-top: 0;
}

.contact-info .value {
  font-size: 20px;
  color: var(--white);
}

.contact-info .value a {
  transition: color 0.25s var(--ease);
}

.contact-info .value a:hover {
  color: var(--muted);
}

.social-row {
  display: flex;
  gap: 20px;
  margin-top: 8px;
}

.field {
  margin-bottom: 26px;
}

.field label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 10px;
}

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 12px 4px;
  color: var(--white);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.3s var(--ease);
}

.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus,
.field textarea:-webkit-autofill,
.field textarea:-webkit-autofill:hover,
.field textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--white);
  -webkit-box-shadow: 0 0 0 1000px var(--bg) inset;
  box-shadow: 0 0 0 1000px var(--bg) inset;
  caret-color: var(--white);
  transition: background-color 5000s ease-in-out 0s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--white);
  box-shadow: 0 6px 16px -10px rgba(255, 255, 255, 0.5);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.form-note {
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted-dim);
  line-height: 1.6;
}

.form-note.is-success {
  color: var(--white);
}

.form-note.is-error {
  color: #e5484d;
}

.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

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

@media (max-width: 980px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    padding: 8px 40px 20px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }

  .nav-links.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links .nav-link {
    padding: 14px 4px;
    width: 100%;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-links .nav-link.is-active {
    background: none;
    color: var(--white);
  }

  .nav-right .btn-outline {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .fb-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .fb-subtitle {
    text-align: left;
    max-width: 460px;
  }

  .split-hero .fb-media {
    left: 0;
  }

  .fb-gradient-side {
    background: linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.55) 55%, rgba(10,10,10,0.96) 100%);
  }

  .split-hero-text {
    max-width: 100%;
  }

  .section {
    padding: 70px 0;
  }

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

  .contact-form {
    order: -1;
  }

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

  .service-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 24px;
  }

  .nav-inner {
    padding: 0 20px;
  }

  .nav-logo img {
    height: 15px;
  }

  .nav-right {
    gap: 12px;
  }

  .nav-right .btn-light {
    padding: 10px 16px;
    font-size: 13px;
  }

  .fb-content,
  .split-hero-content {
    padding-left: 24px;
    padding-right: 24px;
  }

  .footer-cols {
    gap: 40px;
  }
}

/* ---------- Reduced motion ---------- */

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

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

  .reveal {
    transform: none;
  }
}

/* ---------- Video modal ---------- */

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px clamp(24px, 6vw, 96px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

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

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.video-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1040px;
  transform: scale(0.97);
  transition: transform 0.3s var(--ease);
}

.video-modal.is-open .video-modal-dialog {
  transform: scale(1);
}

.video-modal-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
}

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

.video-modal-dialog.is-vertical {
  max-width: min(420px, calc((100vh - 180px) * 9 / 16));
}

.video-modal-dialog.is-vertical .video-modal-frame {
  aspect-ratio: 9 / 16;
  margin: 0 auto;
}

.video-modal-close {
  position: absolute;
  top: -52px;
  right: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  color: var(--white);
  border-radius: 999px;
  transition: background 0.25s var(--ease);
}

.video-modal-close:hover {
  background: rgba(245, 245, 242, 0.1);
}
