/* ============================================
   DEEP EDITORIAL, Phase 1
   Theme tokens applied to landing page (.theme-editorial)
   Header restyle. Other pages untouched.
   ============================================ */

.theme-editorial {
  background: var(--ed-bg-base);
  color: var(--ed-text-primary);
  font-family: var(--ed-font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.theme-editorial h1,
.theme-editorial h2,
.theme-editorial h3,
.theme-editorial h4 {
  font-family: var(--ed-font-heading);
  color: var(--ed-text-primary);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.theme-editorial p,
.theme-editorial li,
.theme-editorial a,
.theme-editorial span,
.theme-editorial label,
.theme-editorial input,
.theme-editorial textarea,
.theme-editorial button {
  font-family: var(--ed-font-body);
}

/* Strip rounded corners across the landing page */
.theme-editorial *,
.theme-editorial *::before,
.theme-editorial *::after {
  border-radius: 0 !important;
}

/* ===== HEADER (slim, dark, continuous with hero) ===== */
.theme-editorial .nav {
  background: var(--ed-bg-base);
  border-bottom: 1px solid var(--ed-border);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.theme-editorial .nav__inner {
  height: 84px;
  align-items: center;
  padding: 0 48px;
}

.theme-editorial .nav__logo {
  align-self: stretch;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 3px 0;
  height: 100%;
}

.theme-editorial .nav__logo-img {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
  flex-shrink: 0;
  clip-path: none;
  margin: 0;
}

.theme-editorial .nav__logo-textwrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.theme-editorial .nav__logo-text {
  font-family: var(--ed-font-heading);
  font-size: 22px;
  font-weight: 500;
  color: var(--ed-text-primary);
  letter-spacing: 4px;
  display: block;
  text-align: center;
  line-height: 1;
}

.theme-editorial .nav__logo-sub {
  font-family: var(--ed-font-heading);
  font-size: 11px;
  font-weight: 400;
  color: var(--ed-text-muted);
  letter-spacing: 3px;
  display: block;
  text-align: center;
  text-transform: uppercase;
  margin-top: 4px;
  line-height: 1;
}

.theme-editorial .nav__links {
  align-self: center;
  padding-bottom: 0;
  gap: 24px;
}

.theme-editorial .nav__links a {
  font-family: var(--ed-font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--ed-text-primary);
  letter-spacing: 0.5px;
  transition: color 0.25s ease;
}

.theme-editorial .nav__links a:hover,
.theme-editorial .nav__links a:focus-visible {
  color: var(--ed-text-primary);
}

.theme-editorial .nav__instagram {
  font-family: var(--ed-font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--ed-text-muted);
  letter-spacing: 0.5px;
}

.theme-editorial .nav__instagram:hover {
  color: var(--ed-text-primary);
}

.theme-editorial .nav__cta {
  padding: 12px 28px !important;
  background: var(--ed-accent) !important;
  color: var(--ed-text-primary) !important;
  font-family: var(--ed-font-body);
  font-size: 14px;
  font-weight: 500 !important;
  letter-spacing: 0.5px;
  text-transform: none;
  transition: background 0.25s ease !important;
}

.theme-editorial .nav__cta:hover,
.theme-editorial .nav__cta:focus-visible {
  background: var(--ed-accent-hover) !important;
  color: var(--ed-text-primary) !important;
}

/* Mobile hamburger stays usable on dark */
.theme-editorial .nav__toggle span {
  background: var(--ed-text-primary);
}

/* Push main content below the slimmer header */
.theme-editorial main {
  padding-top: 0;
}

/* Mobile header tweaks */
@media (max-width: 768px) {
  .theme-editorial .nav__inner {
    height: 64px;
    padding: 0 20px;
  }
  .theme-editorial .nav__logo-text {
    font-size: 18px;
    letter-spacing: 3px;
  }
}

/* ============================================
   HERO, editorial (Phase 2)
   Looping video with dark gradient overlay.
   Mobile: static poster only, no video, for perf.
   ============================================ */

.theme-editorial .ed-hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 140px 48px 80px;
  background: var(--ed-bg-base);
}

.theme-editorial .ed-hero__inner {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.theme-editorial .ed-hero__inner--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 0;
}

.theme-editorial .ed-hero__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding-right: clamp(20px, 3vw, 48px);
}

.theme-editorial .ed-hero__media {
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-width: 0;
}

.theme-editorial .ed-hero__frame {
  width: min(420px, 100%);
  border: 1px solid var(--ed-accent);
  background: var(--ed-bg-base);
  line-height: 0;
  overflow: hidden;
}

.theme-editorial .ed-hero__video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 900px) {
  .theme-editorial .ed-hero__inner--split {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .theme-editorial .ed-hero__text {
    padding-right: 0;
  }
  .theme-editorial .ed-hero__media {
    justify-content: flex-start;
  }
  .theme-editorial .ed-hero__frame {
    width: 100%;
    max-width: 360px;
  }
  .theme-editorial .ed-hero__cta {
    margin-top: 18px;
  }
}

.theme-editorial .ed-hero__title {
  font-family: var(--ed-font-heading);
  font-size: clamp(56px, 8vw, 120px);
  font-weight: 400;
  line-height: 1.02;
  color: var(--ed-text-primary);
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  max-width: 920px;
}

.theme-editorial .ed-hero__sub {
  font-family: var(--ed-font-body);
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 400;
  color: var(--ed-text-primary);
  opacity: 0.85;
  line-height: 1.5;
  max-width: 600px;
  margin: 0;
}
.theme-editorial .ed-hero__sub + .ed-hero__sub {
  margin-top: 6px;
}

.theme-editorial .ed-hero__binary {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.theme-editorial .ed-hero__binary span {
  position: absolute;
  font-family: var(--ed-font-body);
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 400;
  color: var(--ed-accent);
  opacity: 0;
  line-height: 1;
  white-space: nowrap;
  animation: ed-binary-pop var(--ed-bin-dur, 5s) ease-in-out var(--ed-bin-delay, 0s) infinite;
}
@keyframes ed-binary-pop {
  0%, 100% { opacity: 0; transform: translateY(2px); }
  45%, 55% { opacity: 0.28; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .theme-editorial .ed-hero__binary span {
    animation: none;
    opacity: 0.15;
  }
}

.theme-editorial .ed-hero__cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 12px;
  padding: 16px 36px;
  margin-top: auto;
  background: var(--ed-accent);
  color: var(--ed-text-primary);
  font-family: var(--ed-font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
}

.theme-editorial .ed-hero__cta:hover,
.theme-editorial .ed-hero__cta:focus-visible {
  background: var(--ed-accent-hover);
  transform: translateY(-1px);
}

.theme-editorial .ed-hero__cta svg {
  transition: transform 0.25s ease;
}

.theme-editorial .ed-hero__cta:hover svg {
  transform: translateX(3px);
}

/* Mobile hero */
@media (max-width: 768px) {
  .theme-editorial .ed-hero {
    min-height: 78vh;
    padding: 100px 20px 56px;
  }
}

/* ============================================
   SECTIONS, editorial (Phase 3)
   ============================================ */

.theme-editorial .ed-section-label {
  font-family: var(--ed-font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--ed-text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0 0 28px;
}

/* === SHOWREEL === */
.theme-editorial .ed-showreel {
  background: var(--ed-bg-base);
  padding: clamp(80px, 12vw, 160px) 24px;
}
.theme-editorial .ed-showreel__inner {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}
.theme-editorial .ed-showreel__frame {
  display: inline-block;
  max-width: 560px;
  width: 50%;
  margin: 0 auto;
  border: 1px solid var(--ed-accent);
  position: relative;
  background: var(--ed-bg-base);
  line-height: 0;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.theme-editorial .ed-showreel__frame.is-in {
  opacity: 1;
  transform: translateY(0);
}
.theme-editorial .ed-showreel__video {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 768px) {
  .theme-editorial .ed-showreel { padding: 60px 16px; }
  .theme-editorial .ed-showreel__frame { width: 86%; max-width: 460px; }
}
@media (prefers-reduced-motion: reduce) {
  .theme-editorial .ed-showreel__frame {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* === SELECTED WORK === */
.theme-editorial .ed-work {
  background: var(--ed-bg-base);
  padding: clamp(80px, 11vw, 140px) 48px;
}
.theme-editorial .ed-work__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.theme-editorial .ed-work__heading {
  font-family: var(--ed-font-heading);
  font-size: clamp(18px, 4.4vw, 64px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ed-text-primary);
  margin: 0 0 56px;
  max-width: none;
  white-space: nowrap;
}
.theme-editorial .ed-work__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}
.theme-editorial .ed-work__item--small {
  /* First item sits at one third the width of the section */
}
@media (max-width: 768px) {
  .theme-editorial .ed-work__grid {
    grid-template-columns: 1fr;
    gap: clamp(28px, 6vw, 48px);
  }
}
.theme-editorial .ed-work__item { display: block; }
.theme-editorial .ed-work__link {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}
.theme-editorial .ed-work__img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--ed-accent);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.theme-editorial .ed-work__link:hover .ed-work__img {
  transform: scale(1.02);
}
.theme-editorial .ed-work__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px 4px 0;
  border-top: 1px solid var(--ed-border);
  margin-top: 18px;
}
.theme-editorial .ed-work__cat {
  font-family: var(--ed-font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--ed-text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.theme-editorial .ed-work__title {
  font-family: var(--ed-font-heading);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 500;
  color: var(--ed-text-primary);
}
.theme-editorial .ed-work__ctas {
  display: flex;
  gap: 14px;
  margin-top: clamp(48px, 6vw, 80px);
  flex-wrap: wrap;
}
.theme-editorial .ed-work__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 220px;
  padding: 14px 32px;
  background: var(--ed-accent);
  color: var(--ed-text-primary);
  font-family: var(--ed-font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-decoration: none;
  text-align: center;
  transition: background 0.25s ease;
}
.theme-editorial .ed-work__cta:hover {
  background: var(--ed-accent-hover);
}
@media (max-width: 480px) {
  .theme-editorial .ed-work__ctas { gap: 10px; }
  .theme-editorial .ed-work__cta { flex: 1 1 0; padding: 14px 16px; }
}
@media (max-width: 768px) {
  .theme-editorial .ed-work { padding: 60px 20px; }
  .theme-editorial .ed-work__heading { margin-bottom: 36px; }
}

/* === SERVICES SNIPPET (landing) === */
.theme-editorial .ed-svc {
  background: var(--ed-bg-base);
  padding: clamp(64px, 9vw, 120px) 48px;
  border-top: 1px solid var(--ed-border);
}
.theme-editorial .ed-svc__inner {
  max-width: 1100px;
  margin: 0 auto;
}
.theme-editorial .ed-svc__heading {
  font-family: var(--ed-font-heading);
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ed-text-primary);
  margin: 14px 0 12px;
  max-width: 720px;
}
.theme-editorial .ed-svc__sub {
  font-family: var(--ed-font-body);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ed-text-muted);
  margin: 0 0 36px;
  max-width: 620px;
}
.theme-editorial .ed-svc__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}
.theme-editorial .ed-svc__item {
  background: var(--ed-bg-elevated);
  border: 1px solid var(--ed-border);
  padding: 22px 22px 24px;
}
.theme-editorial .ed-svc__num {
  font-family: var(--ed-font-heading);
  font-size: 14px;
  color: var(--ed-accent);
  letter-spacing: 2px;
  display: block;
  margin-bottom: 8px;
}
.theme-editorial .ed-svc__title {
  font-family: var(--ed-font-heading);
  font-size: 17px;
  font-weight: 500;
  color: var(--ed-text-primary);
  margin: 0 0 8px;
  line-height: 1.2;
}
.theme-editorial .ed-svc__desc {
  font-family: var(--ed-font-body);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ed-text-muted);
  margin: 0;
}
.theme-editorial .ed-svc__process {
  padding: 28px 28px 24px;
  background: var(--ed-bg-elevated);
  border: 1px solid var(--ed-border);
  margin-bottom: 28px;
}
.theme-editorial .ed-svc__process-label {
  font-family: var(--ed-font-body);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ed-text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0 0 16px;
}
@media (max-width: 600px) {
  .theme-editorial .ed-svc__process { padding: 20px 18px 16px; }
}
.theme-editorial .ed-svc__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.theme-editorial .ed-svc__steps li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  padding: 18px 0;
  border-top: 1px solid var(--ed-border);
  position: relative;
}
.theme-editorial .ed-svc__steps li:first-child {
  border-top: none;
  padding-top: 6px;
}
.theme-editorial .ed-svc__steps li:last-child {
  padding-bottom: 6px;
}
.theme-editorial .ed-svc__step-num {
  font-family: var(--ed-font-heading);
  font-size: 22px;
  font-weight: 500;
  color: var(--ed-accent);
  letter-spacing: 1.5px;
  line-height: 1;
  padding-top: 4px;
}
.theme-editorial .ed-svc__step-title {
  font-family: var(--ed-font-heading);
  font-size: 17px;
  font-weight: 500;
  color: var(--ed-text-primary);
  margin: 0 0 6px;
  line-height: 1.2;
}
.theme-editorial .ed-svc__step-desc {
  font-family: var(--ed-font-body);
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ed-text-muted);
  margin: 0;
}
@media (max-width: 600px) {
  .theme-editorial .ed-svc__steps li {
    grid-template-columns: 42px 1fr;
    gap: 16px;
    padding: 14px 0;
  }
  .theme-editorial .ed-svc__step-num { font-size: 18px; }
}
.theme-editorial .ed-svc__cta {
  display: inline-block;
  font-family: var(--ed-font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--ed-accent);
  text-decoration: none;
  padding: 12px 24px;
  border: 1px solid var(--ed-accent);
  transition: background 0.25s ease, color 0.25s ease;
}
.theme-editorial .ed-svc__cta:hover {
  background: var(--ed-accent);
  color: var(--ed-text-primary);
}
@media (max-width: 900px) {
  .theme-editorial .ed-svc__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .theme-editorial .ed-svc { padding: 56px 20px; }
  .theme-editorial .ed-svc__grid { grid-template-columns: 1fr; }
  .theme-editorial .ed-svc__process-list { gap: 10px 22px; }
  .theme-editorial .ed-svc__process-list li { font-size: 13.5px; }
}

/* === THE EDGE === */
.theme-editorial .ed-edge {
  background: var(--ed-bg-elevated);
  padding: clamp(90px, 13vw, 180px) 48px;
}
.theme-editorial .ed-edge__inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}
.theme-editorial .ed-edge__heading {
  font-family: var(--ed-font-heading);
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ed-text-primary);
  margin: 0 0 24px;
}
.theme-editorial .ed-edge__sub {
  font-family: var(--ed-font-heading);
  font-style: italic;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 400;
  line-height: 1.4;
  color: var(--ed-accent);
  margin: 56px 0 0;
  letter-spacing: -0.01em;
}

.theme-editorial .ed-edge__bio {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
  margin: clamp(40px, 6vw, 72px) auto 0;
  max-width: 820px;
  text-align: left;
}

.theme-editorial .ed-edge__photo {
  width: 200px;
  flex-shrink: 0;
}

.theme-editorial .ed-edge__photo img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--ed-accent);
}

.theme-editorial .ed-edge__bio-text p {
  font-family: var(--ed-font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ed-text-muted);
  margin: 0 0 14px;
}
.theme-editorial .ed-edge__bio-text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .theme-editorial .ed-edge__bio {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }
  .theme-editorial .ed-edge__photo {
    width: 160px;
    margin: 0 auto;
  }
  .theme-editorial .ed-edge__bio-text {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .theme-editorial .ed-edge { padding: 64px 20px; }
}

/* === PROOF === */
.theme-editorial .ed-proof {
  background: var(--ed-bg-base);
  padding: clamp(80px, 11vw, 140px) 48px;
}
.theme-editorial .ed-proof__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.theme-editorial .ed-proof__heading {
  font-family: var(--ed-font-heading);
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ed-text-primary);
  margin: 0 0 56px;
  max-width: 640px;
}
.theme-editorial .ed-proof__carousel {
  position: relative;
  padding: 0 56px;
}
.theme-editorial .ed-proof__track-wrap {
  overflow: hidden;
}
.theme-editorial .ed-proof__track {
  display: flex;
  gap: clamp(20px, 2.4vw, 32px);
  transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}
.theme-editorial .ed-proof__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--ed-accent);
  color: var(--ed-accent);
  cursor: pointer;
  padding: 0;
  z-index: 2;
  transition: background 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}
.theme-editorial .ed-proof__nav:hover {
  background: var(--ed-accent);
  color: var(--ed-text-primary);
}
.theme-editorial .ed-proof__nav[disabled] {
  opacity: 0.3;
  cursor: not-allowed;
}
.theme-editorial .ed-proof__nav[disabled]:hover {
  background: transparent;
  color: var(--ed-accent);
}
.theme-editorial .ed-proof__nav svg {
  width: 18px;
  height: 18px;
}
.theme-editorial .ed-proof__nav--prev { left: 0; }
.theme-editorial .ed-proof__nav--next { right: 0; }
.theme-editorial .ed-testimonial {
  background: var(--ed-bg-elevated);
  border: 1px solid var(--ed-border);
  padding: 28px 26px;
  margin: 0;
  flex: 0 0 calc((100% - 2 * clamp(20px, 2.4vw, 32px)) / 3);
  display: flex;
  flex-direction: column;
}
.theme-editorial .ed-testimonial p {
  font-family: var(--ed-font-body);
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ed-text-primary);
  margin: 0 0 24px;
  font-style: italic;
}
.theme-editorial .ed-testimonial footer {
  border-top: 1px solid var(--ed-border);
  padding-top: 18px;
  font-style: normal;
}
.theme-editorial .ed-testimonial footer strong {
  display: block;
  font-family: var(--ed-font-heading);
  font-size: 17px;
  font-weight: 500;
  color: var(--ed-text-primary);
  margin-bottom: 4px;
}
.theme-editorial .ed-testimonial footer span {
  display: block;
  font-family: var(--ed-font-body);
  font-size: 12px;
  color: var(--ed-text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .theme-editorial .ed-testimonial {
    flex: 0 0 calc((100% - clamp(20px, 2.4vw, 32px)) / 2);
  }
}
@media (max-width: 600px) {
  .theme-editorial .ed-proof__carousel { padding: 0 44px; }
  .theme-editorial .ed-testimonial { flex: 0 0 100%; }
  .theme-editorial .ed-proof__nav { width: 36px; height: 36px; }
}
@media (max-width: 768px) {
  .theme-editorial .ed-proof { padding: 60px 20px; }
  .theme-editorial .ed-proof__heading { margin-bottom: 36px; }
}

/* === CONTACT (restyle the existing form) === */
.theme-editorial .contact {
  background: var(--ed-bg-base);
  padding: clamp(80px, 11vw, 140px) 48px;
  border-top: 1px solid var(--ed-border);
}
.theme-editorial .contact__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}
.theme-editorial .contact__logo {
  display: block;
  width: 120px;
  height: auto;
  margin: 0 0 28px;
}
.theme-editorial .contact__left .label {
  font-family: var(--ed-font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--ed-text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.theme-editorial .contact__left h2 {
  font-family: var(--ed-font-heading);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ed-text-primary);
  margin-bottom: 18px;
}
.theme-editorial .contact__left > p {
  color: var(--ed-text-muted);
  font-family: var(--ed-font-body);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 28px;
}
.theme-editorial .contact__info {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.theme-editorial .contact__info a,
.theme-editorial .contact__info span {
  color: var(--ed-text-primary);
  font-family: var(--ed-font-body);
  font-size: 15px;
  text-decoration: none;
}
.theme-editorial .contact__info a:hover {
  color: var(--ed-accent);
}
.theme-editorial .contact__form {
  background: var(--ed-bg-elevated);
  border: 1px solid var(--ed-border);
  padding: 36px 32px;
}
.theme-editorial .contact__form label {
  display: block;
  font-family: var(--ed-font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--ed-text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.theme-editorial .contact__form input,
.theme-editorial .contact__form textarea {
  width: 100%;
  background: var(--ed-bg-base);
  border: 1px solid var(--ed-border);
  color: var(--ed-text-primary);
  font-family: var(--ed-font-body);
  font-size: 15px;
  padding: 14px 16px;
  margin-bottom: 18px;
  transition: border-color 0.2s ease;
}
.theme-editorial .contact__form input:focus,
.theme-editorial .contact__form textarea:focus {
  outline: none;
  border-color: var(--ed-accent);
}
.theme-editorial .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.theme-editorial .form-submit {
  background: var(--ed-accent) !important;
  color: var(--ed-text-primary) !important;
  font-family: var(--ed-font-body) !important;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 16px 32px !important;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.25s ease;
}
.theme-editorial .form-submit:hover {
  background: var(--ed-accent-hover) !important;
}
.theme-editorial .form-success {
  text-align: center;
  padding: 24px 0;
}
.theme-editorial .form-success__title {
  font-family: var(--ed-font-heading);
  color: var(--ed-text-primary);
  font-size: 22px;
  margin: 12px 0 10px;
}
.theme-editorial .form-success__text,
.theme-editorial .form-success__sub {
  color: var(--ed-text-muted);
  font-family: var(--ed-font-body);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 10px;
}
.theme-editorial .form-success__btn {
  margin-top: 14px;
  background: var(--ed-accent);
  color: var(--ed-text-primary);
  border: none;
  padding: 12px 26px;
  font-family: var(--ed-font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
@media (max-width: 768px) {
  .theme-editorial .contact { padding: 60px 20px; }
  .theme-editorial .contact__inner { grid-template-columns: 1fr; }
  .theme-editorial .form-row { grid-template-columns: 1fr; }
}

/* === FOOTER === */
.theme-editorial .footer {
  background: var(--ed-bg-base);
  border-top: 1px solid var(--ed-border);
  padding: 56px 48px 36px;
  color: var(--ed-text-muted);
}
.theme-editorial .footer__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.theme-editorial .footer__top {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--ed-border);
}
.theme-editorial .footer__brand {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.theme-editorial .footer__brand img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  background: transparent;
  padding: 0;
  border-radius: 0;
  margin: 0;
  clip-path: none;
}
.theme-editorial .footer__brand p {
  font-family: var(--ed-font-heading);
  font-size: 18px;
  color: var(--ed-text-primary);
  font-style: italic;
  line-height: 1.4;
}
.theme-editorial .footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.theme-editorial .footer__col h4 {
  font-family: var(--ed-font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--ed-text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.theme-editorial .footer__col a {
  display: block;
  font-family: var(--ed-font-body);
  font-size: 14px;
  color: var(--ed-text-primary);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s ease;
}
.theme-editorial .footer__col a:hover {
  color: var(--ed-accent);
}
.theme-editorial .footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--ed-font-body);
  font-size: 12px;
  color: var(--ed-text-muted);
  letter-spacing: 0.5px;
}
@media (max-width: 768px) {
  .theme-editorial .footer { padding: 40px 20px 28px; }
  .theme-editorial .footer__top { grid-template-columns: 1fr; }
  .theme-editorial .footer__links { grid-template-columns: 1fr 1fr; }
  .theme-editorial .footer__bottom { flex-direction: column; gap: 8px; }
}

/* === Scroll-in observer trigger class (added via JS) === */
.theme-editorial .ed-fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.theme-editorial .ed-fade-in.is-in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .theme-editorial .ed-fade-in,
  .theme-editorial .ed-fade-in.is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* === Lift content boxes above the fixed watermark so it can't show through === */
.theme-editorial .ed-svc__item,
.theme-editorial .ed-svc__process,
.theme-editorial .ed-svc__steps li,
.theme-editorial .ed-edge__bio,
.theme-editorial .ed-edge__photo,
.theme-editorial .ed-testimonial,
.theme-editorial .ed-proof__nav,
.theme-editorial .ed-work__item,
.theme-editorial .contact__form,
.theme-editorial .contact__left,
.theme-editorial .footer {
  position: relative;
  z-index: 1;
}

/* === Elevated-bg containers: force text to white for readability ===
   Gray-on-charcoal is too low contrast. Inside any box with the elevated
   background, all text becomes primary (off-white). Emerald accent elements
   keep their own color via their own explicit rules. */
.theme-editorial .ed-svc__item p,
.theme-editorial .ed-svc__item span,
.theme-editorial .ed-svc__process .ed-svc__process-label,
.theme-editorial .ed-svc__process .ed-svc__step-desc,
.theme-editorial .ed-edge .ed-edge__bio-text p,
.theme-editorial .ed-testimonial p,
.theme-editorial .ed-testimonial footer span,
.theme-editorial .contact__form label,
.theme-editorial .contact__form input,
.theme-editorial .contact__form textarea,
.theme-editorial .ab-cta p,
.theme-editorial .svc-process .svc-process__sub,
.theme-editorial .svc-process .svc-flow-step__desc,
.theme-editorial .svc-process .svc-flow-step__list li,
.theme-editorial .svc-process .svc-flow-step__label,
.theme-editorial .pr-card .pr-card__label,
.theme-editorial .pr-card .pr-card__price-sub,
.theme-editorial .pr-card .pr-card__list li,
.theme-editorial .pr-host-tier__best,
.theme-editorial .pf-cta p,
.theme-editorial .bl-cta p {
  color: var(--ed-text-primary);
}
.theme-editorial .contact__form ::placeholder {
  color: var(--ed-text-primary);
  opacity: 0.6;
}

/* === Mobile (≤768px): hide contact logo + footer slogan, rearrange footer 2x2 === */
@media (max-width: 768px) {
  .theme-editorial .contact__logo { display: none; }
  .theme-editorial .footer__brand p { display: none; }

  .theme-editorial .footer__top {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
    flex-direction: initial;
  }
  .theme-editorial .footer__links {
    display: contents;
  }
  .theme-editorial .footer__brand { order: 1; margin: 0; }
  .theme-editorial .footer__links .footer__col:nth-of-type(1) { order: 3; } /* Services */
  .theme-editorial .footer__links .footer__col:nth-of-type(2) { order: 4; } /* Company */
  .theme-editorial .footer__links .footer__col:nth-of-type(3) { order: 2; } /* Connect */
}

/* === Mobile hero CTA: EXACTLY centered between sub text and video.
   18px above the button (margin-top on the CTA), 18px below the button (grid gap).
   Total 36px so the video's position doesn't move. === */
@media (max-width: 900px) {
  .theme-editorial .ed-hero__cta {
    margin-top: 18px !important;
  }
  .theme-editorial .ed-hero__inner--split {
    gap: 18px !important;
  }
}

/* === Mobile hamburger menu: editorial dark theme so text is readable === */
@media (max-width: 768px) {
  .theme-editorial .nav__links {
    background: var(--ed-bg-base) !important;
    padding: 96px 32px 40px !important;
    justify-content: flex-start;
    align-items: stretch;
    gap: 4px;
    height: 100dvh;
  }
  .theme-editorial .nav__links a {
    color: var(--ed-text-primary) !important;
    font-family: var(--ed-font-heading) !important;
    font-size: 26px !important;
    font-weight: 500 !important;
    letter-spacing: 2px !important;
    padding: 18px 0 !important;
    border-bottom: 1px solid var(--ed-border) !important;
    text-align: left;
    text-transform: none;
  }
  .theme-editorial .nav__links a:hover,
  .theme-editorial .nav__links a:focus-visible {
    color: var(--ed-accent) !important;
  }
  .theme-editorial .nav__links .nav__cta {
    background: var(--ed-accent) !important;
    color: var(--ed-text-primary) !important;
    padding: 16px 28px !important;
    font-family: var(--ed-font-body) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    border-bottom: none !important;
    margin-top: 20px !important;
    align-self: flex-start;
  }
  .theme-editorial .nav__instagram {
    color: var(--ed-text-muted) !important;
    padding: 18px 0 !important;
    font-size: 14px !important;
    border-bottom: 1px solid var(--ed-border) !important;
  }
  .theme-editorial .nav__instagram svg { width: 20px; height: 20px; }
  .theme-editorial .nav__toggle span,
  .theme-editorial .nav__toggle.active span {
    background: var(--ed-text-primary);
  }
}
