/* ============================================
   SITE-WIDE EDITORIAL SKIN
   Brings the homepage look to every page: bone heroes with huge
   uppercase serif headlines, editorial section titles, tidy grids,
   a principles marquee, and a big sign-off CTA.
   Applied when <body> has class "ed".
   ============================================ */
.ed {
  --ed-serif: 'Instrument Serif', 'Times New Roman', serif;
  --ed-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ed-pad: clamp(1.25rem, 4vw, 3.5rem);
}
.ed .ribbon { display: none; }

/* ---------- heroes ---------- */
.ed :is(.lp-hero, .page-hero, .contact-hero, .cp-hero) {
  background: var(--bone-warm);
  color: var(--ink);
  padding: clamp(5rem, 13vh, 9rem) var(--ed-pad) clamp(4.5rem, 11vh, 7.5rem);
  position: relative;
  overflow: hidden;
}
.ed :is(.lp-hero, .page-hero, .contact-hero, .cp-hero)::before {
  background: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.ed :is(.lp-hero, .page-hero, .contact-hero, .cp-hero) h1 {
  font-family: var(--ed-serif);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(3rem, 8.2vw, 8.6rem);
  line-height: 0.88;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: balance;
}
.ed :is(.lp-hero, .page-hero, .contact-hero, .cp-hero) h1 .accent { font-family: var(--ed-serif); font-style: italic; font-weight: 400; color: var(--flame-deep); }
.ed :is(.lp-hero, .page-hero, .contact-hero, .cp-hero) :is(p, .lede, li) { color: #3a404c; }
.ed :is(.lp-hero, .page-hero, .contact-hero, .cp-hero) :is(p, .lede) strong { color: var(--ink); }
.ed :is(.lp-hero, .page-hero, .contact-hero, .cp-hero) .eyebrow { color: #4a5160; font-family: var(--mono); letter-spacing: 0.22em; }
.ed :is(.lp-hero, .page-hero, .contact-hero, .cp-hero) .btn-ghost { color: var(--ink); border-color: rgba(10, 13, 20, 0.35); }
.ed :is(.lp-hero, .page-hero, .contact-hero, .cp-hero) .btn-ghost:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.ed :is(.lp-hero, .page-hero, .contact-hero, .cp-hero) .btn-primary { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.ed :is(.lp-hero, .page-hero, .contact-hero, .cp-hero) .btn-primary:hover { background: var(--flame); color: var(--ink); border-color: var(--flame); }
.ed :is(.lp-hero, .page-hero, .contact-hero, .cp-hero) .btn-primary .btn-arrow { background: var(--flame); color: var(--ink); }
.ed .lp-hero .lp-hero-inner { max-width: 1320px; }
.ed .lp-hero h1 { max-width: none; margin-bottom: 2.25rem; }
.ed .page-hero .page-hero-inner { align-items: end; }
.ed .page-hero h1 { font-size: clamp(3rem, 7.4vw, 7.6rem); }
.ed-cue { position: absolute; left: 50%; bottom: clamp(1rem, 2.5vh, 1.75rem); transform: translateX(-50%); font-family: var(--body); font-size: 0.75rem; color: var(--ink); z-index: 3; opacity: 0.8; }
.ed-cue::after { content: ''; display: block; width: 1px; height: 28px; margin: 0.5rem auto 0; background: var(--ink); transform-origin: top; animation: edCue 2s var(--ed-ease) infinite; }
@keyframes edCue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- section titles ---------- */
.ed section:not(.lp-hero):not(.page-hero):not(.contact-hero) h2:not(.ed-skip) {
  font-family: var(--ed-serif);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.5rem, 5.6vw, 5.6rem);
  line-height: 0.9;
  letter-spacing: -0.008em;
  text-wrap: balance;
}
.ed section h2 .accent { font-family: var(--ed-serif); font-style: italic; font-weight: 400; }
/* smaller titles inside cards and case studies */
.ed section :is(article, .case-study, .price-card, .cp-tier, .card, .service-tile) h2:not(.ed-skip) { font-size: clamp(1.9rem, 3.2vw, 3rem); }
.ed .eyebrow { font-family: var(--mono); letter-spacing: 0.22em; }

/* ---------- landing page blocks ---------- */
.ed .lp-split-section { padding-top: clamp(5rem, 13vh, 9rem); padding-bottom: clamp(5rem, 13vh, 9rem); }
.ed .lp-split-head { max-width: 1100px; }
.ed .lp-split-head p { max-width: 62ch; margin-left: auto; margin-right: auto; font-size: 1.05rem; line-height: 1.7; }

.ed .lp-features-grid { gap: 0; border-top: 1px solid var(--rule-dark); }
.ed .lp-feature-card { position: relative; background: transparent; border: 0; border-bottom: 1px solid var(--rule-dark); border-radius: 0; padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1rem, 2vw, 1.75rem); overflow: hidden; isolation: isolate; transition: color 0.45s var(--ed-ease); }
.ed .lp-feature-card + .lp-feature-card { border-left: 1px solid var(--rule-dark); }
.ed .lp-feature-card::before { content: ''; position: absolute; inset: 0; background: var(--flame); transform: scaleY(0); transform-origin: bottom; transition: transform 0.55s var(--ed-ease); z-index: -1; }
.ed .lp-feature-card:hover::before { transform: scaleY(1); }
.ed .lp-feature-card:hover, .ed .lp-feature-card:hover :is(h3, p, .num) { color: var(--ink); }
.ed .lp-feature-card h3 { font-family: var(--ed-serif); font-weight: 400; text-transform: uppercase; font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 0.95; letter-spacing: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.ed .lp-feature-card h3 .num { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em; color: var(--flame); }
.ed .lp-feature-card p { font-size: 0.95rem; line-height: 1.6; }

.ed .lp-who-grid { gap: 0 clamp(1.5rem, 3vw, 3rem); }
.ed .lp-who-item { background: transparent; border: 0; border-top: 1px solid currentColor; border-top-color: color-mix(in srgb, currentColor 22%, transparent); border-radius: 0; padding: 1.5rem 0 2rem; }
.ed .lp-who-item h4 { font-family: var(--ed-serif); font-weight: 400; text-transform: uppercase; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1; margin-bottom: 0.75rem; }

/* ---------- sign-off CTAs ---------- */
.ed :is(.lp-cta, .page-cta, .about-cta, .svc-cta, .work-cta, .final-cta) {
  background: var(--ink);
  color: var(--bone);
  text-align: center;
  padding: clamp(6rem, 16vh, 10rem) var(--ed-pad);
}
.ed :is(.lp-cta, .page-cta, .about-cta, .svc-cta, .work-cta, .final-cta) h2:not(.ed-skip) {
  font-size: clamp(3.2rem, 9.5vw, 10rem);
  line-height: 0.84;
  max-width: 14ch;
  margin-left: auto;
  margin-right: auto;
  color: var(--bone);
}
.ed :is(.lp-cta, .page-cta, .about-cta, .svc-cta, .work-cta, .final-cta) h2 .accent { color: var(--flame); }
.ed :is(.lp-cta, .page-cta, .about-cta, .svc-cta, .work-cta, .final-cta) p { color: var(--bone-warm); max-width: 620px; margin-left: auto; margin-right: auto; }

/* ---------- principles marquee (added by site.js) ---------- */
.ed-marquee { position: relative; z-index: 1; background: var(--flame); color: var(--ink); overflow: hidden; padding: clamp(1rem, 2.6vh, 1.8rem) 0; border-block: 1px solid rgba(10, 13, 20, 0.2); }
.ed-marquee-track { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3rem); width: max-content; will-change: transform; }
.ed-marquee span { font-family: var(--ed-serif); text-transform: uppercase; font-size: clamp(2.4rem, 6.4vw, 6rem); line-height: 1; white-space: nowrap; }
.ed-marquee i { font-style: normal; font-size: clamp(1.3rem, 2.8vw, 2.4rem); color: var(--bone); }

/* ---------- motion layer ---------- */
.ed-gsap .reveal, .ed-gsap .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
.ed-word { display: inline-block; white-space: nowrap; }
.ed-ch { display: inline-block; will-change: transform; }
.ed-line { display: inline-block; overflow: hidden; vertical-align: top; padding-top: 0.2em; margin-top: -0.2em; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.ed .btn { will-change: transform; }

@media (max-width: 900px) {
  .ed .lp-feature-card + .lp-feature-card { border-left: 0; }
  .ed :is(.lp-hero, .page-hero, .contact-hero, .cp-hero) { padding-bottom: clamp(5rem, 12vh, 7rem); }
}
@media (prefers-reduced-motion: reduce) {
  .ed-cue::after { animation: none; }
}
.ed .cp-hero .cp-hero-inner { max-width: 1240px; }
.ed .dir-wrap h1 { font-family: var(--ed-serif); font-weight: 400; text-transform: uppercase; font-size: clamp(3rem, 8vw, 8rem); line-height: 0.88; letter-spacing: -0.01em; }

/* smooth-scroll library needs native smooth scrolling off, or every frame fights it (laggy, stuck scrolling) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
