/* NYC Agency development example — isolated from CSMBAC theme tokens */

:root {
  --nyc-bg: #0a0e1a;
  --nyc-cyan: #00f0ff;
  --nyc-magenta: #ff2d8a;
  --nyc-text: #f4f6fb;
  --nyc-muted: #8b93a8;
  --nyc-glass: rgba(10, 14, 26, 0.72);
  --nyc-footer-h: 6.75rem;
  --nyc-footer-pad-y: 0.75rem;
  --nyc-footer-pad-x: var(--nyc-gutter-x);
  --nyc-gutter-x: 1.25rem;
  --nyc-lockup-font: clamp(1.25rem, 5.4vw + 0.4rem, 1.75rem);
  --nyc-lockup-drift-x: clamp(2px, 1.8vw, 6px);
  --nyc-lockup-drift-y: clamp(2px, 1vw, 4px);
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

@media (min-width: 375px) {
  :root {
    --nyc-lockup-font: clamp(1.5rem, 6.2vw + 0.3rem, 2.1rem);
    --nyc-lockup-drift-x: clamp(3px, 2.2vw, 7px);
    --nyc-lockup-drift-y: clamp(2px, 1.2vw, 5px);
  }
}

@media (min-width: 414px) {
  :root {
    --nyc-lockup-font: clamp(2rem, 7.2vw + 0.15rem, 3rem);
    --nyc-lockup-drift-x: clamp(5px, 2.8vw, 10px);
    --nyc-lockup-drift-y: clamp(3px, 1.5vw, 6px);
  }
}

@media (min-width: 768px) {
  :root {
    --nyc-gutter-x: 2rem;
    --nyc-lockup-font: clamp(3rem, 8.5vw, 4.5rem);
    --nyc-lockup-drift-x: 12px;
    --nyc-lockup-drift-y: 6px;
  }
}

@media (min-width: 1024px) {
  :root {
    --nyc-gutter-x: 3rem;
    --nyc-lockup-font: clamp(3.5rem, 8vw, 4.75rem);
  }

  .nyc-word--nyc,
  .nyc-word--agency {
    font-size: clamp(3rem, 7vw, 4.5rem);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--nyc-text);
  background: var(--nyc-bg);
  overflow-x: hidden;
}

body a:any-link {
  color: var(--nyc-cyan);
}

body a:visited {
  color: var(--nyc-cyan);
}

body a:hover {
  color: var(--nyc-text);
}

.sr-only,
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Film grain */
.nyc-grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
}

.nyc-grid-lines {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* Top chrome: development pill + city switcher (single sticky stack) */
.nyc-top-chrome {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(10, 14, 26, 0.98) 82%, rgba(10, 14, 26, 0));
}

.nyc-top-chrome .ae-city-switcher {
  position: relative;
  top: auto;
  z-index: 1;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.5rem 0.75rem;
  padding: 0.5rem var(--nyc-gutter-x) 0.65rem;
  border-bottom-color: rgba(0, 240, 255, 0.15);
}

.nyc-top-chrome .ae-city-switcher__hub {
  flex: 0 0 auto;
  align-self: center;
}

.nyc-top-chrome .ae-city-switcher__rail {
  flex: 1 1 auto;
  min-width: 0;
}

@media (max-width: 479px) {
  .nyc-top-chrome .ae-city-switcher {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  .nyc-top-chrome .ae-city-switcher__hub {
    padding-bottom: 0;
  }

  .nyc-top-chrome .ae-city-switcher__rail {
    width: 100%;
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 18px), transparent 100%);
  }
}

/* Development Example pill */
.nyc-pill {
  position: relative;
  top: auto;
  left: auto;
  z-index: 1;
  margin: 0.5rem var(--nyc-gutter-x) 0;
  padding: 0.45rem 0.85rem;
  width: fit-content;
  max-width: calc(100% - (var(--nyc-gutter-x) * 2));
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nyc-text);
  background: var(--nyc-glass);
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  opacity: 1;
  will-change: opacity;
}

.nyc-pill.is-pill-hidden {
  pointer-events: none;
  visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .nyc-pill {
    opacity: 1;
    visibility: visible;
    will-change: auto;
  }
}

/* Hero */
.nyc-hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-height: 100svh;
  padding: 5rem var(--nyc-gutter-x) 3rem;
  text-align: center;
  overflow-x: clip;
  overflow-y: visible;
}

.nyc-hero__streaks {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.nyc-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: min(100%, 42rem);
  isolation: isolate;
  padding: 0.5rem 0 1rem;
}

.nyc-streak {
  position: absolute;
  width: 140%;
  height: 2px;
  opacity: 0.35;
  filter: blur(1px);
  transform-origin: center;
}

.nyc-streak--cyan {
  top: calc(62% + 4.5rem);
  left: -20%;
  background: linear-gradient(90deg, transparent, var(--nyc-cyan), transparent);
  animation: nyc-parallax-cyan 18s ease-in-out infinite;
}

.nyc-streak--magenta {
  top: calc(70% + 5rem);
  left: -20%;
  background: linear-gradient(90deg, transparent, var(--nyc-magenta), transparent);
  animation: nyc-parallax-magenta 22s ease-in-out infinite;
}

@keyframes nyc-parallax-cyan {
  0%, 100% { transform: translateX(0) rotate(-2deg); }
  50% { transform: translateX(8%) rotate(1deg); }
}

@keyframes nyc-parallax-magenta {
  0%, 100% { transform: translateX(4%) rotate(1deg); }
  50% { transform: translateX(-6%) rotate(-2deg); }
}

/* Lockup — streaks z-index 0; wrap + lockup z-index 2; overflow visible for glow */
.nyc-hero__lockup-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: min(100%, 42rem);
  margin: 0 auto 1.5rem;
  overflow: visible;
}

.nyc-lockup {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  min-height: clamp(6.5rem, 26vw, 13.5rem);
  padding: clamp(0.75rem, 3vw, 1.25rem) clamp(0.25rem, 2vw, 0.5rem);
  overflow: visible;
  text-align: center;
}

.nyc-lockup::before {
  content: '';
  position: absolute;
  inset: -1rem -2rem;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 92% 115% at 50% 50%,
    var(--nyc-bg) 48%,
    rgba(10, 14, 26, 0.97) 72%,
    transparent 100%
  );
}

.nyc-lockup__state {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.12em, 2vw, 0.35em);
  max-width: 100%;
  padding: clamp(0.5rem, 2.5vw, 1rem) clamp(0.25rem, 2vw, 0.75rem);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--nyc-lockup-font);
  line-height: 1;
  letter-spacing: -0.02em;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.98);
  transition:
    opacity 0.12s ease,
    transform 0.12s ease,
    visibility 0s;
  pointer-events: none;
  overflow: visible;
}

.nyc-lockup[data-state="1"] .nyc-lockup__state--1,
.nyc-lockup[data-state="2"] .nyc-lockup__state--2,
.nyc-lockup[data-state="3"] .nyc-lockup__state--3,
.nyc-lockup[data-state="4"] .nyc-lockup__state--1 {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition:
    opacity 0.45s ease 0.08s,
    transform 0.45s ease 0.08s,
    visibility 0s;
  pointer-events: auto;
}

.nyc-lockup__state--1 .nyc-word {
  animation: none;
}

.nyc-lockup[data-state="1"] .nyc-lockup__state--1 .nyc-word,
.nyc-lockup[data-state="4"] .nyc-lockup__state--1 .nyc-word {
  animation: nyc-glow-pulse 3s ease-in-out infinite;
}

.nyc-word {
  display: inline-block;
  color: var(--nyc-text);
  text-shadow:
    0 0 24px rgba(0, 240, 255, 0.35),
    0 0 48px rgba(255, 45, 138, 0.2);
}

.nyc-lockup__state--1 {
  flex-direction: column;
  align-items: center;
  flex-wrap: nowrap;
  width: 100%;
  max-width: min(100%, 42rem);
  margin: 0 auto;
  gap: clamp(0.06em, 1.2vw, 0.2em);
  letter-spacing: -0.03em;
}

.nyc-word--nyc,
.nyc-word--agency {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  font-size: clamp(1.5rem, 7.2vw + 0.2rem, 2.2rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  flex-shrink: 1;
  min-width: 0;
}

@keyframes nyc-glow-pulse {
  0%, 100% {
    text-shadow:
      0 0 20px rgba(0, 240, 255, 0.3),
      0 0 40px rgba(255, 45, 138, 0.15);
  }
  50% {
    text-shadow:
      0 0 32px rgba(0, 240, 255, 0.55),
      0 0 56px rgba(255, 45, 138, 0.35);
  }
}

/* State 2: drift */
.nyc-lockup__state--2 {
  gap: 0.42em;
  flex-wrap: nowrap;
  font-size: calc(var(--nyc-lockup-font) * 0.92);
  padding-inline: 0.5rem;
  letter-spacing: 0.04em;
}

.nyc-lockup__state--2 > .nyc-drift,
.nyc-lockup__state--2 > .nyc-drift-sep {
  position: relative;
  z-index: 2;
}

.nyc-drift {
  display: inline-block;
  color: var(--nyc-text);
  flex: 0 0 auto;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), color 0.4s ease;
}

.nyc-lockup[data-state="2"] .nyc-drift--age {
  transform: translateX(calc(-0.35 * var(--nyc-lockup-drift-x)));
  color: var(--nyc-cyan);
}

.nyc-lockup[data-state="2"] .nyc-drift--n {
  transform: translateY(calc(-0.35 * var(--nyc-lockup-drift-y)));
  color: var(--nyc-magenta);
}

.nyc-lockup[data-state="2"] .nyc-drift--c {
  transform: translateX(calc(0.35 * var(--nyc-lockup-drift-x)));
  color: var(--nyc-cyan);
}

.nyc-drift-sep {
  color: var(--nyc-muted);
  font-weight: 700;
  font-size: 0.55em;
  flex: 0 0 auto;
  line-height: 1;
  opacity: 0.85;
}

.nyc-threads {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.nyc-lockup[data-state="2"] .nyc-threads {
  opacity: 0;
  visibility: hidden;
}

.nyc-thread {
  stroke-width: 1.5;
  stroke-linecap: round;
}

.nyc-thread--cyan {
  stroke: var(--nyc-cyan);
  opacity: 0.6;
}

.nyc-thread--magenta {
  stroke: var(--nyc-magenta);
  opacity: 0.6;
}

/* State 3: A GEN C */
.nyc-lockup__state--3 {
  gap: clamp(0.15em, 2.5vw, 0.25em);
  flex-wrap: nowrap;
}

.nyc-gen {
  display: inline-block;
  color: var(--nyc-text);
}

.nyc-lockup[data-state="3"] .nyc-gen {
  animation: nyc-gen-flash 0.35s ease-out;
}

.nyc-gen--mid {
  color: var(--nyc-magenta);
  letter-spacing: 0.06em;
}

@keyframes nyc-gen-flash {
  0% {
    filter: brightness(2.2);
    letter-spacing: 0.12em;
  }
  100% {
    filter: brightness(1);
    letter-spacing: inherit;
  }
}

.nyc-hero__subline {
  position: relative;
  z-index: 3;
  max-width: 28ch;
  margin: clamp(1.25rem, 4vw, 2rem) 0 0;
  padding-top: 0.25rem;
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  font-weight: 400;
  color: var(--nyc-muted);
}

@media (min-width: 414px) {
  .nyc-word--nyc,
  .nyc-word--agency {
    font-size: clamp(1.85rem, 8vw + 0.15rem, 2.75rem);
  }
}

@media (min-width: 768px) {
  .nyc-lockup__state--1 {
    flex-direction: column;
    gap: clamp(0.08em, 1.5vw, 0.25em);
    letter-spacing: -0.03em;
  }

  .nyc-word--nyc,
  .nyc-word--agency {
    font-size: clamp(2.5rem, 6.5vw, 4.25rem);
    letter-spacing: -0.03em;
  }

  .nyc-hero__subline {
    margin-top: 2rem;
  }

  .nyc-streak--cyan {
    top: calc(64% + 5rem);
  }

  .nyc-streak--magenta {
    top: calc(72% + 5.5rem);
  }
}

@media (max-width: 767px) {
  .nyc-hero {
    padding-inline: max(1rem, var(--nyc-gutter-x));
  }

  .nyc-lockup {
    padding-inline: clamp(0.35rem, 2.5vw, 0.75rem);
  }

  .nyc-lockup__state--1 {
    gap: clamp(0.06em, 1.4vw, 0.28em);
    letter-spacing: -0.045em;
  }

  .nyc-word--nyc,
  .nyc-word--agency {
    letter-spacing: -0.05em;
  }

  .nyc-hero__subline {
    margin-top: 2rem;
  }

  .nyc-streak--cyan {
    top: calc(66% + 4rem);
  }

  .nyc-streak--magenta {
    top: calc(74% + 4.5rem);
  }
}

/* Main: reserve space for sticky footer so editorial + SEO strip stay readable */
.nyc-main {
  padding-bottom: calc(var(--nyc-footer-h) + 6.5rem + env(safe-area-inset-bottom, 0px));
}

/* Work section */
.nyc-work {
  position: relative;
  z-index: 1;
  padding: 3rem var(--nyc-gutter-x) 2rem;
  scroll-margin-top: 1.5rem;
  scroll-margin-bottom: calc(var(--nyc-footer-h) + 1.5rem);
}

.nyc-work__label {
  margin: 0 0 1.75rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nyc-muted);
  text-align: center;
}

.nyc-work__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .nyc-work__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .nyc-work__grid {
    gap: 2rem;
  }
}

/* Tiles */
.nyc-tile {
  position: relative;
  padding: 0;
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 0.5rem;
  background: rgba(10, 14, 26, 0.6);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.nyc-tile.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.nyc-tile:hover,
.nyc-tile:focus-within {
  border-color: rgba(0, 240, 255, 0.45);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.12);
}

.nyc-tile__art {
  position: relative;
  overflow: hidden;
}

.nyc-tile__art-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0.55rem 0.55rem 0.5rem;
  transition: transform 0.35s ease;
}

.nyc-tile:hover .nyc-tile__art-inner {
  transform: translate(var(--parallax-x, 0), var(--parallax-y, 0));
}

.nyc-tile__img-wrap {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
  border-radius: 0.25rem;
  aspect-ratio: 1448 / 1086;
  background: inherit;
}

.nyc-tile__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.nyc-tile__campaign {
  position: relative;
  flex-shrink: 0;
  margin: 0.4rem 0 0;
  padding: 0.35rem 0.6rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: var(--nyc-text);
  background: rgba(10, 14, 26, 0.75);
  border-radius: 0.25rem;
  backdrop-filter: blur(6px);
  pointer-events: none;
}

/* Per-brand tile accents */
.nyc-tile__art--lumen {
  background: #0d0618;
}

.nyc-tile[data-tile]:has(.nyc-tile__art--lumen):hover,
.nyc-tile[data-tile]:has(.nyc-tile__art--lumen):focus-within {
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow: 0 0 28px rgba(0, 240, 255, 0.15), 0 0 40px rgba(255, 45, 138, 0.08);
}

.nyc-tile__art--lumen .nyc-tile__campaign {
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: #00f0ff;
}

.nyc-tile__art--arc {
  background: #0a0812;
}

.nyc-tile[data-tile]:has(.nyc-tile__art--arc):hover,
.nyc-tile[data-tile]:has(.nyc-tile__art--arc):focus-within {
  border-color: rgba(255, 45, 138, 0.55);
  box-shadow: 0 0 28px rgba(255, 45, 138, 0.2);
}

.nyc-tile__art--arc .nyc-tile__campaign {
  border: 1px solid rgba(255, 45, 138, 0.4);
  color: #ff2d8a;
}

.nyc-tile__art--volt {
  background: #0a1628;
}

.nyc-tile[data-tile]:has(.nyc-tile__art--volt):hover,
.nyc-tile[data-tile]:has(.nyc-tile__art--volt):focus-within {
  border-color: rgba(255, 230, 0, 0.5);
  box-shadow: 0 0 28px rgba(255, 230, 0, 0.15);
}

.nyc-tile__art--volt .nyc-tile__campaign {
  border: 1px solid rgba(255, 230, 0, 0.35);
  color: #ffe600;
}

.nyc-tile__art--harbor {
  background: #061018;
}

.nyc-tile[data-tile]:has(.nyc-tile__art--harbor):hover,
.nyc-tile[data-tile]:has(.nyc-tile__art--harbor):focus-within {
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 0 28px rgba(212, 175, 55, 0.15);
}

.nyc-tile__art--harbor .nyc-tile__campaign {
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #d4af37;
}

.nyc-tile__art--riot {
  background: #0a0808;
}

.nyc-tile[data-tile]:has(.nyc-tile__art--riot):hover,
.nyc-tile[data-tile]:has(.nyc-tile__art--riot):focus-within {
  border-color: rgba(255, 69, 0, 0.55);
  box-shadow: 0 0 28px rgba(255, 69, 0, 0.2);
}

.nyc-tile__art--riot .nyc-tile__campaign {
  border: 1px solid rgba(255, 69, 0, 0.4);
  color: #ff4500;
}

.nyc-tile__art--mono {
  background: #0a0818;
}

.nyc-tile[data-tile]:has(.nyc-tile__art--mono):hover,
.nyc-tile[data-tile]:has(.nyc-tile__art--mono):focus-within {
  border-color: rgba(155, 89, 246, 0.5);
  box-shadow: 0 0 28px rgba(155, 89, 246, 0.2);
}

.nyc-tile__art--mono .nyc-tile__campaign {
  border: 1px solid rgba(192, 132, 252, 0.4);
  color: #c084fc;
}

.nyc-tile__client {
  margin: 0;
  padding: 1rem 1rem 0.25rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  transition: transform 0.25s ease;
}

.nyc-tile:hover .nyc-tile__client {
  transform: translateY(-4px);
}

.nyc-tile__tagline {
  margin: 0;
  padding: 0 1rem 1rem;
  font-size: 0.875rem;
  color: var(--nyc-muted);
}

/* Editorial SEO section */
.nyc-editorial {
  position: relative;
  z-index: 1;
  padding: 3rem 0 2rem;
  scroll-margin-top: 1.5rem;
  scroll-margin-bottom: calc(var(--nyc-footer-h) + 1.5rem);
}

@media (min-width: 768px) {
  .nyc-editorial {
    padding-top: 4rem;
    padding-bottom: 2.5rem;
  }
}

.nyc-editorial__inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
  padding-inline: var(--nyc-gutter-x);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.nyc-editorial__block {
  position: relative;
  padding: 1.75rem 1.5rem 1.75rem 1.75rem;
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 0.5rem;
  background: rgba(10, 14, 26, 0.55);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.04);
}

.nyc-editorial__block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  border-radius: 0.5rem 0 0 0.5rem;
  background: linear-gradient(180deg, var(--nyc-cyan), var(--nyc-magenta));
  opacity: 0.7;
}

.nyc-editorial__block--focus {
  border-color: rgba(0, 240, 255, 0.28);
  box-shadow:
    0 0 48px rgba(0, 240, 255, 0.06),
    inset 0 1px 0 rgba(0, 240, 255, 0.08);
}

.nyc-editorial__heading {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--nyc-text);
}

.nyc-editorial__accent {
  width: 3rem;
  height: 2px;
  margin-bottom: 1.25rem;
  background: linear-gradient(90deg, var(--nyc-cyan), transparent);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.45);
}

.nyc-editorial__accent--magenta {
  background: linear-gradient(90deg, var(--nyc-magenta), transparent);
  box-shadow: 0 0 8px rgba(255, 45, 138, 0.45);
}

.nyc-editorial__body p {
  margin: 0 0 1.15rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--nyc-muted);
}

.nyc-editorial__body p:last-child {
  margin-bottom: 0;
}

.nyc-editorial__body strong {
  color: var(--nyc-text);
  font-weight: 600;
}

.nyc-editorial a,
.nyc-editorial__body a,
.nyc-seo-note a {
  color: var(--nyc-cyan);
  text-decoration: none;
}

.nyc-editorial a:is(:link, :visited),
.nyc-editorial__body a:is(:link, :visited),
.nyc-seo-note a:is(:link, :visited) {
  color: var(--nyc-cyan);
}

.nyc-editorial a:hover,
.nyc-editorial__body a:hover {
  color: var(--nyc-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Accordion panels (details/summary) */
.nyc-accordion {
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 0.5rem;
  background: rgba(10, 14, 26, 0.55);
  box-shadow: 0 0 32px rgba(0, 240, 255, 0.03);
  scroll-margin-top: 1.5rem;
  scroll-margin-bottom: calc(var(--nyc-footer-h) + 1rem);
}

.nyc-accordion--magenta {
  border-color: rgba(255, 45, 138, 0.2);
  box-shadow: 0 0 32px rgba(255, 45, 138, 0.04);
}

.nyc-accordion__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  border-radius: 0.5rem;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.nyc-accordion__summary::-webkit-details-marker {
  display: none;
}

.nyc-accordion__summary::marker {
  content: '';
}

.nyc-accordion__summary:hover {
  background: rgba(0, 240, 255, 0.04);
}

.nyc-accordion--magenta .nyc-accordion__summary:hover {
  background: rgba(255, 45, 138, 0.05);
}

.nyc-accordion__summary:focus-visible {
  outline: 2px solid var(--nyc-cyan);
  outline-offset: -2px;
}

.nyc-accordion--magenta .nyc-accordion__summary:focus-visible {
  outline-color: var(--nyc-magenta);
}

.nyc-accordion__title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--nyc-text);
}

.nyc-accordion__chevron {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border: 1px solid rgba(0, 240, 255, 0.45);
  border-radius: 0.25rem;
  background:
    linear-gradient(var(--nyc-cyan), var(--nyc-cyan)) center / 60% 2px no-repeat,
    linear-gradient(var(--nyc-cyan), var(--nyc-cyan)) center / 2px 60% no-repeat;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
  transform: rotate(0deg);
  transition: transform 0.25s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nyc-accordion--magenta .nyc-accordion__chevron {
  border-color: rgba(255, 45, 138, 0.45);
  background:
    linear-gradient(var(--nyc-magenta), var(--nyc-magenta)) center / 60% 2px no-repeat,
    linear-gradient(var(--nyc-magenta), var(--nyc-magenta)) center / 2px 60% no-repeat;
  box-shadow: 0 0 10px rgba(255, 45, 138, 0.25);
}

.nyc-accordion[open] .nyc-accordion__chevron {
  transform: rotate(45deg);
}

.nyc-accordion__panel {
  padding: 0 1.5rem 1.75rem 1.75rem;
  border-top: 1px solid rgba(0, 240, 255, 0.1);
  animation: nyc-accordion-open 0.3s ease;
}

.nyc-accordion--magenta .nyc-accordion__panel {
  border-top-color: rgba(255, 45, 138, 0.12);
}

.nyc-accordion__panel .nyc-editorial__accent {
  margin-top: 1.25rem;
}

@keyframes nyc-accordion-open {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nyc-editorial__services {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .nyc-editorial__services {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .nyc-editorial__service:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    justify-self: center;
  }
}

.nyc-editorial__service {
  padding: 1rem 1rem 1rem 1.15rem;
  border-left: 2px solid rgba(0, 240, 255, 0.35);
  background: rgba(0, 240, 255, 0.03);
  border-radius: 0 0.35rem 0.35rem 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nyc-editorial__service:nth-child(even) {
  border-left-color: rgba(255, 45, 138, 0.35);
  background: rgba(255, 45, 138, 0.03);
}

.nyc-editorial__service:hover {
  border-left-color: var(--nyc-cyan);
  background: rgba(0, 240, 255, 0.06);
}

.nyc-editorial__service:nth-child(even):hover {
  border-left-color: var(--nyc-magenta);
  background: rgba(255, 45, 138, 0.06);
}

.nyc-editorial__service-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--nyc-cyan);
}

.nyc-editorial__service:nth-child(even) .nyc-editorial__service-title {
  color: var(--nyc-magenta);
}

.nyc-editorial__service p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--nyc-muted);
}

/* SEO note strip */
.nyc-seo-note {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  max-width: min(45rem, 100%);
  margin: 0 auto;
  padding: 2.5rem var(--nyc-gutter-x) 2rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--nyc-muted);
  text-align: center;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
  scroll-margin-top: 1.5rem;
  scroll-margin-bottom: calc(var(--nyc-footer-h) + 1.5rem);
}

@media (max-width: 767px) {
  .nyc-seo-note {
    text-align: left;
    padding-top: 2rem;
    padding-bottom: 2.5rem;
  }
}

@media (min-width: 768px) {
  .nyc-seo-note {
    padding-bottom: 2.5rem;
  }
}

.nyc-seo-note a {
  color: var(--nyc-cyan);
  text-decoration: none;
}

.nyc-seo-note a:hover {
  color: var(--nyc-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (min-width: 768px) {
  :root {
    --nyc-footer-h: 4.5rem;
    --nyc-footer-pad-y: 0.875rem;
  }
}

/* Sticky footer bar: CSMBAC brand link + CTA */
.nyc-footer a:any-link {
  color: inherit;
  text-decoration: none;
}

.nyc-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 80;
  box-sizing: border-box;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--nyc-glass);
  border-top: 1px solid rgba(0, 240, 255, 0.45);
  box-shadow: 0 -4px 32px rgba(0, 240, 255, 0.08);
  backdrop-filter: blur(12px);
  transform: translateY(0);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.nyc-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0.75rem;
  box-sizing: border-box;
  width: 100%;
  min-height: var(--nyc-footer-h);
  padding: var(--nyc-footer-pad-y) var(--nyc-footer-pad-x);
}

@media (min-width: 768px) {
  .nyc-footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }
}

.nyc-footer.is-entering {
  animation: nyc-footer-enter 0.3s ease-out backwards;
  will-change: transform;
}

.nyc-footer.is-entered {
  transform: translateY(0);
}

@keyframes nyc-footer-enter {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.nyc-footer__brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.nyc-footer__brand:any-link {
  color: inherit;
  text-decoration: none;
}

.nyc-footer__brand:visited .nyc-footer__brand-word {
  color: var(--nyc-cyan);
}

.nyc-footer__brand:hover {
  opacity: 0.92;
}

@media (min-width: 768px) {
  .nyc-footer__brand {
    gap: 0.6rem;
  }
}

.nyc-footer__brand:focus-visible {
  outline: 2px solid var(--nyc-cyan);
  outline-offset: 3px;
  border-radius: 0.25rem;
  opacity: 1;
}

.nyc-footer__brand-img {
  display: block;
  width: auto;
  height: 28px;
  max-width: 28px;
  flex-shrink: 0;
  object-fit: contain;
  object-position: center;
}

@media (min-width: 768px) {
  .nyc-footer__brand-img {
    height: 32px;
    max-width: 32px;
  }
}

.nyc-footer__brand-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nyc-cyan);
  line-height: 1.1;
  transition: color 0.2s ease;
}

@media (min-width: 768px) {
  .nyc-footer__brand-word {
    font-size: 0.875rem;
    letter-spacing: 0.2em;
  }
}

.nyc-footer__brand:hover .nyc-footer__brand-word {
  color: var(--nyc-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nyc-footer__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  font-family: var(--font-body);
  font-size: clamp(0.875rem, 2.5vw, 1.05rem);
  font-weight: 600;
  color: var(--nyc-text);
  text-decoration: none;
  text-align: center;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 0.35rem;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.nyc-footer__cta:any-link {
  color: var(--nyc-text);
  text-decoration: none;
}

.nyc-footer__cta:visited {
  color: var(--nyc-text);
}

@media (min-width: 768px) {
  .nyc-footer__cta {
    flex-shrink: 0;
    padding: 0.5rem 1.15rem;
    background: transparent;
    border-color: transparent;
    border-radius: 0;
  }
}

.nyc-footer__cta:hover {
  color: var(--nyc-cyan);
  background: rgba(0, 240, 255, 0.14);
  border-color: rgba(0, 240, 255, 0.55);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.12);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0, 240, 255, 0.45);
}

@media (min-width: 768px) {
  .nyc-footer__cta:hover {
    background: rgba(0, 240, 255, 0.06);
  }
}

.nyc-footer__cta:focus-visible {
  outline: 2px solid var(--nyc-cyan);
  outline-offset: 2px;
}

.nyc-footer__cta-arrow {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.nyc-footer__cta:hover .nyc-footer__cta-arrow {
  transform: translateX(4px);
}

/* Sitewide exit band + legal below NYC editorial (above sticky CTA bar) */
.site-footer-exit-banner,
.site-footer-exit-banner[data-theme='dark'] {
  --footer-bg: var(--nyc-bg);
  --footer-bg-top: rgba(0, 240, 255, 0.12);
  position: relative;
  z-index: 90;
  background: var(--nyc-bg);
  padding-bottom: calc(var(--nyc-footer-h) + env(safe-area-inset-bottom, 0px));
}

html[data-theme='light'] .site-footer-exit-banner {
  background: var(--nyc-bg);
}

.site-footer-exit-banner .site-footer-exit-banner__link--dark {
  display: block;
}

.footer-legal--sitewide-bottom {
  --text-muted: var(--nyc-muted);
  --link-neutral: var(--nyc-cyan);
  --text-main: var(--nyc-text);
  position: relative;
  z-index: 90;
  margin-bottom: calc(var(--nyc-footer-h) + env(safe-area-inset-bottom, 0px));
  padding: 1rem var(--nyc-gutter-x) 1.35rem;
  background: var(--nyc-bg);
  border-top-color: rgba(0, 240, 255, 0.12);
  overflow-wrap: anywhere;
}

.footer-legal--sitewide-bottom a.footer-legal__site,
.footer-legal--sitewide-bottom a.footer-legal__site:is(:link, :visited, :hover, :focus, :focus-visible, :active) {
  color: var(--nyc-cyan);
  text-decoration: none;
}

.footer-legal--sitewide-bottom a.footer-legal__site:hover,
.footer-legal--sitewide-bottom a.footer-legal__site:focus-visible {
  color: var(--nyc-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .nyc-streak--cyan,
  .nyc-streak--magenta,
  .nyc-word,
  .nyc-gen,
  .nyc-lockup__state--1 .nyc-word {
    animation: none !important;
  }

  .nyc-lockup__state {
    transition: none;
  }

  .nyc-lockup[data-state]:not([data-state="1"]):not([data-state="4"]) .nyc-lockup__state--1 {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.98);
  }

  .nyc-lockup[data-state="1"] .nyc-lockup__state--1,
  .nyc-lockup[data-state="4"] .nyc-lockup__state--1 {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nyc-lockup[data-state]:not([data-state="2"]) .nyc-lockup__state--2,
  .nyc-lockup[data-state]:not([data-state="3"]) .nyc-lockup__state--3 {
    opacity: 0;
    visibility: hidden;
  }

  .nyc-threads {
    display: none;
  }

  .nyc-tile {
    opacity: 1;
    transform: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .nyc-tile:hover .nyc-tile__art-inner {
    transform: none;
  }

  .nyc-footer.is-entering {
    animation: none;
    will-change: auto;
  }

  .nyc-footer.is-entered {
    transform: none;
  }

  .nyc-accordion__panel {
    animation: none;
  }

  .nyc-accordion__chevron {
    transition: none;
  }
}

/* Agency Examples cross-links (shared component, NYC theme) */
.nyc-crosslinks {
  box-sizing: border-box;
  width: 100%;
  max-width: 60rem;
  margin: clamp(2.5rem, 6vw, 4rem) auto;
  padding: 2rem var(--nyc-gutter-x) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nyc-crosslinks .nyc-work__label {
  text-align: left;
}

.nyc-crosslinks .ae-crosslinks__hub {
  margin: 1.25rem 0 0;
  text-align: left;
}

.nyc-crosslinks .ae-crosslink {
  border-color: rgba(0, 240, 255, 0.2);
  background: rgba(10, 14, 26, 0.5);
  color: var(--nyc-text);
}

.nyc-crosslinks .ae-crosslink:hover,
.nyc-crosslinks .ae-crosslink:focus-visible {
  border-color: var(--nyc-cyan);
  color: var(--nyc-text);
}

.nyc-crosslinks .ae-crosslinks__hub a {
  color: var(--nyc-cyan);
}

.nyc-crosslinks .ae-crosslinks__hub a:hover,
.nyc-crosslinks .ae-crosslinks__hub a:focus-visible {
  color: var(--nyc-magenta);
}
