/* Home (advisoryprotech.com). Replaces hero-cinematic.css: video hero, glass nav, operators, tagline reveal, FAQ. */
:root {
    --bg-deep: #050c12;
    --bg-surface: #0a151d;
    --bg-card: #0f2029;
    --bg-elevated: #16303a;
    --border: #1b3942;
    --border-glow: #44efb3;
    --text-primary: #edf8f7;
    --text-secondary: #9bb1b5;
    --text-dim: #789398;
    --accent: #44efb3;
    --accent-dim: #25c998;
    --accent-glow: rgba(68, 239, 179, 0.14);
    --accent-blue: #62a8ff;
    --accent-orange: #ff846b;
}

body {
    background:
        radial-gradient(circle at 82% 2%, rgba(21, 86, 93, 0.22), transparent 34rem),
        var(--bg-deep);
}

.nav-brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.nav-brand img,
.footer-brand img {
    display: block;
    flex: none;
    filter: drop-shadow(0 0 14px rgba(68, 239, 179, 0.16));
}

.brand-wordmark {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.045em;
}

.nav-brand .brand-wordmark,
.footer-brand .brand-wordmark {
    color: var(--text-primary);
}

.brand-wordmark strong {
    color: var(--accent);
    font-weight: 700;
}

/* Secondary headings power on as their section enters the viewport. */
.section-title {
    position: relative;
    display: inline-block;
    color: var(--text-secondary);
    background: linear-gradient(104deg, #edf8f7 8%, #8fffd8 48%, #62a8ff 92%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: grayscale(1) brightness(0.4);
    opacity: 0.52;
    text-shadow: 0 0 0 rgba(68, 239, 179, 0);
    transition: filter 1.05s cubic-bezier(.22, 1, .36, 1), opacity .75s ease, text-shadow 1.1s ease;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -8px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #44efb3 18%, #62a8ff 82%, transparent);
    box-shadow: 0 0 16px rgba(68, 239, 179, 0.65);
    opacity: 0;
}

.section-title.is-powered {
    filter: grayscale(0) brightness(1);
    opacity: 1;
    text-shadow: 0 0 34px rgba(68, 239, 179, 0.16);
    animation: section-title-power-on .92s steps(1, end) both;
}

.section-title.is-powered::after {
    right: 0;
    opacity: 0.82;
    transition: right 1s .18s cubic-bezier(.22, 1, .36, 1), opacity .4s .18s ease;
}

@keyframes section-title-power-on {
    0% { filter: grayscale(1) brightness(.4); opacity: .52; }
    28% { filter: grayscale(.7) brightness(.84); opacity: .86; }
    34% { filter: grayscale(1) brightness(.52); opacity: .62; }
    48% { filter: grayscale(.25) brightness(1.08); opacity: 1; }
    55% { filter: grayscale(.65) brightness(.72); opacity: .8; }
    72%, 100% { filter: grayscale(0) brightness(1); opacity: 1; }
}

/* ------------------------------------------------------------------
   Motion tokens. One curve for everything that moves, so the page
   feels like one material instead of a stack of default transitions.
   ------------------------------------------------------------------ */
:root {
    --ease-fluid: cubic-bezier(0.32, 0.72, 0, 1);
    --dur-fast: 300ms;
    --dur-base: 700ms;
    --dur-slow: 900ms;
    --nav-offset: 96px;
    --gutter: 24px;
}

html { scroll-padding-top: var(--nav-offset); }


/* ------------------------------------------------------------------
   HERO — full screen video, centred white type, Inter for text and
   controls (nav included). Built from the "rings" hero template.
   ------------------------------------------------------------------ */
.hero { font-family: 'Inter', sans-serif; }

.hero {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 128px 0 0;
    overflow: hidden;
    background: #000;
    color: #fff;
    text-align: center;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media video,
.hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
}
.hero-media img { display: none; }
/* Contrast: a soft dark field behind the copy and a floor for the stats. */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 60% 48% at 50% 50%, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.22) 70%, rgba(0, 0, 0, 0) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0) 32%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 22%);
    pointer-events: none;
}
.hero-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.hero-copy { display: flex; flex-direction: column; align-items: center; max-width: 960px; }

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 4px 12px 4px 4px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
}
.hero-tag strong {
    padding: 2px 8px;
    border-radius: 9999px;
    background: #fff;
    color: #000;
    font-size: 0.75rem;
    font-weight: 600;
}
.hero h1 {
    margin-bottom: 24px;
    color: #fff;
    font-size: clamp(3rem, 2rem + 3.2vw, 4.5rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.035em;
    text-shadow: 0 2px 32px rgba(0, 0, 0, 0.55);
}
.hero h1 .h1-line { display: block; }
@media (min-width: 969px) { .hero h1 .h1-line { white-space: nowrap; } }
.hero-desc {
    max-width: 560px;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.125rem;
    line-height: 1.75rem;
    text-shadow: 0 1px 16px rgba(0, 0, 0, 0.6);
    text-wrap: balance;
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero .btn-primary,
.hero .btn-glass {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 9999px;
}
.hero .btn-primary { background: #fff; color: #000; }
.hero .btn-primary:hover { background: var(--accent); color: #000; box-shadow: 0 8px 32px rgba(68, 239, 179, 0.3); }
.btn-glass {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    transition: background var(--dur-fast) var(--ease-fluid), border-color var(--dur-fast) var(--ease-fluid), transform var(--dur-fast) var(--ease-fluid);
}
.btn-glass:hover { color: #fff; background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.44); transform: translateY(-1px); }
.btn-primary:active, .btn-glass:active, .btn-outline:active { transform: scale(0.98); }

/* Two discreet figures sitting on the base of the video. */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    width: 100%;
    margin: 0;
    padding: 24px 0 32px;
}
.hero-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hero-stat dt { order: 2; color: rgba(255, 255, 255, 0.62); font-size: 0.75rem; letter-spacing: 0.04em; }
.hero-stat dd { color: #fff; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }

/* One button language across the page: pill, body font, 16px. */
.btn-primary,
.btn-outline {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0;
    padding: 12px 24px;
    border-radius: 9999px;
    justify-content: center;
    transition: background var(--dur-fast) var(--ease-fluid), border-color var(--dur-fast) var(--ease-fluid), color var(--dur-fast) var(--ease-fluid), transform var(--dur-fast) var(--ease-fluid), box-shadow var(--dur-fast) var(--ease-fluid);
}

/* Hero entrance: copy settles in once. Skipped with reduced motion. */
.hero-enter {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(8px);
    animation: hero-in var(--dur-slow) var(--ease-fluid) forwards;
}
.hero-copy > .hero-enter:nth-child(2) { animation-delay: 80ms; }
.hero-copy > .hero-enter:nth-child(3) { animation-delay: 160ms; }
.hero-copy > .hero-enter:nth-child(4) { animation-delay: 240ms; }
.hero-stats.hero-enter { animation-delay: 360ms; }
@keyframes hero-in { to { opacity: 1; transform: none; filter: none; } }

@media (max-width: 640px) {
    .hero { padding-top: 104px; }
    .hero .container { padding: 0 16px; }
    .hero-media video, .hero-media img { object-position: 72% 50%; }
    .hero::before {
        background:
            linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.45) 40%, rgba(0, 0, 0, 0.3) 100%);
    }
    .hero-tag { font-size: 0.75rem; }
    .hero-desc { font-size: 1rem; line-height: 1.5rem; }
    .hero-actions { flex-direction: column; align-self: stretch; }
    .hero-actions a { justify-content: center; }
    .hero-stats { gap: 32px; padding: 32px 0 24px; }
    .hero-stat dd { font-size: 1.125rem; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-media video { display: none; }
    .hero-media img { display: block; }
    .hero-enter { animation: none; opacity: 1; transform: none; filter: none; }
}

/* ------------------------------------------------------------------
   Answer strip: the plain definition engines and people both read.
   ------------------------------------------------------------------ */
.answer-strip { padding: 64px 0; }
.answer-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }
.answer-strip h2 {
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.answer-strip p { color: var(--text-primary); font-size: 1.25rem; line-height: 1.75rem; }
.answer-strip p + p { margin-top: 16px; color: var(--text-secondary); font-size: 1rem; line-height: 1.5rem; }

/* ------------------------------------------------------------------
   AI operators
   ------------------------------------------------------------------ */
.ops-section { background: var(--bg-surface); }
.ops-layout { display: grid; grid-template-columns: 5fr 6fr; gap: 48px; align-items: start; margin-top: 48px; }
.ops-list { display: grid; gap: 16px; }
.op-card {
    padding: 24px;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: border-color var(--dur-base) var(--ease-fluid), transform var(--dur-base) var(--ease-fluid);
}
.op-card:hover { border-color: var(--op-color, var(--accent)); transform: translateY(-2px); }
.op-card .op-id { color: var(--op-color, var(--accent)); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; }
.op-card h3 { margin: 8px 0; font-size: 1.25rem; line-height: 1.75rem; }
.op-card p { color: var(--text-secondary); font-size: 0.875rem; line-height: 1.5rem; }
.op-card[data-op="foso"] { --op-color: var(--accent-blue); }
.op-card[data-op="pinky"] { --op-color: var(--accent-orange); }
.ops-terminal-caption { margin-top: 12px; color: var(--text-dim); font-size: 0.75rem; }
.ops-terminal .terminal-body { min-height: 0; }
.ops-terminal .terminal-line { white-space: normal; }

/* ------------------------------------------------------------------
   Tagline reveal — words light up one by one as the line crosses.
   ------------------------------------------------------------------ */
.tagline-section { padding: 128px 0; }
.tagline-text {
    max-width: 880px;
    font-size: clamp(2.25rem, 1.4rem + 3vw, 3.75rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
}
.tagline-text .w {
    color: rgba(237, 248, 247, 0.28);
    transition: color var(--dur-base) var(--ease-fluid);
}
.tagline-text .w.is-on { color: var(--text-primary); }
.tagline-text .w.is-accent.is-on { color: var(--accent); }

/* ------------------------------------------------------------------
   FAQ
   ------------------------------------------------------------------ */
.faq-list { display: grid; gap: 12px; max-width: 880px; margin-top: 48px; }
.faq-item {
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: border-color var(--dur-fast) var(--ease-fluid);
}
.faq-item[open] { border-color: rgba(68, 239, 179, 0.4); }
.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    cursor: pointer;
    list-style: none;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.75rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    flex: none;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 1.25rem;
    transition: transform var(--dur-base) var(--ease-fluid);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 24px 24px; color: var(--text-secondary); line-height: 1.625; }

/* ------------------------------------------------------------------
   Contact tabs (was inline styles)
   ------------------------------------------------------------------ */
.form-tabs { display: flex; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.form-tab {
    flex: 1;
    padding: 12px;
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: color var(--dur-fast) var(--ease-fluid), border-color var(--dur-fast) var(--ease-fluid);
}
.form-tab[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }

/* ------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */
@media (max-width: 968px) {
    .ops-layout, .answer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 640px) {
    :root { --nav-offset: 80px; }
    .answer-strip { padding: 48px 0; }
    .answer-strip p { font-size: 1.125rem; }
    .tagline-section { padding: 80px 0; }
    .faq-item summary { padding: 16px; font-size: 1rem; line-height: 1.5rem; }
    .faq-item p { padding: 0 16px 16px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .tagline-text .w { color: var(--text-primary); transition: none; }
    .tagline-text .w.is-accent { color: var(--accent); }
    .fade-up { opacity: 1 !important; transform: none !important; transition: none !important; }
    .section-title,
    .section-title.is-powered { filter: none; opacity: 1; animation: none; transition: none; }
}

/* Section headings: two-line titles read as one block. */
.section-title { line-height: 1.15; }
.offers-block .section-desc,
#pricing .section-desc { margin-left: auto; margin-right: auto; }

/* Section changes fade instead of cutting: tinted sections blend into the
   page colour at both edges, and the hero dissolves into the first section. */
:root { --section-fade: 160px; }
.why-section,
.ops-section,
.cta-section {
    background: linear-gradient(180deg,
        var(--bg-deep) 0,
        var(--bg-surface) var(--section-fade),
        var(--bg-surface) calc(100% - var(--section-fade)),
        var(--bg-deep) 100%);
}
.hero::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: var(--section-fade);
    z-index: -1;
    background: linear-gradient(180deg, rgba(5, 12, 18, 0) 0%, var(--bg-deep) 100%);
    pointer-events: none;
}
@media (max-width: 640px) { :root { --section-fade: 96px; } }

/* Who you work with */
.team-grid { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: center; }
.team-photo { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 24px; border: 1px solid var(--border); }
.team-name { margin: 16px 0 8px; font-size: 1.25rem; font-weight: 700; }
.team-name span { display: block; color: var(--accent); font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.team-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (max-width: 768px) {
    .team-grid { grid-template-columns: 1fr; gap: 24px; }
    .team-photo { max-width: 200px; }
    .team-links a { flex: 1 1 100%; }
}
