/* ===================================
   East End Web - Custom Styles
   =================================== */

/* ===================================
   Fluid Typography System
   All sizes scale with viewport using clamp()
   Format: clamp(min, preferred, max)
   =================================== */

:root {
    /* Fluid Base Font Size */
    --fluid-base: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);

    /* Fluid Heading Sizes */
    --fluid-h1: clamp(2.5rem, 5vw + 1rem, 8rem);
    --fluid-h2: clamp(2rem, 4vw + 0.5rem, 5rem);
    --fluid-h3: clamp(1.5rem, 2vw + 0.5rem, 2.25rem);
    --fluid-h4: clamp(1.25rem, 1.5vw + 0.5rem, 2rem);
    --fluid-h5: clamp(1.1rem, 1.2vw + 0.5rem, 1.5rem);
    --fluid-h6: clamp(1rem, 1vw + 0.5rem, 1.25rem);

    /* Fluid Spacing */
    --fluid-section-y: clamp(4rem, 8vw, 12rem);
    --fluid-section-x: clamp(1rem, 3vw, 4rem);
    --fluid-gap-lg: clamp(2rem, 4vw, 6rem);
    --fluid-gap-md: clamp(1.5rem, 3vw, 4rem);
    --fluid-gap-sm: clamp(1rem, 2vw, 2rem);

    /* Fluid Component Sizes */
    --fluid-card-padding: clamp(1.5rem, 3vw, 3rem);
    --fluid-btn-padding-x: clamp(1.5rem, 2vw, 3rem);
    --fluid-btn-padding-y: clamp(0.75rem, 1.2vw, 1.5rem);
    --fluid-icon-size: clamp(2.5rem, 4vw, 5rem);
}

/* Base Typography */
html {
    font-size: 100%;
    /* Respects user zoom preferences */
}

body {
    font-family: 'Manrope', sans-serif;
    font-size: var(--fluid-base);
    line-height: 1.6;
    font-feature-settings: 'ss01', 'ss02';
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Fraunces', Georgia, serif;
    font-variation-settings: 'opsz' 96, 'SOFT' 50;
    line-height: 1.15;
    letter-spacing: -0.015em;
}

h3,
h4,
h5,
h6 {
    line-height: 1.25;
    font-variation-settings: 'opsz' 36, 'SOFT' 50;
}

h1 {
    font-size: var(--fluid-h1);
}

h2 {
    font-size: var(--fluid-h2);
}

h3 {
    font-size: var(--fluid-h3);
}

h4 {
    font-size: var(--fluid-h4);
}

h5 {
    font-size: var(--fluid-h5);
}

h6 {
    font-size: var(--fluid-h6);
}

.font-serif {
    font-family: 'Fraunces', Georgia, serif;
    font-variation-settings: 'opsz' 144, 'SOFT' 100;
}

/* Restore Material Symbols' ligature feature. The body
   `font-feature-settings: 'ss01', 'ss02'` inherits to children and would
   override the font's default 'liga' feature that turns a word like
   "forum" into the icon glyph. Without this, icons render as raw text. */
.material-symbols-outlined {
    font-feature-settings: 'liga';
}

/* Theme toggle icons — bypass the Tailwind `dark:hidden` / `hidden dark:block`
   pattern which collides with Google Fonts' `.material-symbols-outlined
   { display: inline-block }` (same specificity, loads later). Scoped
   custom classes make this unambiguous. */
.theme-icon-light,
.theme-icon-dark {
    display: none;
}
html.light .theme-icon-light,
html:not(.dark) .theme-icon-light,
html.dark .theme-icon-dark {
    display: inline-block;
}

/* Fluid Text Utilities */
.text-fluid-xs {
    font-size: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
}

.text-fluid-sm {
    font-size: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
}

.text-fluid-base {
    font-size: var(--fluid-base);
}

.text-fluid-lg {
    font-size: clamp(1.125rem, 1rem + 0.5vw, 1.5rem);
}

.text-fluid-xl {
    font-size: clamp(1.25rem, 1.1rem + 0.75vw, 2rem);
}

.text-fluid-2xl {
    font-size: clamp(1.5rem, 1.25rem + 1vw, 2.5rem);
}

.text-fluid-3xl {
    font-size: clamp(1.875rem, 1.5rem + 1.5vw, 3.5rem);
}

.text-fluid-4xl {
    font-size: clamp(2.25rem, 2rem + 2vw, 5rem);
}

.text-fluid-5xl {
    font-size: clamp(3rem, 2.5rem + 3vw, 7rem);
}

.text-fluid-hero {
    font-size: var(--fluid-h1);
}

/* Fluid Spacing Utilities */
.py-fluid {
    padding-top: var(--fluid-section-y);
    padding-bottom: var(--fluid-section-y);
}

.px-fluid {
    padding-left: var(--fluid-section-x);
    padding-right: var(--fluid-section-x);
}

.p-fluid {
    padding: var(--fluid-card-padding);
}

.gap-fluid {
    gap: var(--fluid-gap-md);
}

.gap-fluid-lg {
    gap: var(--fluid-gap-lg);
}

.gap-fluid-sm {
    gap: var(--fluid-gap-sm);
}

.mb-fluid {
    margin-bottom: var(--fluid-gap-md);
}

.mt-fluid {
    margin-top: var(--fluid-gap-md);
}

/* Fluid Button */
.btn-fluid {
    padding: var(--fluid-btn-padding-y) var(--fluid-btn-padding-x);
    font-size: clamp(0.9rem, 0.8rem + 0.4vw, 1.25rem);
}

/* Fluid Icon Container */
.icon-fluid {
    width: var(--fluid-icon-size);
    height: var(--fluid-icon-size);
}

/* Max Width for Readability */
.max-w-readable {
    max-width: 65ch;
}

/* ===================================
   Desktop Tuning (md+)
   Reduced from an 18-rule !important chain to 7
   targeted overrides. Removed rules are now handled
   by utility classes or natural cascade:
   - Section padding → .py-fluid
   - H2 sizing → Fraunces + inline clamp on new editorial H2s
   - H3 sizing → --fluid-h3 CSS var (global rule)
   - Hero paragraph → now uses explicit text-[1.1rem]
   - Old px-8 buttons → superseded by .hero-cta-primary
   - text-5xl/6xl/etc. → trust Tailwind defaults for restraint
   - Marquee → deleted
   =================================== */

@media (min-width: 768px) {

    /* Cards use fluid padding — exclude pills/badges */
    .glass-card:not([class*="rounded-full"]):not([class*="px-5"]):not([class*="px-4"]),
    [class*="rounded-3xl"]:not([class*="aspect-"]) {
        padding: clamp(1.5rem, 3vw, 4rem) !important;
    }

    /* Keep pills compact inside the above */
    [class*="rounded-full"][class*="px-"] {
        padding: 0.5rem 1.25rem !important;
    }

    /* Fluid gaps on expertise / industry grids */
    section#services .grid,
    section .grid[class*="gap-6"],
    section .grid[class*="gap-8"] {
        gap: clamp(1rem, 2vw, 3rem) !important;
    }

    /* Industry cards — fluid aspect */
    [class*="aspect-[4/5]"] {
        min-height: clamp(300px, 40vw, 600px);
    }

    /* Process step circles */
    [class*="w-24"][class*="h-24"] {
        width: clamp(4rem, 6vw, 10rem) !important;
        height: clamp(4rem, 6vw, 10rem) !important;
    }

    /* Navbar sizing */
    nav>div>div {
        height: clamp(4rem, 5vw, 7rem) !important;
    }

    nav span[class*="text-xl"] {
        font-size: clamp(1.25rem, 2vw, 2.5rem) !important;
    }

    nav a {
        font-size: clamp(0.875rem, 1.2vw, 1.5rem) !important;
    }
}

/* ===================================
   Policy/Terms Page — Prose Heading Override
   Reset h2 size inside .prose containers so the
   `section h2` fluid rule does not apply.
   =================================== */
.prose h2,
section .prose h2 {
    font-size: 1.5rem !important;
    line-height: 1.35 !important;
    margin-bottom: 1rem !important;
}

/* Also fix h3 inside prose (global h3 rule is too large) */
.prose h3 {
    font-size: 1.125rem !important;
    line-height: 1.4 !important;
}

/* Remove the forced section top-padding on prose content sections
   so the page doesn't have a huge blank gap above the content */
section:has(.prose) {
    padding-top: 0 !important;
}

@media (min-width: 768px) {

    .prose h2,
    section .prose h2 {
        font-size: 1.75rem !important;
        line-height: 1.35 !important;
        margin-bottom: 1rem !important;
    }

    .prose h3 {
        font-size: 1.25rem !important;
        line-height: 1.4 !important;
    }
}

/* ===================================
   Skip-to-content link (a11y)
   Hidden off-canvas until keyboard focus reveals it.
   =================================== */
.skip-to-content {
    position: fixed;
    top: 1rem;
    left: 1rem;
    padding: 0.75rem 1.25rem;
    background: #137fec;
    color: #ffffff;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 999px;
    z-index: 10001;
    transform: translateY(-250%);
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 10px 30px -10px rgba(19, 127, 236, 0.6);
    text-decoration: none;
}

.skip-to-content:focus,
.skip-to-content:focus-visible {
    transform: translateY(0);
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

/* Utility: Hide Scrollbar */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ===================================
   Glassmorphism
   =================================== */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dark .glass-card {
    background: rgba(22, 32, 50, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===================================
   AI Orb Glow
   =================================== */
.ai-orb-glow {
    box-shadow: 0 0 60px 10px rgba(168, 85, 247, 0.4);
}

/* ===================================
   Button Glow Effect
   =================================== */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 0 20px 5px rgba(19, 127, 236, 0.5),
        0 0 40px 10px rgba(19, 127, 236, 0.3);
}

.btn-glow:hover::before {
    opacity: 1;
    animation: btn-pulse 2s ease-in-out infinite;
}

@keyframes btn-pulse {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

/* ===================================
   Shrinking Navbar on Scroll
   =================================== */
nav {
    transition: all 0.3s ease;
}

nav.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

nav.navbar-scrolled>div>div {
    height: 4rem !important;
}

/* Logo shrinks on scroll */
nav img {
    transition: height 0.3s ease;
}

nav.navbar-scrolled img {
    height: 2.5rem !important;
}

.dark nav.navbar-scrolled {
    background: rgba(11, 17, 32, 0.95) !important;
}

/* ===================================
   Mobile Navigation Drawer
   =================================== */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    padding: 2rem;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
}

.dark .mobile-nav {
    background: rgba(22, 32, 50, 0.98);
}

.mobile-nav.open {
    transform: translateX(0);
}

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 99;
}

.mobile-nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* ===================================
   AOS Animation Delay Utilities
   =================================== */
[data-aos-delay="100"] {
    transition-delay: 100ms;
}

[data-aos-delay="200"] {
    transition-delay: 200ms;
}

[data-aos-delay="300"] {
    transition-delay: 300ms;
}

[data-aos-delay="400"] {
    transition-delay: 400ms;
}

/* Honeypot Field (Spam Protection) */
.contact-internal-field {
    position: absolute;
    left: -5000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ===================================
   Keyframes (Moved from Inline)
   =================================== */
@keyframes grow {
    to {
        transform: scaleX(1);
    }
}

/* ===================================
   #13 — Button Press Micro-interaction
   Tactile "press" feel on click
   =================================== */
button:active,
a[class*="btn"]:active,
.btn-glow:active {
    transform: scale(0.97) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    transition: transform 0.1s ease, box-shadow 0.1s ease !important;
}

/* ===================================
   #5 — Gradient Border Glow on Hover (Opt-in)
   Animated conic border. Reserved for a few premium targets
   so it reads as a signature move, not boilerplate.
   Add .glass-card--premium alongside .glass-card to opt in.
   =================================== */
.glass-card {
    position: relative;
}

.glass-card--premium::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: conic-gradient(from var(--glow-angle, 0deg),
            transparent 40%,
            #137fec 50%,
            #06b6d4 60%,
            transparent 70%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.glass-card--premium:hover::before {
    opacity: 1;
    animation: glow-rotate 3s linear infinite;
}

@keyframes glow-rotate {
    to {
        --glow-angle: 360deg;
    }
}

/* Register the custom property for animation */
@property --glow-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* ===================================
   #11 — Text Gradient Shimmer
   Shine effect on gradient text
   =================================== */
.text-shimmer {
    background-size: 200% 100%;
    animation: text-shimmer 4s ease-in-out infinite;
}

@keyframes text-shimmer {

    0%,
    100% {
        background-position: 100% 50%;
    }

    50% {
        background-position: 0% 50%;
    }
}

/* ===================================
   #9 — Scroll Progress Indicator
   Thin gradient bar at top of page
   =================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 9999;
    pointer-events: none;
    transform-origin: left;
    transform: scaleX(0);
    background: linear-gradient(90deg, #137fec, #a855f7, #06b6d4);
    transition: transform 0.1s linear;
}

/* ===================================
   Accessibility: Reduced Motion
   =================================== */
@media (prefers-reduced-motion: reduce) {

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

    .scroll-progress {
        display: none;
    }

    .glass-card--premium::before {
        display: none;
    }

}
/* ===================================
   Automation Calculator
   =================================== */
@keyframes calcShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

.pricing-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #137fec;
    box-shadow: 0 0 12px rgba(19, 127, 236, 0.4), 0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: grab;
    transition: transform 0.15s;
    border: none;
}
.pricing-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}
.pricing-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #137fec;
    box-shadow: 0 0 12px rgba(19, 127, 236, 0.4), 0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: grab;
    border: none;
}

/* ===================================
   Editorial Hero
   Used on index.html. The new hero pattern — replaces
   the old 3-blob + centered-pill treatment.
   =================================== */

.editorial-hero {
    position: relative;
    overflow: hidden;
    padding-top: clamp(3rem, 6vw, 7rem);
    padding-bottom: clamp(4rem, 8vw, 9rem);
}

.editorial-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(19, 127, 236, 0.10) 1px, transparent 1.25px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, black 0%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, black 0%, transparent 85%);
    pointer-events: none;
    z-index: 0;
}

.dark .editorial-hero::before {
    background-image: radial-gradient(circle, rgba(19, 127, 236, 0.18) 1px, transparent 1.25px);
}

.editorial-hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 55%;
    height: 80%;
    background: radial-gradient(circle at 60% 40%, rgba(19, 127, 236, 0.12) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.hero-headline {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(2.5rem, 6vw + 1rem, 9rem);
    line-height: 0.95;
    letter-spacing: -0.028em;
    font-weight: 500;
    font-variation-settings: 'opsz' 144, 'SOFT' 30, 'wght' 500;
    color: #0f172a;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
}

.dark .hero-headline {
    color: #ffffff;
}

.hero-headline em {
    font-style: italic;
    font-weight: 400;
    font-variation-settings: 'opsz' 144, 'SOFT' 100, 'wght' 400;
    color: #137fec;
    padding-right: 0.05em;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Manrope', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: #475569;
}

.dark .hero-label {
    color: #cbd5e1;
}

.hero-label::before {
    content: '';
    width: 2.5rem;
    height: 1px;
    background: currentColor;
    opacity: 0.4;
}

.hero-cta-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.95rem 1.75rem;
    background: #0f172a;
    color: #ffffff;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 999px;
    transition: box-shadow 0.4s ease, background 0.3s ease;
    overflow: hidden;
}

.dark .hero-cta-primary {
    background: #ffffff;
    color: #0f172a;
}

.hero-cta-primary:hover {
    box-shadow: 0 10px 40px -10px rgba(19, 127, 236, 0.45), 0 0 0 4px rgba(19, 127, 236, 0.08);
    background: #137fec;
}

.dark .hero-cta-primary:hover {
    background: #137fec;
    color: #ffffff;
}

.hero-cta-primary .arrow {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-cta-primary:hover .arrow {
    transform: translateX(3px);
}

.hero-cta-ghost {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.95rem 0.25rem;
    color: inherit;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    background-image: linear-gradient(to right, currentColor 0%, currentColor 100%);
    background-repeat: no-repeat;
    background-position: 0% 100%;
    background-size: 0% 1px;
    transition: background-size 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-cta-ghost:hover {
    background-size: 100% 1px;
}

.hero-cta-ghost .arrow {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-cta-ghost:hover .arrow {
    transform: translateX(3px);
}

.hero-browser {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 24px 48px -16px rgba(15, 23, 42, 0.18),
        0 48px 96px -32px rgba(19, 127, 236, 0.12);
    transform: rotate(0.4deg);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.dark .hero-browser {
    background: #162032;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.2),
        0 24px 48px -16px rgba(0, 0, 0, 0.5),
        0 48px 96px -32px rgba(19, 127, 236, 0.2);
}

.hero-browser:hover {
    transform: rotate(0deg) translateY(-4px);
}

.hero-browser-chrome {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    background: rgba(248, 249, 252, 0.7);
}

/* Cap the hero image viewport — crops tall full-page screenshots
   to a reasonable aspect while a final asset is selected. */
.hero-browser img {
    max-height: min(56vh, 460px);
    width: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.dark .hero-browser-chrome {
    background: rgba(11, 17, 32, 0.7);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.hero-browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.15);
}

.dark .hero-browser-dot {
    background: rgba(255, 255, 255, 0.2);
}

.hero-browser-url {
    margin-left: 0.75rem;
    font-family: 'Manrope', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #64748b;
}

.hero-browser-url span {
    opacity: 0.5;
}

.hero-browser-ghost {
    position: absolute;
    inset: 1rem -1.5rem -1.5rem 1.5rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(19, 127, 236, 0.08), rgba(19, 127, 236, 0.02));
    border: 1px solid rgba(19, 127, 236, 0.15);
    z-index: -1;
    transform: rotate(-1.5deg);
}

.hero-annotation {
    position: absolute;
    bottom: -1.25rem;
    left: -1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: #0f172a;
    color: #ffffff;
    border-radius: 999px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 12px 32px -12px rgba(15, 23, 42, 0.4);
}

.dark .hero-annotation {
    background: #ffffff;
    color: #0f172a;
}

.hero-annotation .dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #06b6d4;
}

.hero-reveal {
    opacity: 0;
    transform: translateY(14px);
    animation: hero-reveal-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-reveal-1 { animation-delay: 0.05s; }
.hero-reveal-2 { animation-delay: 0.15s; }
.hero-reveal-3 { animation-delay: 0.28s; }
.hero-reveal-4 { animation-delay: 0.42s; }
.hero-reveal-5 { animation-delay: 0.55s; }

@keyframes hero-reveal-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-signals {
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 3vw, 3rem);
    padding-top: clamp(2rem, 4vw, 3.5rem);
    margin-top: clamp(3rem, 6vw, 5rem);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    font-family: 'Manrope', sans-serif;
    font-size: 0.82rem;
    color: #64748b;
    flex-wrap: wrap;
}

.dark .hero-signals {
    border-top-color: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

.hero-signal {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.hero-signal strong {
    color: #0f172a;
    font-weight: 700;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.05rem;
    font-variation-settings: 'opsz' 36, 'SOFT' 50;
}

.dark .hero-signal strong {
    color: #ffffff;
}

/* ===================================
   Editorial Pull-Quote
   The signature quote treatment — replaces gradient-red
   "Stop losing customers" pattern.
   =================================== */

.pullquote-mark {
    font-size: clamp(6rem, 14vw, 12rem);
    line-height: 0.5;
    margin-bottom: 0;
    font-variation-settings: 'opsz' 144, 'SOFT' 100;
    font-weight: 400;
}

.pullquote {
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.625rem, 3vw + 0.5rem, 2.75rem);
    line-height: 1.28;
    letter-spacing: -0.018em;
    font-variation-settings: 'opsz' 72, 'SOFT' 100, 'wght' 400;
}

/* ===================================
   Service Icons — editorial monochrome
   Replaces the gradient-square icon container
   pattern with lightweight outlined glyphs.
   =================================== */

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #137fec;
    margin-bottom: 1.5rem;
}

.service-icon .material-symbols-outlined {
    font-size: 2.25rem !important;
    font-variation-settings: 'FILL' 0, 'wght' 250, 'opsz' 48, 'GRAD' 0;
    line-height: 1;
}

.dark .service-icon {
    color: #60a5fa;
}

.service-icon--lg .material-symbols-outlined {
    font-size: 2.75rem !important;
    font-variation-settings: 'FILL' 0, 'wght' 200, 'opsz' 48;
}

.service-icon--sm .material-symbols-outlined {
    font-size: 1.75rem !important;
    font-variation-settings: 'FILL' 0, 'wght' 300, 'opsz' 40;
}

/* Accent variants for subtle color-coding without gradient overload */
.service-icon--secondary { color: #a855f7; }
.service-icon--accent    { color: #06b6d4; }
.service-icon--muted     { color: #64748b; }
.dark .service-icon--secondary { color: #c084fc; }
.dark .service-icon--accent    { color: #22d3ee; }
.dark .service-icon--muted     { color: #94a3b8; }

/* ===================================
   Body-Text Link Treatment (Phase 6)
   Left-to-right underline sweep on hover.
   Scoped to body-text links (paragraphs, lists,
   blockquotes, and the .prose legal pages).
   Excluded: hero CTAs, nav links, button-shaped links.
   =================================== */

:where(p, li, blockquote, .prose) a:not(.hero-cta-primary):not(.hero-cta-ghost):not([class*="rounded-full"]):not(.nav-link):not(.mobile-nav-link) {
    color: #137fec;
    font-weight: 500;
    text-decoration: none;
    background-image: linear-gradient(to right, currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0% 100%;
    background-size: 0% 1px;
    transition: background-size 0.45s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s ease;
    padding-bottom: 0.1em;
}

:where(p, li, blockquote, .prose) a:not(.hero-cta-primary):not(.hero-cta-ghost):not([class*="rounded-full"]):not(.nav-link):not(.mobile-nav-link):hover {
    background-size: 100% 1px;
}

.dark :where(p, li, blockquote, .prose) a:not(.hero-cta-primary):not(.hero-cta-ghost):not([class*="rounded-full"]):not(.nav-link):not(.mobile-nav-link) {
    color: #60a5fa;
}

/* ===================================
   Focus-Visible Rings (Phase 6)
   Keyboard-only focus outlines — the premium polish tell.
   Click/mouse actions show no outline; tab does.
   =================================== */

:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid #137fec;
    outline-offset: 3px;
    border-radius: 6px;
}

/* Rounded focus on rounded elements */
button:focus-visible,
[role="button"]:focus-visible,
a.hero-cta-primary:focus-visible,
a.hero-cta-ghost:focus-visible,
a[class*="rounded-full"]:focus-visible,
.hero-annotation:focus-visible {
    outline: 2px solid #137fec;
    outline-offset: 4px;
    border-radius: 999px;
}

/* Inputs get a softer focus inside their existing ring */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(19, 127, 236, 0.25);
}

/* ===================================
   Signature Motif — Hand-drawn Underline (Phase 7)
   One distinctive visual across the site.
   Applied under italic headline words for editorial
   emphasis. Draws in after the hero entrance.
   =================================== */

.underlined-word {
    position: relative;
    display: inline-block;
}

.hand-underline {
    position: absolute;
    left: -2%;
    right: -2%;
    bottom: -0.24em;
    width: 104%;
    height: 0.3em;
    color: #137fec;
    overflow: visible;
    pointer-events: none;
}

.hand-underline path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 340;
    stroke-dashoffset: 340;
    animation: draw-underline 1.4s cubic-bezier(0.22, 1, 0.36, 1) 1.3s forwards;
}

/* Instantly-drawn variant for sections that already scroll-into-view */
.hand-underline--instant path {
    animation-delay: 0s;
    animation-duration: 1.2s;
}

@keyframes draw-underline {
    to {
        stroke-dashoffset: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hand-underline path {
        animation: none;
        stroke-dashoffset: 0;
    }
}

/* ===================================
   Mobile Safety (phones ≤ 480px)
   Tight-space tweaks for editorial elements
   =================================== */

@media (max-width: 480px) {
    /* Hero decorative ghost + annotation — tighten offsets so they don't overflow the viewport */
    .hero-browser-ghost {
        inset: 0.75rem -0.75rem -0.75rem 0.75rem;
    }

    .hero-annotation {
        bottom: -1rem;
        left: -0.75rem;
        font-size: 0.65rem;
        padding: 0.5rem 0.875rem;
        letter-spacing: 0.06em;
    }

    /* Pull-quote decorative open-quote — dial back on narrow screens */
    .pullquote-mark {
        font-size: clamp(4.5rem, 16vw, 8rem);
    }

    /* Hero signals row — slightly tighter gap */
    .hero-signals {
        gap: 1.25rem 1.75rem;
    }

    /* Hide signature underline on very narrow screens — italic word
       would wrap and the SVG would render oddly. Desktop keeps the motif. */
    .hand-underline {
        display: none;
    }
}
