/* =========================================================
 * Branding Agency NYC — layout-only overrides.
 *
 * Page inherits dark theme, typography, buttons, FAQ, and CTA
 * styling from main.css / service.css / custom.css. This file
 * only adds layout for sections that don't already exist as
 * modules (hero eyebrow/trust strip, who-we-work-with grid,
 * services grid, process list, NYC credentials, work CTA).
 * ========================================================= */

/* Graceful-degradation visibility reset.
   animations.css sets `.will-animate { visibility: hidden }` globally
   and waits for GSAP. The site's animations.js only animates elements
   matching a specific selector list — anything else stays hidden until
   the 4s safety fallback fires. We render our content immediately and
   let GSAP override inline if it picks an element up. */
.nyc-page .will-animate,
.nyc-page .nyc-hero .will-animate,
.nyc-page .nyc-who .will-animate,
.nyc-page .nyc-services .will-animate,
.nyc-page .nyc-process .will-animate,
.nyc-page .nyc-local .will-animate,
.nyc-page .nyc-work .will-animate,
.nyc-page .nyc-faq-section .will-animate,
.nyc-page .cta-section.cta-v2 .will-animate {
    visibility: visible;
}

/* Page-wide film grain.
   Inlined fractal-noise SVG so there's no extra HTTP request. Sits on
   top via fixed pseudo-element with pointer-events:none. z-index sits
   between section content (auto) and the site header (z-index 99) so
   it overlays the page without blocking nav. Very low opacity — meant
   to be felt, not seen. */
.nyc-page { position: relative; }

.nyc-page::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 50;
    opacity: 0.06;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    background-size: 240px 240px;
}

/* ---------- Shared bits ---------- */
.nyc-page .nyc-eyebrow {
    display: inline-block;
    font-family: 'PP Supply Mono', 'Neue Montreal', monospace;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
}

.nyc-page .nyc-section-head {
    max-width: 880px;
    margin-bottom: 80px;
}

.nyc-page .nyc-section-head .cs-heading {
    margin: 0 0 28px;
    color: #fff;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.nyc-page .nyc-section-sub {
    font-family: 'Neue Montreal', sans-serif;
    font-size: 20px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.7);
    max-width: 640px;
    margin: 0;
}

/* ---------- 1. HERO ---------- */
.nyc-page .nyc-hero .cs-hero-main {
    padding: 200px 0 100px;
    min-height: auto;
    position: relative;
    overflow: hidden;
    background-color: #0a0a0a;
    background-image:
        linear-gradient(180deg, rgba(10, 10, 10, 0.72) 0%, rgba(10, 10, 10, 0.55) 40%, rgba(10, 10, 10, 0.88) 100%),
        radial-gradient(ellipse 90% 60% at 100% 0%, rgba(99, 102, 241, 0.18) 0%, rgba(99, 102, 241, 0) 55%),
        radial-gradient(ellipse 60% 60% at 0% 100%, rgba(34, 211, 238, 0.10) 0%, rgba(34, 211, 238, 0) 60%),
        url('../images/service-banner.png');
    background-size: auto, auto, auto, cover;
    background-position: center, center, center, center;
    background-repeat: no-repeat;
}

.nyc-page .nyc-hero .cs-hero-main::before {
    background: none;
}

.nyc-page .nyc-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.nyc-page .nyc-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 75% 75% at 50% 40%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 40%, #000 30%, transparent 80%);
    mix-blend-mode: overlay;
}

.nyc-page .nyc-hero .container { position: relative; z-index: 1; }

.nyc-page .nyc-hero-content {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 0;
}

.nyc-page .nyc-hero-text { max-width: 720px; }

.nyc-page .nyc-hero-eyebrow {
    display: inline-block;
    font-family: 'PP Supply Mono', 'Neue Montreal', monospace;
    font-size: 14px;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 28px;
}

.nyc-page .nyc-hero-heading {
    font-size: clamp(40px, 6.4vw, 92px);
    line-height: 1;
    letter-spacing: -0.025em;
    max-width: 18ch;
    margin: 0 0 32px;
    text-transform: none;
    font-weight: 500;
}

.nyc-page .nyc-hero-desc {
    font-size: clamp(18px, 1.5vw, 21px);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.75);
    max-width: 640px;
    margin: 0 0 40px;
}

.nyc-page .nyc-hero-desc p { margin: 0; }

.nyc-page .nyc-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 56px;
}

.nyc-page .nyc-hero-trust {
    list-style: none;
    padding: 28px 0 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Neue Montreal', sans-serif;
    font-size: 15px;
    line-height: 1.4;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.nyc-page .nyc-hero-trust li strong {
    color: #fff;
    font-weight: 500;
    margin-right: 6px;
}

/* ---------- Hero NYC stamp ---------- */
.nyc-page .nyc-hero-stamp {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    padding: 28px 32px 36px;
    background: rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    gap: 24px;
    aspect-ratio: 5 / 6;
    max-width: 480px;
    margin-left: auto;
    position: relative;
    overflow: hidden;
}

.nyc-page .nyc-hero-stamp::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 100%, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.nyc-page .nyc-hero-stamp-meta-top {
    display: flex;
    justify-content: space-between;
    font-family: 'PP Supply Mono', monospace;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.04em;
    position: relative;
    z-index: 1;
}

.nyc-page .nyc-hero-stamp-stack {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    position: relative;
    z-index: 1;
}

.nyc-page .nyc-hero-stamp-line {
    font-family: 'PP Neue Montreal', sans-serif;
    font-weight: 500;
    font-size: clamp(56px, 8vw, 104px);
    line-height: 0.92;
    letter-spacing: -0.045em;
    color: #fff;
    text-transform: uppercase;
}

.nyc-page .nyc-hero-stamp-line:nth-child(2) {
    padding-left: 0.3em;
    color: rgba(255, 255, 255, 0.85);
}

.nyc-page .nyc-hero-stamp-line:nth-child(3) {
    padding-left: 0.15em;
    color: rgba(255, 255, 255, 0.55);
}

.nyc-page .nyc-hero-stamp-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'PP Supply Mono', monospace;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.nyc-page .nyc-hero-stamp-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

/* ---------- 2. WHO WE WORK WITH ---------- */
.nyc-page .nyc-who {
    padding: 120px 0;
    background: #101010;
}

.nyc-page .nyc-who-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.nyc-page .nyc-who-col {
    padding: 40px 32px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.3s ease, background 0.3s ease;
}

.nyc-page .nyc-who-col:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.04);
}

.nyc-page .nyc-who-col h3 {
    font-family: 'PP Neue Montreal', sans-serif;
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0 0 16px;
    color: #fff;
}

.nyc-page .nyc-who-col p {
    color: rgba(255, 255, 255, 0.65);
    font-family: 'Neue Montreal', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

/* ---------- 3. SERVICES ---------- */
.nyc-page .nyc-services {
    padding: 120px 0;
    background: #101010;
}

.nyc-page .nyc-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    overflow: hidden;
}

.nyc-page .nyc-service-card {
    background: #101010;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 260px;
    transition: background 0.3s ease;
}

.nyc-page .nyc-service-card:hover {
    background: rgba(255, 255, 255, 0.03);
}

.nyc-page .nyc-service-num {
    font-family: 'PP Supply Mono', monospace;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0;
}

.nyc-page .nyc-service-title {
    font-family: 'PP Neue Montreal', sans-serif;
    font-size: 26px;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0;
    color: #fff;
}

.nyc-page .nyc-service-desc {
    color: rgba(255, 255, 255, 0.65);
    font-family: 'Neue Montreal', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

/* ---------- 4. PROCESS ---------- */
.nyc-page .nyc-process {
    padding: 120px 0;
    background: #101010;
}

.nyc-page .nyc-process-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.nyc-page .nyc-process-row {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 40px;
    padding: 36px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    align-items: start;
}

.nyc-page .nyc-process-num {
    font-family: 'PP Supply Mono', monospace;
    font-size: 14px;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.35);
    padding-top: 6px;
}

.nyc-page .nyc-process-title {
    font-family: 'PP Neue Montreal', sans-serif;
    font-size: 28px;
    font-weight: 500;
    margin: 0 0 12px;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.nyc-page .nyc-process-body {
    color: rgba(255, 255, 255, 0.65);
    font-family: 'Neue Montreal', sans-serif;
    font-size: 16px;
    line-height: 1.55;
    margin: 0;
    max-width: 60ch;
}

.nyc-page .nyc-process-duration {
    font-family: 'PP Supply Mono', monospace;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
    padding-top: 10px;
    white-space: nowrap;
}

/* ---------- 5. NYC CREDENTIALS
   why-bg.png (dotted wave texture) sits behind the section with a
   heavy dark gradient overlay so the abstract dot pattern reads as
   a subtle topographic / city-grid feel without competing with copy. */
.nyc-page .nyc-local {
    padding: 120px 0;
    position: relative;
    background-color: #101010;
    background-image:
        linear-gradient(90deg, rgba(16, 16, 16, 0.96) 0%, rgba(16, 16, 16, 0.78) 45%, rgba(16, 16, 16, 0.45) 100%),
        url('../images/why-bg.png');
    background-size: auto, cover;
    background-position: center, right center;
    background-repeat: no-repeat;
}

.nyc-page .nyc-local-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: start;
}

.nyc-page .nyc-local-left .cs-heading {
    margin-bottom: 32px;
}

.nyc-page .nyc-local-body {
    font-family: 'Neue Montreal', sans-serif;
    font-size: 18px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 32px;
    max-width: 60ch;
}

.nyc-page .nyc-local-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 14px;
}

.nyc-page .nyc-local-bullets li {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Neue Montreal', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    padding-left: 24px;
    position: relative;
}

.nyc-page .nyc-local-bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
}

.nyc-page .nyc-local-bullets li strong {
    color: #fff;
    font-weight: 500;
}

.nyc-page .nyc-local-quote {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.02);
}

.nyc-page .nyc-local-quote blockquote {
    margin: 0 0 24px;
    padding: 0;
    border: none;
}

.nyc-page .nyc-local-quote blockquote p {
    margin: 0;
    color: #fff;
    font-family: 'PP Neue Montreal', sans-serif;
    font-size: 22px;
    line-height: 1.35;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.nyc-page .nyc-local-quote-attr { display: block; }
.nyc-page .nyc-local-quote-name { margin: 0 0 4px; color: #fff; font-size: 14px; font-weight: 500; }
.nyc-page .nyc-local-quote-role { margin: 0; color: rgba(255, 255, 255, 0.5); font-size: 13px; }

/* ---------- 6. SELECTED WORK
   Reuses .featured-work-sec / .featured-work-grid / .featured-work-item
   from main.css so project tiles, hover scale, gradient overlay, and
   services tags all apply automatically. We only adjust outer spacing. */
.nyc-page .nyc-work {
    padding: 120px 0;
    background: #101010;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nyc-page .nyc-work .featured-work-grid { margin-bottom: 60px; }

.nyc-page .nyc-work-cta { margin: 0; }

.nyc-page .nyc-work-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-family: 'PP Neue Montreal', sans-serif;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.01em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 8px;
    transition: gap 0.3s ease, border-color 0.3s ease;
}

.nyc-page .nyc-work-link:hover {
    gap: 18px;
    border-color: #fff;
}

/* ---------- 7. FAQ section tweak (uses .faq-section base)
   The dramatic light-shaft / monolith faq-banner.png drops in behind
   the FAQ. The .faq-section base already has a bottom-fade overlay
   (linear-gradient → #101010), so we only need a softer top overlay
   so the image reads through without overwhelming the answers. */
.nyc-page .nyc-faq-section {
    min-height: 0;
    padding: 120px 0;
    background-color: #101010;
    background-image:
        linear-gradient(180deg, rgba(16, 16, 16, 0.65) 0%, rgba(16, 16, 16, 0.82) 50%, rgba(16, 16, 16, 0.95) 100%),
        url('../images/faq-banner.png');
    background-size: auto, cover;
    background-position: center, center top;
    background-repeat: no-repeat;
}

.nyc-page .nyc-faq-section .quote-box {
    margin-bottom: 80px;
    max-width: 100%;
}

/* ---------- 8. FINAL CTA texture
   The .cta-v2-left card already has a glass background and a built-in
   dark gradient overlay via ::before — we just feed it the silk/glass
   service-banner-2.png so the card has an actual visual instead of an
   empty glass panel. Scoped under .nyc-page so the regular contact_cta
   module isn't affected. */
.nyc-page .cta-section.cta-v2 .cta-v2-left {
    background-image: url('../images/service-banner-2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .nyc-page .nyc-hero-content { gap: 56px; }
    .nyc-page .nyc-hero-stamp { padding: 24px; }
}

@media (max-width: 1024px) {
    .nyc-page .nyc-hero-content { grid-template-columns: 1fr; gap: 48px; }
    .nyc-page .nyc-hero-stamp { aspect-ratio: auto; max-width: 100%; margin-left: 0; }
    .nyc-page .nyc-hero-stamp-stack { gap: 0; }
    .nyc-page .nyc-who-grid { grid-template-columns: 1fr 1fr; }
    .nyc-page .nyc-services-grid { grid-template-columns: 1fr 1fr; }
    .nyc-page .nyc-local-grid { grid-template-columns: 1fr; gap: 56px; }
    .nyc-page .nyc-work .featured-work-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .nyc-page .nyc-hero .cs-hero-main { padding: 140px 0 64px; }
    .nyc-page .nyc-hero-content { gap: 40px; }
    .nyc-page .nyc-hero-stamp { padding: 20px; }
    .nyc-page .nyc-hero-stamp-line { font-size: clamp(48px, 16vw, 80px); }
    .nyc-page .nyc-hero-trust { gap: 12px; flex-direction: column; }

    .nyc-page .nyc-who,
    .nyc-page .nyc-services,
    .nyc-page .nyc-process,
    .nyc-page .nyc-local,
    .nyc-page .nyc-work { padding: 72px 0; }

    .nyc-page .nyc-section-head { margin-bottom: 48px; }
    .nyc-page .nyc-who-grid { grid-template-columns: 1fr; }
    .nyc-page .nyc-services-grid { grid-template-columns: 1fr; }
    .nyc-page .nyc-service-card { min-height: 0; padding: 32px 24px; }
    .nyc-page .nyc-who-col { padding: 32px 24px; }
    .nyc-page .nyc-local-quote { padding: 32px 24px; }
    .nyc-page .nyc-process-row {
        grid-template-columns: 48px 1fr;
        gap: 16px;
        padding: 28px 0;
    }
    .nyc-page .nyc-process-duration { grid-column: 2; padding-top: 0; }
    .nyc-page .nyc-process-title { font-size: 22px; }
    .nyc-page .nyc-work .featured-work-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .nyc-page .nyc-faq-section { padding: 72px 0; }
    .nyc-page .nyc-faq-section .quote-box { margin-bottom: 48px; }
}
