/*
Theme Name: VK Ops Optimization
Theme URI: https://theperformancebee.com
Author: Dr. Vijay Kumar Singh
Author URI: https://theperformancebee.com
Description: Professional WordPress theme for Lean & Six Sigma consulting
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: vk-ops
*/

/* ===================================================================
   FONT FACE
   =================================================================== */
@font-face {
    font-family: 'Brockmann';
    src: url('./assets/fonts/brockmann.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ===================================================================
   CSS VARIABLES
   =================================================================== */
:root {
    /* Colors */
    --navy: #0f172a;
    --navy-dark: #0b1120;
    --blue: #2563EB;
    --blue-light: #4a7ef5;
    --blue-pale: #dbeafe;
    --blue-soft: #e9eff6;
    --rule: #dbe3ec;
    --sky: #60a5fa;
    --amber: #fbbf24;
    --amber-deep: #d97706;
    --gold: #d4943a;
    --gold-dark: #c4842a;
    --teal: #22d3bb;
    --green: #22c55e;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --footer-bg: #0f172a;

    /* Fonts */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    /* Sizes */
    --container-max: 1280px;
    --container-padding: 48px;
    --header-height: 76px;
}

/* ===================================================================
   RESET & BASE
   =================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* overflow-x must be on html too, or body becomes the scroll container
   and window.scrollTo / scrollIntoView / anchor links stop working */
html {
    overflow-x: hidden;
    background-color: var(--gray-50);
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: transparent;
    overflow-x: hidden;
}

/* Fixed backdrop.
   A pseudo-element rather than background-attachment: fixed, which is
   unreliable on iOS. Each page gets its own image, and its own scrim
   strength -- the scrim per page was calculated from that image's measured
   darkness so body text lands at ~5:1 everywhere. */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(248, 250, 252, 0.79), rgba(248, 250, 252, 0.79)),
        url('./assets/images/bg-home.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    pointer-events: none;
}

/* About */
body.page-template-page-about::before {
    background-image:
        linear-gradient(rgba(248, 250, 252, 0.73), rgba(248, 250, 252, 0.73)),
        url('./assets/images/bg-about.jpg');
}

/* Projects archive and single project */
body.post-type-archive-project::before,
body.single-project::before {
    background-image:
        linear-gradient(rgba(248, 250, 252, 0.77), rgba(248, 250, 252, 0.77)),
        url('./assets/images/bg-projects.jpg');
}

/* Training & Certifications */
body.page-template-page-training::before {
    background-image:
        linear-gradient(rgba(248, 250, 252, 0.79), rgba(248, 250, 252, 0.79)),
        url('./assets/images/bg-training.jpg');
}

/* Contact */
body.page-template-page-contact::before {
    background-image:
        linear-gradient(rgba(248, 250, 252, 0.78), rgba(248, 250, 252, 0.78)),
        url('./assets/images/bg-contact.jpg');
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ===================================================================
   TYPOGRAPHY
   =================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.045em;
    color: var(--navy);
}

h1 { font-size: 4.5rem; }
h2 { font-size: 3.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

.text-blue { color: var(--blue); }
.text-gold { color: var(--gold); }
.text-teal { color: var(--teal); }

/* Section Labels */
.section-label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--blue);
    display: block;
    margin-bottom: 1.5rem;
}

.section-label--light {
    color: var(--gold);
}

/* ===================================================================
   LAYOUT
   =================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: 100px 0;
}

.section--light {
    background-color: var(--gray-100);
}

.section--blue {
    background-color: var(--blue);
}

/* ===================================================================
   HEADER
   =================================================================== */
.site-header {
    position: relative;
    width: 100%;
    background-color: rgba(248, 250, 252, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: var(--header-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--gray-200);
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--navy);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-text__name {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--navy);
}

.logo-text__tagline {
    font-family: var(--font-body);
    font-size: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--gray-500);
    text-transform: uppercase;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu li a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--navy);
    padding: 8px 0;
    position: relative;
}

.nav-menu li a:hover {
    color: var(--blue);
}

.nav-menu li a.active {
    color: var(--blue);
    font-weight: 600;
}

/* CTA Button */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 0;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--blue-light);
    transform: translateY(-1px);
}

/* Plain text button — sits beside the primary CTA */
.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--navy);
    transition: color 0.2s ease;
}

.btn-text:hover {
    color: var(--blue);
}

.btn-text svg {
    width: 14px;
    height: 14px;
}

.btn-white {
    background-color: var(--white);
    color: var(--navy);
}

.btn-white:hover {
    background-color: var(--gray-100);
}

.btn-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon svg {
    width: 14px;
    height: 14px;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--navy);
    transition: 0.2s;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--white);
    padding: 32px 24px 40px;
    z-index: 1200;
    overflow-y: auto;
    border-top: 1px solid var(--rule);
}

.mobile-nav.active {
    display: block;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-nav ul li {
    border-bottom: 1px solid var(--rule);
    padding-bottom: 16px;
}

.mobile-nav a {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--navy);
}

.mobile-nav a:hover {
    color: var(--blue);
}

/* The CTA is an <a> too, so the rules above would otherwise repaint its
   text navy-on-blue. Keep the button's own colours. */
.mobile-nav a.btn-primary,
.mobile-nav a.btn-primary:hover {
    color: var(--white);
}

/* ===================================================================
   HERO SECTION
   =================================================================== */
.hero {
    padding-top: 0;
    background-color: transparent;
}

.hero-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    margin-bottom: 20px;
}

.hero-topbar__left {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-500);
}

.hero-topbar__right {
    display: flex;
    align-items: center;
    gap: 32px;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-500);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--green);
    border-radius: 50%;
}

/* Hero Content Grid */
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
}

/* Vertical rule between the text and image columns */
.hero-content::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background-color: var(--gray-200);
}

.hero-text {
    padding-top: 0;
    padding-right: 20px;
}

.hero-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 24px;
}

.hero-tags span {
    display: flex;
    align-items: center;
}

.hero-tags span:not(:last-child)::after {
    content: '·';
    margin-left: 8px;
    color: var(--gray-400);
}

.hero-indicator {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--gray-500);
    margin-bottom: 32px;
}

.hero-indicator__number {
    color: var(--gold);
    font-weight: 500;
}

.hero-indicator__line {
    width: 48px;
    height: 1px;
    background-color: var(--gold);
}

/* Hero Title */
.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.75rem, 5.6vw, 5.65rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.045em;
    color: var(--navy);
    margin-bottom: 32px;
}

.hero-title .text-blue {
    color: var(--blue);
}

.hero-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: 32px;
    max-width: 480px;
}

/* Hero CTA row + trust line */
.hero-actions {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-trust__avatar {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: var(--gold);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 0.5625rem;
    font-weight: 700;
}

.hero-trust__label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 2px;
}

.hero-trust__text {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-700);
}

/* Hero Image */
.hero-image-wrapper {
    position: relative;
}

/* Offset blue frame sitting behind the photo */
.hero-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    transform: translate(10px, 10px);
    background-color: var(--blue);
    z-index: 0;
}

.hero-image {
    position: relative;
    z-index: 1;
    border-radius: 0;
    overflow: hidden;
}

.hero-image img {
    display: block;
    width: 100%;
    height: 660px;
    object-fit: cover;
    /* portrait in a landscape box: a taller box crops far less, and the
       upward bias keeps the head clear of the top edge */
    object-position: center 6%;
}

/* Field note overlaid on the photo */
.hero-note {
    position: absolute;
    left: 48px;
    right: 48px;
    bottom: 28px;
    z-index: 2;
}

.hero-note::before {
    content: '';
    position: absolute;
    left: -48px;
    right: -48px;
    top: -80px;
    bottom: -28px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0));
    z-index: -1;
}

.hero-note__label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.5625rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.hero-note__text {
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--white);
    margin: 0;
}

/* Floating stat chips */
.hero-chip {
    position: absolute;
    z-index: 3;
    background-color: var(--white);
    padding: 10px 14px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
}

.hero-chip__value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1;
    color: var(--blue);
}

.hero-chip__value em {
    font-family: var(--font-body);
    font-size: 0.5625rem;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--navy);
    margin-left: 4px;
}

.hero-chip__label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-top: 5px;
}

.hero-chip--savings {
    left: -44px;
    bottom: 76px;
    transform: rotate(-4deg);
}

.hero-chip--years {
    right: -32px;
    bottom: 36px;
    transform: rotate(4deg);
}

/* Hero Badge */
.hero-badge {
    position: absolute;
    top: 80px;
    right: -40px;
    width: 120px;
    height: 120px;
    background-color: var(--gold);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    box-shadow: 0 10px 30px rgba(212, 148, 58, 0.35);
    z-index: 10;
}

.hero-badge__initials {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.hero-badge__text {
    font-family: var(--font-body);
    font-size: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 6px;
    line-height: 1.3;
}

/* ===================================================================
   MARQUEE SECTION
   =================================================================== */
.marquee-section {
    display: flex;
    padding: 26px 0;
    background-color: var(--white);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

/* Hourglass marker at the join: full width at top and bottom, pinched in the
   middle. Drawn as an inline SVG so the concave sides render identically
   everywhere -- mask-composite would be the CSS-only route but its support is
   patchier. Items scroll behind it. */
.marquee-section::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 30px;
    transform: translateX(-50%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 80' preserveAspectRatio='none'%3E%3Cpath d='M0,0 H30 C15,20 15,60 30,80 H0 C15,60 15,20 0,0 Z' fill='%230f172a'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    /* drop-shadow follows the shape's alpha, unlike box-shadow */
    filter:
        drop-shadow(0 0 2px var(--white))
        drop-shadow(0 0 3px var(--white))
        drop-shadow(0 0 14px rgba(15, 23, 42, 0.35));
    z-index: 3;
    pointer-events: none;
}

/* each half owns exactly 50% and clips its own overflow */
.marquee-half {
    flex: 0 0 50%;
    width: 50%;
    overflow: hidden;
}

/* fade only the outer edge of each half, so the join at the centre is seamless */
.marquee-half--left {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 26%);
    mask-image: linear-gradient(to right, transparent 0%, #000 26%);
}

.marquee-half--right {
    -webkit-mask-image: linear-gradient(to left, transparent 0%, #000 26%);
    mask-image: linear-gradient(to left, transparent 0%, #000 26%);
}

.marquee-row {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}

/* right half travels the other way, so both run away from the centre */
.marquee-half--right .marquee-row {
    animation-name: marquee-reverse;
}

.marquee-content {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.marquee-item {
    display: flex;
    align-items: center;
    padding: 0 30px;
    font-family: var(--font-heading);
    font-size: clamp(1.0625rem, 2vw, 1.5rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--gray-400);
    white-space: nowrap;
    transition: color 0.25s ease;
}

.marquee-section:hover .marquee-item {
    color: var(--gray-500);
}

@media (prefers-reduced-motion: reduce) {
    .marquee-row {
        animation: none;
    }
}

@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-33.3333%); }
}

@keyframes marquee-reverse {
    0%   { transform: translateX(-33.3333%); }
    100% { transform: translateX(0); }
}

/* ===================================================================
   STATS SECTION
   =================================================================== */
.stats-section {
    padding: 0;
    background-color: var(--navy);
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.stat-item {
    text-align: left;
    padding: 56px 32px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

/* First cell of each row has no divider */
.stat-item:nth-child(4n+1) {
    border-left: none;
    padding-left: 0;
}

.stat-number {
    font-family: var(--font-heading);
    /* fixed-width digits so the number does not jitter while counting */
    font-variant-numeric: tabular-nums;
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    margin-bottom: 12px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-400);
    line-height: 1.5;
}

/* ===================================================================
   FOUR LEVERS SECTION
   =================================================================== */
.levers-section {
    padding: 100px 0;
    background-color: transparent;
}

.levers-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 48px;
}

.levers-title {
    font-size: 4.3rem;
    line-height: 1;
}

.levers-description {
    font-size: 1.1875rem;
    line-height: 1.45;
    color: var(--gray-700);
}

.levers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--rule);
    border-left: 1px solid var(--rule);
}

.lever-card {
    display: flex;
    flex-direction: column;
    padding: 22px;
    background-color: transparent;
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.lever-card:hover {
    background-color: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -22px var(--navy);
}

.lever-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 56px;
}

.lever-number {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 400;
    color: var(--gray-400);
}

.lever-icon {
    width: 20px;
    height: 20px;
    color: var(--blue);
}

.lever-icon svg {
    width: 100%;
    height: 100%;
}

.lever-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--navy);
    margin-bottom: 16px;
}

.lever-description {
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--gray-700);
    margin-bottom: 28px;
}

.lever-arrow {
    display: block;
    width: 16px;
    height: 16px;
    margin-top: auto;
    margin-left: auto;
    color: var(--gold);
}

.lever-arrow svg {
    width: 100%;
    height: 100%;
}

/* ===================================================================
   CALCULATOR SECTION
   =================================================================== */
.calculator-section {
    padding: 100px 0;
    background-color: rgba(219, 234, 254, 0.80);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.calculator-content h2 {
    font-size: 4.4rem;
    line-height: 1;
    margin-bottom: 24px;
}

.calculator-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: 24px;
}

.calculator-disclaimer {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.5625rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-500);
}

.calculator-disclaimer::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: var(--gold);
    border-radius: 50%;
}

.calculator-widget {
    background-color: var(--navy);
    border-radius: 0;
    padding: 35px 38px;
    position: relative;
    box-shadow: 18px 18px 0 -10px var(--amber-deep);
}

.calc-label {
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 12px;
}

.calc-value {
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 5.2vw, 3.5rem);
    letter-spacing: -0.03em;
    white-space: nowrap;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    margin-bottom: 8px;
}

.calc-sublabel {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 40px;
}

.calc-slider-group {
    margin-bottom: 24px;
}

.calc-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.calc-slider-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--white);
}

.calc-slider-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gold);
}

.calc-disclosure {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.6875rem;
    line-height: 1.6;
    color: var(--gray-400);
}

.calc-slider {
    width: 100%;
    height: 16px;
    background: none;
    border-radius: 0;
    -webkit-appearance: auto;
    appearance: auto;
    accent-color: var(--amber);
    cursor: pointer;
}

.calc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 24px;
}

.calc-note {
    font-size: 0.75rem;
    color: var(--gray-400);
}

.calc-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue-light);
}

.calc-cta:hover {
    color: var(--white);
}

/* ===================================================================
   TRUSTED SECTION
   =================================================================== */
.trusted-section {
    padding: 100px 0 78px;
    background-color: rgba(233, 239, 246, 0.80);
}

.trusted-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.trusted-content h2 {
    font-size: 4.3rem;
    line-height: 1;
}

.trusted-description {
    padding-top: 16px;
}

.trusted-description p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: 20px;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--blue);
    border-bottom: 1px solid var(--blue);
    padding-bottom: 2px;
}

.btn-link:hover {
    color: var(--navy);
    border-color: var(--navy);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--gray-300);
}

.client-item {
    display: flex;
    align-items: center;
    min-height: 64px;
    padding: 18px 15px 18px 0;
    border-bottom: 1px solid var(--gray-300);
}

/* logos sit muted alongside the text entries, and come up on hover */
.client-logo {
    max-width: 132px;
    max-height: 20px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: left center;
    filter: grayscale(1);
    opacity: 0.55;
    transition: filter 0.25s ease, opacity 0.25s ease;
}

/* wordmarks that still come out short in the default box */
.client-logo--lg {
    max-width: 160px;
    max-height: 26px;
}

/* square-ish emblems: capped so they do not tower over the wordmarks, but
   still taller than them, which is how a square mark reads at equal weight */
.client-logo--emblem {
    max-width: 56px;
    max-height: 36px;
}

.client-item:hover .client-logo {
    filter: grayscale(0);
    opacity: 1;
}

/* Typographic wordmark for clients with no logo file, matched to the optical
   weight and muted treatment of the real logos beside them. */
.client-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--navy);
    opacity: 0.55;
    transition: opacity 0.25s ease;
}

.client-item:hover .client-name {
    opacity: 1;
}

/* ===================================================================
   CTA SECTION
   =================================================================== */
.cta-section {
    padding: 100px 0;
    background-color: transparent;
}

.cta-wrapper {
    background-color: var(--blue);
    border-radius: 0;
    padding: 63px 70px;
    position: relative;
    overflow: hidden;
}

.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.cta-text h2 {
    font-size: 4.4rem;
    line-height: 1;
    color: var(--white);
}

.cta-text .text-gold {
    color: var(--amber);
}

.cta-text .section-label--light {
    color: #bfdbfe;
}

/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer {
    background-color: var(--footer-bg);
    padding: 65px 0 0;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1.4fr;
    gap: 50px;
    padding-bottom: 50px;
}

.footer-brand h3 {
    font-family: var(--font-body);
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 16px;
}

/* Second line of the wordmark picks up the light blue */
.footer-brand__accent {
    color: var(--sky);
}

.footer-brand p {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--gray-400);
    max-width: 300px;
}

.footer-nav-title {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 24px;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-nav a {
    font-size: 0.8125rem;
    color: var(--gray-300);
}

.footer-nav a:hover {
    color: var(--blue-light);
}

.footer-contact a,
.footer-contact span {
    display: block;
    font-size: 0.8125rem;
    color: var(--gray-300);
    margin-bottom: 12px;
}

.footer-contact .admin-link {
    color: var(--gray-500);
    font-size: 0.6875rem;
    margin-top: 20px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 19px 0 22px;
    border-top: 1px solid #273449;
}

.footer-bottom p {
    font-size: 0.625rem;
    color: var(--gray-500);
}

.footer-tagline {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

/* ===================================================================
   PAGE HEADER
   =================================================================== */
.page-header {
    padding: 180px 0 80px;
    background-color: var(--gray-100);
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 16px;
}

.page-header p {
    font-size: 1.25rem;
    color: var(--gray-700);
    max-width: 600px;
}

/* ===================================================================
   ABOUT PAGE
   =================================================================== */
.page-intro {
    padding: 100px 0 72px;
}

.page-intro h1 {
    font-size: 6.6rem;
    line-height: 0.98;
    margin-bottom: 24px;
}

.page-intro p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--gray-700);
    max-width: 620px;
}

.section-label--sky {
    color: var(--sky);
}

/* Feature: photo panel + pull quote, both on the dark ink panel */
.about-feature {
    padding: 0 0 115px;
}

.about-feature__grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
}

.about-image {
    position: relative;
    height: 454px;
    background-color: var(--navy);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
    filter: grayscale(1);
    transition: opacity 0.4s ease, filter 0.4s ease;
}

/* same hover as .feature-image and .training-visuals, so every image on the
   site behaves identically */
.about-image:hover img {
    opacity: 0.85;
    filter: grayscale(0.55);
}

.about-image__caption {
    z-index: 2;
    position: absolute;
    left: 27px;
    bottom: 24px;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    line-height: 14px;
    letter-spacing: 0.1em;
    color: var(--white);
}

.about-quote {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 454px;
    padding: 44px 46px;
    background-color: var(--navy);
}

.about-quote .quote-mark {
    display: block;
    font-family: var(--font-heading);
    font-size: 4.75rem;
    line-height: 0.7;
    color: var(--amber-deep);
}

/* closing mark mirrors the opening one on the far side */
.about-quote .quote-mark--close {
    align-self: flex-end;
    margin-top: 4px;
}

.about-quote p {
    font-size: 2.25rem;
    line-height: 1.22;
    letter-spacing: -0.035em;
    color: var(--white);
    margin: 18px 0 0;
}

.about-quote small {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    color: var(--gray-400);
    margin-top: 22px;
}

/* Timeline */
.timeline-section {
    padding: 0 0 120px;
}

.section-heading {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: end;
    margin-bottom: 56px;
}

.section-heading h2 {
    font-size: 4.3rem;
    line-height: 1;
}

.section-heading p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-700);
}

.timeline {
    position: relative;
    border-top: 1px solid var(--rule);
}

/* a pulse that runs continuously down the rail, top to bottom.
   sits at the grid's second column, where every marker border lines up */
.timeline::after {
    content: '';
    position: absolute;
    left: 160px;
    margin-left: -4px;
    top: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--amber-deep);
    box-shadow: 0 0 12px 4px rgba(217, 119, 6, 0.55);
    animation: timeline-travel 5s cubic-bezier(0.45, 0, 0.55, 1) infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes timeline-travel {
    0%   { top: 0;    opacity: 0; transform: scale(0.6); }
    8%   {            opacity: 1; transform: scale(1); }
    88%  {            opacity: 1; transform: scale(1); }
    100% { top: 100%; opacity: 0; transform: scale(0.6); }
}

.timeline-item {
    display: grid;
    grid-template-columns: 160px 70px 1fr;
    padding: 25px 0;
    border-bottom: 1px solid var(--rule);
}

.timeline-year {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--blue);
    padding-top: 4px;
}

.timeline-marker {
    position: relative;
    border-left: 1px solid var(--rule);
}

/* the rail: an amber line that draws downward over the grey border
   as each entry scrolls into view */
.timeline-marker::after {
    content: '';
    position: absolute;
    top: 0;
    left: -1px;
    width: 1px;
    height: 100%;
    background-color: var(--amber-deep);
    transform: scaleY(0);
    transform-origin: top center;
    transition: transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.timeline-item.is-visible .timeline-marker::after {
    transform: scaleY(1);
}

/* the dot: drops in just behind the line, then pulses a few times */
.timeline-marker::before {
    content: '';
    position: absolute;
    top: 6px;
    left: -5px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: var(--amber-deep);
    z-index: 1;
    transform: scale(0);
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s;
}

.timeline-item.is-visible .timeline-marker::before {
    transform: scale(1);
    animation: timeline-pulse 2.2s ease-out 0.7s 3;
}

@keyframes timeline-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.45); }
    70%  { box-shadow: 0 0 0 11px rgba(217, 119, 6, 0); }
    100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0); }
}

/* no motion: everything simply sits in its final state */
@media (prefers-reduced-motion: reduce) {
    .timeline-marker::after,
    .timeline-item.is-visible .timeline-marker::after {
        transform: scaleY(1);
        transition: none;
    }

    .timeline-marker::before,
    .timeline-item.is-visible .timeline-marker::before {
        transform: scale(1);
        transition: none;
        animation: none;
    }

    .timeline::after {
        display: none;
    }
}

.timeline-content h3 {
    font-size: 1.5625rem;
    font-weight: 700;
    margin-bottom: 9px;
}

.timeline-content p {
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--gray-700);
    max-width: 780px;
}

/* Core competencies */
.competencies {
    padding: 110px 0;
    background-color: var(--navy);
}

.competencies-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
}

.competencies-inner h2 {
    font-size: 4.3rem;
    line-height: 1;
    color: var(--white);
}

.skill-item {
    padding: 17px 0;
    font-size: 0.875rem;
    color: var(--white);
    border-bottom: 1px solid var(--gray-700);
}

/* ===================================================================
   PROJECTS ARCHIVE
   =================================================================== */
.projects-list {
    padding: 0 0 115px;
}

/* Surface for the filter and the case-study rows.
   Sitting them on a panel keeps the text crisp over the background photo,
   which more scrim alone could not achieve. */
.projects-panel {
    background-color: rgba(255, 255, 255, 0.93);
    border: 1px solid var(--rule);
    padding: 0 30px 8px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.projects-panel .project-filter-bar {
    border-top: none;
}

.projects-panel .project-card:first-of-type {
    border-top: 1px solid var(--rule);
}

.project-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    padding: 22px 0;
    border-top: 1px solid var(--rule);
}

.project-filter-bar .section-label {
    margin-bottom: 0;
}

.project-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter-btn {
    padding: 8px 10px;
    font-family: var(--font-mono);
    font-size: 0.5625rem;
    background-color: transparent;
    color: var(--gray-500);
    border: 1px solid var(--rule);
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

/* Project row */
.project-card {
    display: grid;
    grid-template-columns: 80px 1fr 28px;
    gap: 20px;
    padding: 35px 0 40px;
    border-top: 1px solid var(--rule);
    transition: padding 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

/* the UA [hidden] rule loses to display:grid, so restate it */
.project-card[hidden] {
    display: none;
}

.project-card:hover {
    padding-left: 15px;
    padding-right: 15px;
    background-color: var(--gray-50);
    transform: translateX(4px);
}

.project-number {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--amber-deep);
}

.project-main h2 {
    font-size: 2.55rem;
    line-height: 1.5;
    margin-top: 13px;
}

.project-main h2 a {
    color: inherit;
}

.project-main h2 a:hover {
    color: var(--blue);
}

.project-detail {
    display: grid;
    grid-template-columns: 1.75fr 1fr;
    gap: 55px;
    padding-top: 19px;
    border-top: 1px solid var(--rule);
}

.detail-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.1em;
    color: var(--gray-500);
    margin-bottom: 10px;
}

.project-detail p {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--gray-700);
}

.project-impact strong {
    display: block;
    font-family: var(--font-heading);
    /* fixed-width digits so the figure does not jitter while counting */
    font-variant-numeric: tabular-nums;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.045em;
    color: var(--blue);
}

.project-impact span:last-child {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-700);
    margin-top: 4px;
}

.project-arrow-button {
    align-self: start;
    width: 28px;
    height: 28px;
    color: var(--blue);
}

.project-arrow {
    display: block;
    width: 16px;
    height: 16px;
    margin-left: auto;
    transition: transform 0.25s ease;
}

.project-arrow svg {
    width: 100%;
    height: 100%;
}

.project-card:hover .project-arrow {
    transform: rotate(45deg);
}

/* Closing panel */
.projects-end {
    padding: 100px 0;
    background-color: rgba(233, 239, 246, 0.80);
}

.projects-end h2 {
    font-size: 4.3rem;
    line-height: 1;
    margin-bottom: 32px;
}

/* ===================================================================
   CONTACT PAGE
   =================================================================== */
.contact-section {
    padding: 0 0 115px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0;
    align-items: stretch;
    background-color: rgba(255, 255, 255, 0.93);
    border: 1px solid var(--rule);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* Left column: same surface as the form panel, so the small labels and
   links clear AA against the background photo */
.contact-info {
    padding: 34px 32px;
    border-right: 1px solid var(--rule);
}

.contact-info h2 {
    font-size: 2.55rem;
    line-height: 1.05;
    margin-bottom: 20px;
}

.contact-info > p {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--gray-700);
    margin-bottom: 36px;
}

.contact-details {
    border-top: 1px solid var(--rule);
}

.contact-item {
    padding: 18px 0;
    border-bottom: 1px solid var(--rule);
}

.contact-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.1em;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.contact-item a {
    display: block;
    font-size: 0.875rem;
    color: var(--blue);
}

.contact-item a:hover {
    color: var(--navy);
}

.contact-note {
    display: block;
    font-size: 0.625rem;
    color: var(--gray-500);
    margin-top: 6px;
}

/* Right column: white form panel */
.contact-form-panel {
    padding: 34px 32px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group label {
    font-family: var(--font-mono);
    font-size: 0.5625rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-500);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 13px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--navy);
    background-color: var(--white);
    border: 1px solid var(--rule);
    border-radius: 0;
    transition: border-color 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    padding-right: 34px;
    cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue);
}

.form-group textarea {
    resize: vertical;
    min-height: 88px;
}

.contact-form .btn {
    align-self: flex-start;
    margin-top: 6px;
}

.form-success {
    padding: 24px 0;
}

.form-success h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.form-success p {
    font-size: 0.875rem;
    color: var(--gray-700);
}

/* ===================================================================
   TRAINING & CERTIFICATIONS
   =================================================================== */
.training-formats {
    padding: 0 0 90px;
}

.format-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--rule);
    border-left: 1px solid var(--rule);
}

.format-card {
    padding: 32px;
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.format-card:hover {
    background-color: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -22px var(--navy);
}

.format-number {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--amber-deep);
    margin-bottom: 40px;
}

.format-card h2 {
    font-size: 1.75rem;
    line-height: 1.15;
    margin-bottom: 12px;
}

.format-card p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--gray-700);
}

/* Training areas */
.training-section {
    padding: 0 0 100px;
}

.training-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--rule);
    border-left: 1px solid var(--rule);
}

.training-card {
    padding: 22px;
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.training-card:hover {
    background-color: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -22px var(--navy);
}

.training-number {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--gray-400);
    margin-bottom: 32px;
}

.training-card h3 {
    font-size: 1.0625rem;
    line-height: 1.25;
    margin-bottom: 10px;
}

.training-card p {
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--gray-700);
}

/* Certifications */
.certifications-section {
    padding: 100px 0;
    background-color: rgba(233, 239, 246, 0.80);
}

.certification-list {
    border-top: 1px solid var(--gray-300);
}

.certification-item {
    display: grid;
    grid-template-columns: 1fr 120px 160px;
    gap: 24px;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--gray-300);
}

.certification-item h3 {
    font-size: 1.25rem;
    margin-bottom: 6px;
}

.certification-issuer {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.certification-ref {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.08em;
    color: var(--gray-500);
    margin-top: 6px;
}

.certification-year {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--blue);
}

.certification-image img {
    width: 100%;
    height: auto;
    border: 1px solid var(--gray-300);
}

.certification-empty {
    padding: 32px;
    background-color: var(--white);
    border: 1px solid var(--gray-300);
}

.certification-empty p {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--gray-600);
    margin-bottom: 10px;
}

.certification-empty p:last-child {
    margin-bottom: 0;
}

/* ===================================================================
   FEATURE IMAGERY
   Shared treatment: dark ink panel, desaturated photo, mono caption.
   Matches the About page feature block.
   =================================================================== */
.feature-image {
    position: relative;
    background-color: var(--navy);
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
    filter: grayscale(1);
    transition: opacity 0.4s ease, filter 0.4s ease;
}

.feature-image:hover img {
    opacity: 0.85;
    filter: grayscale(0.55);
}

/* Captions are white over photos whose bright patches leave them at ~2:1.
   A gradient at the foot of each image guarantees they stay legible. */
.feature-image::after,
.about-image::after,
.training-visuals figure::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 55%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0));
    pointer-events: none;
    z-index: 1;
}

.feature-image__caption {
    z-index: 2;
    position: absolute;
    left: 27px;
    bottom: 24px;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    line-height: 14px;
    letter-spacing: 0.1em;
    color: var(--white);
}

.feature-image--wide {
    margin-top: 64px;
}

.feature-image--wide img {
    height: 340px;
}

.training-feature {
    padding: 0 0 90px;
}

.training-feature .feature-image img {
    height: 420px;
}

/* Three-up supporting visuals */
.training-visuals {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 56px;
}

.training-visuals figure {
    position: relative;
    background-color: var(--navy);
    overflow: hidden;
}

.training-visuals img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    opacity: 0.72;
    filter: grayscale(1);
    transition: opacity 0.4s ease, filter 0.4s ease;
}

.training-visuals figure:hover img {
    opacity: 0.85;
    filter: grayscale(0.55);
}

.training-visuals figcaption {
    z-index: 2;
    position: absolute;
    left: 18px;
    bottom: 16px;
    font-family: var(--font-mono);
    font-size: 0.5625rem;
    letter-spacing: 0.1em;
    color: var(--white);
}

/* ===================================================================
   SCROLL REVEAL
   Only active once JS adds html.js-reveal, so a script failure can never
   leave the page invisible.
   =================================================================== */
.js-reveal .reveal-init {
    opacity: 0;
    transform: translateY(18px);
    will-change: opacity, transform;
}

.js-reveal .reveal-in {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: auto;
}

/* shorter travel and a quicker settle on small screens, where a long rise
   reads as sluggish and costs more to composite */
@media (max-width: 768px) {
    .js-reveal .reveal-init {
        transform: translateY(10px);
    }

    .js-reveal .reveal-in {
        transition-duration: 0.42s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .js-reveal .reveal-init,
    .js-reveal .reveal-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ===================================================================
   CUSTOM CURSOR
   Added by JS only on fine-pointer devices, so touch users are untouched.
   =================================================================== */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 11px;
    height: 11px;
    margin-left: -5.5px;
    margin-top: -5.5px;
    border-radius: 50%;
    background-color: var(--navy);
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.25s ease, width 0.2s ease, height 0.2s ease,
                margin 0.2s ease, background-color 0.2s ease;
}

.cursor-dot.is-visible {
    opacity: 1;
}

/* over anything clickable */
.cursor-dot.is-active {
    width: 18px;
    height: 18px;
    margin-left: -9px;
    margin-top: -9px;
    background-color: var(--blue);
}

/* hide the native cursor only once ours is running, and only where a
   caret is not needed */
.has-custom-cursor,
.has-custom-cursor a,
.has-custom-cursor button,
.has-custom-cursor .filter-btn {
    cursor: none;
}

.has-custom-cursor input,
.has-custom-cursor textarea,
.has-custom-cursor select {
    cursor: auto;
}

@media (hover: none), (pointer: coarse) {
    .cursor-dot {
        display: none;
    }
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 1200px) {
    :root {
        --container-padding: 48px;
    }

    .hero-content {
        gap: 40px;
    }

    .stats-grid,
    .levers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item {
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        padding-left: 32px;
    }

    .stat-item:nth-child(2n+1) {
        border-left: none;
        padding-left: 0;
    }

    .client-item:nth-child(2) {
        border-right: none;
    }
}

@media (max-width: 1024px) {
    .hero-content,
    .calculator-wrapper,
    .levers-header,
    .trusted-header,
    .about-feature__grid,
    .section-heading,
    .competencies-inner {
        grid-template-columns: 1fr;
    }

    .about-image,
    .about-quote {
        height: auto;
    }

    .about-image img {
        height: 380px;
    }

    .project-card {
        grid-template-columns: 50px 1fr 24px;
        gap: 14px;
    }

    .project-detail {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .project-filter-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .projects-panel {
        padding: 0 18px 6px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .training-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .training-visuals {
        grid-template-columns: 1fr;
    }

    .feature-image--wide img,
    .training-feature .feature-image img {
        height: 260px;
    }

    .format-grid {
        grid-template-columns: 1fr;
    }

    .certification-item {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .contact-form-panel,
    .contact-info {
        padding: 24px 20px;
    }

    .contact-info {
        border-right: none;
        border-bottom: 1px solid var(--rule);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .projects-end h2,
    .page-intro h1 {
        font-size: 3.25rem;
    }

    .page-intro h1 {
        font-size: 4rem;
    }

    .timeline-item {
        grid-template-columns: 120px 40px 1fr;
    }

    .timeline::after {
        left: 120px;
    }

    .hero-text {
        padding-right: 0;
    }

    /* the column divider only makes sense while the grid has two columns */
    .hero-content::before {
        display: none;
    }

    .hero-image img {
        height: 520px;
    }

    .hero-badge {
        right: 20px;
        top: 40px;
    }

    .hero-chip--savings {
        left: 12px;
    }

    .hero-chip--years {
        right: 12px;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .client-item:nth-child(2n) {
        border-right: none;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .cta-content {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 24px;
        --header-height: 72px;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .nav-menu,
    .main-nav .btn {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-topbar {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .hero-topbar__right {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-note {
        left: 24px;
        right: 24px;
    }

    /* the hero is a portrait on mobile -- keep the badge off the face */
    .hero-badge {
        top: auto;
        bottom: 96px;
        right: 10px;
        width: 74px;
        height: 74px;
    }

    .hero-badge__initials {
        font-size: 1.25rem;
    }

    .hero-badge__text {
        font-size: 0.4375rem;
        margin-top: 3px;
    }

    /* marquee: smaller type and a shorter band on a narrow screen */
    .marquee-section {
        padding: 15px 0;
    }

    .marquee-item {
        font-size: 0.875rem;
        padding: 0 18px;
    }

    .marquee-section::after {
        width: 20px;
    }

    .hero-chip {
        padding: 8px 11px;
    }

    .hero-chip--savings {
        left: 8px;
        bottom: 76px;
    }

    .hero-chip--years {
        right: 8px;
        bottom: 24px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .stats-grid,
    .levers-grid,
    .clients-grid {
        grid-template-columns: 1fr;
    }

    .stat-item {
        border-left: none;
        padding: 32px 0;
    }

    .stat-item + .stat-item {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Grids that still had two or more columns at this width */
    .training-grid,
    .training-visuals,
    .format-grid,
    .competencies-inner,
    .section-heading,
    .form-row {
        grid-template-columns: 1fr;
    }

    /* Timeline: stack the year above the copy, drop the marker rail */
    .timeline-item {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 22px 0;
    }

    .timeline-marker,
    .timeline::after {
        display: none;
    }

    .timeline-year {
        padding-top: 0;
    }

    /* Project rows: number + arrow on one line, content beneath */
    .project-card {
        grid-template-columns: 1fr auto;
        gap: 12px;
        padding: 26px 0 30px;
    }

    .project-main {
        grid-column: 1 / -1;
    }

    /* Display headings down to a size that wraps cleanly on a phone */
    .page-intro h1,
    .error-content h1 {
        font-size: 2.25rem;
    }

    .levers-title,
    .section-heading h2,
    .competencies-inner h2,
    .calculator-content h2,
    .trusted-content h2,
    .cta-text h2,
    .projects-end h2,
    .contact-info h2 {
        font-size: 2rem;
        line-height: 1.08;
    }

    .format-card h2,
    .project-main h2 {
        font-size: 1.5rem;
        line-height: 1.25;
    }

    .about-quote p {
        font-size: 1.25rem;
        line-height: 1.3;
    }

    .certification-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* never let a long word punch out of its column */
    h1, h2, h3,
    .stat-number,
    .project-impact strong {
        overflow-wrap: break-word;
    }

    .client-item {
        border-right: none;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .cta-wrapper {
        padding: 48px 32px;
    }
}

@media (max-width: 480px) {
    .page-intro h1,
    .error-content h1 {
        font-size: 1.875rem;
    }

    .levers-title,
    .section-heading h2,
    .competencies-inner h2,
    .calculator-content h2,
    .trusted-content h2,
    .cta-text h2,
    .projects-end h2,
    .contact-info h2 {
        font-size: 1.75rem;
    }

    .stat-number {
        font-size: 2.25rem;
    }

    .calculator-widget {
        padding: 24px 20px;
    }

    .contact-form-panel {
        padding: 20px 16px;
    }

    .about-quote {
        padding: 40px 24px;
    }
}


/* ===================================================================
   DESKTOP TEXT SIZING
   Everything that is not a heading steps up so body copy, labels, nav
   and form text read comfortably on a large screen. Scoped to
   min-width: 769px so the mobile layout below it is left exactly as is.
   =================================================================== */
@media (min-width: 769px) {
    /* micro mono labels: 9-10px -> 11-12px
       .hero-chip__label is deliberately left at its original 0.5rem: the
       chips are absolutely positioned over the portrait, and widening the
       "CR SAVINGS" chip pushes it across the "FIELD NOTE / 01" label. */
    .logo-text__tagline {
        font-size: 0.625rem;
    }

    .calculator-disclaimer,
    .filter-btn,
    .form-group label,
    .hero-note__label,
    .post-tag,
    .training-visuals figcaption {
        font-size: 0.6875rem;
    }

    .about-image__caption,
    .calc-label,
    .certification-ref,
    .contact-label,
    .contact-note,
    .detail-label,
    .feature-image__caption,
    .footer-bottom p,
    .footer-nav-title,
    .hero-trust__label,
    .pagination .page-numbers,
    .post-card__date,
    .post-nav__label,
    .post-tags__label,
    .project-nav__label {
        font-size: 0.75rem;
    }

    /* mono labels: 11px -> 13px */
    .about-quote small,
    .calc-disclosure,
    .footer-contact .admin-link,
    .format-number,
    .hero-indicator,
    .hero-tags,
    .hero-topbar__left,
    .hero-topbar__right,
    .lever-number,
    .section-label,
    .training-number {
        font-size: 0.8125rem;
    }

    /* small supporting text: 12px -> 14px */
    .calc-cta,
    .calc-note,
    .calc-sublabel,
    .certification-year,
    .hero-trust__text,
    .project-impact span:last-child,
    .project-number,
    .timeline-year {
        font-size: 0.875rem;
    }

    /* buttons, links, card copy: 13px -> 15px */
    .btn,
    .btn-link,
    .btn-text,
    .footer-contact a,
    .footer-contact span,
    .footer-nav a,
    .footer-brand p,
    .lever-description,
    .logo-text__name,
    .post-card__excerpt,
    .project-detail p,
    .training-card p {
        font-size: 0.9375rem;
    }

    /* nav bar and body-level text: 14px -> 16px */
    .calc-slider-label,
    .calc-slider-value,
    .certification-empty p,
    .certification-issuer,
    .contact-item a,
    .form-group input,
    .form-group select,
    .form-group textarea,
    .form-success p,
    .format-card p,
    .nav-menu li a,
    .skill-item,
    .stat-label,
    .timeline-content p {
        font-size: 1rem;
    }

    /* body copy and leads */
    .contact-info > p {
        font-size: 1rem;
    }

    body,
    .calculator-content p,
    .error-content p,
    .hero-description,
    .section-heading p {
        font-size: 1.0625rem;
    }

    .hero-note__text,
    .post-header .lead,
    .project-header .lead,
    .trusted-description p {
        font-size: 1.125rem;
    }

    .page-intro p {
        font-size: 1.1875rem;
    }

    .levers-description {
        font-size: 1.25rem;
    }

    .page-header p {
        font-size: 1.3125rem;
    }
}
