/*
Theme Name: AllSupport 2026
Theme URI: https://allsupport.co
Author: Joe Cox / AllSupport
Author URI: https://allsupport.co
Description: Custom hand-coded theme for AllSupport. No page builders. No templates. No garbage.
Version: 1.0.0
License: Proprietary
*/

/* =============================================================================
   01. DESIGN TOKENS
============================================================================= */

:root {
    --blue:           #0462ac;
    --blue-dark:      #034a84;
    --blue-darker:    #02305a;
    --blue-light:     #e8f2fb;
    --orange:         #f15f16;
    --orange-dark:    #c94d0e;
    --orange-light:   #fdf0ea;

    --black:          #0d0d0d;
    --ink:            #1c1c1c;
    --ink-light:      #6b6b6b;
    --border:         #e2e2e2;
    --border-mid:     #c8c8c8;
    --surface:        #f7f7f5;
    --white:          #ffffff;

    --text-primary:   var(--ink);
    --text-secondary: var(--ink-light);
    --text-muted:     #999999;

    --font-display:   'Playfair Display', Georgia, serif;
    --font-body:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono:      'JetBrains Mono', 'Courier New', monospace;

    --text-xs:   11px;
    --text-sm:   13px;
    --text-base: 15px;
    --text-md:   17px;
    --text-lg:   22px;
    --text-xl:   30px;
    --text-2xl:  40px;
    --text-3xl:  54px;

    --weight-normal:   400;
    --weight-medium:   500;
    --weight-semibold: 600;
    --weight-bold:     700;

    --space-xs:  4px;
    --space-sm:  8px;
    --space-md:  16px;
    --space-lg:  24px;
    --space-xl:  40px;
    --space-2xl: 64px;
    --space-3xl: 96px;

    --container-max:    1140px;
    --container-narrow: 760px;
    --container-pad:    clamp(20px, 4vw, 48px);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --dur-fast: 150ms;
    --dur-base: 250ms;
}

/* =============================================================================
   02. RESET & BASE
============================================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--weight-normal);
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
a:hover { color: var(--blue-dark); }

ul, ol { list-style: none; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* =============================================================================
   03. TYPOGRAPHY
============================================================================= */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: var(--weight-bold);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ink);
}

h1 { font-size: clamp(34px, 5vw, var(--text-3xl)); }
h2 { font-size: clamp(26px, 3.5vw, var(--text-2xl)); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); font-family: var(--font-body); font-weight: var(--weight-semibold); letter-spacing: 0; }

/* =============================================================================
   04. LAYOUT
============================================================================= */

.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-content { flex: 1; }

.container {
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
}

.container--narrow { max-width: var(--container-narrow); }

.page-section {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
}

/* =============================================================================
   05. HEADER & NAV
============================================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--blue-darker);
    border-bottom: 3px solid var(--orange);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
    gap: var(--space-lg);
}

.site-branding { flex-shrink: 0; }

.site-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: var(--weight-bold);
    letter-spacing: -0.03em;
    line-height: 1;
    margin: 0;
}

.site-title a { color: var(--white); text-decoration: none; }
.site-title a:hover { color: var(--orange); }
.site-title .accent { color: var(--orange); }

.site-tagline {
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.45);
    margin: 3px 0 0;
    letter-spacing: 0.04em;
}

.site-nav { flex: 1; display: flex; justify-content: flex-end; }

.site-header .main-navigation {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header .main-navigation li a {
    display: block;
    padding: 8px 14px;
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}

.site-header .main-navigation li a:hover,
.site-header .main-navigation li.current-menu-item > a {
    color: var(--white);
    background: rgba(255,255,255,0.1);
}

.site-header .main-navigation li.nav-cta a {
    background: var(--orange);
    color: var(--white);
    margin-left: var(--space-sm);
    padding: 8px 18px;
}

.site-header .main-navigation li.nav-cta a:hover {
    background: var(--orange-dark);
    color: var(--white);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    flex-shrink: 0;
}

.hamburger-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
}

.mobile-nav {
    display: none;
    background: var(--blue-darker);
    border-bottom: 2px solid var(--orange);
}

.mobile-nav.is-open { display: block; }

.mobile-nav ul { list-style: none; margin: 0; padding: var(--space-sm) var(--container-pad); }

.mobile-nav ul li a {
    display: block;
    padding: 12px 0;
    font-size: var(--text-base);
    font-weight: var(--weight-medium);
    color: rgba(255,255,255,0.85);
    border-bottom: 0.5px solid rgba(255,255,255,0.1);
    text-decoration: none;
}

.mobile-nav ul li:last-child a { border-bottom: none; }
.mobile-nav ul li a:hover { color: var(--orange); }

/* =============================================================================
   06. HERO
============================================================================= */

.as-hero {
    background-color: var(--blue-darker);
    background-image: url('hero-bg.jpg');
    background-size: cover;
    background-position: center top;
    background-blend-mode: overlay;
    padding: var(--space-3xl) 0;
    border-bottom: 3px solid var(--orange);
}

.as-hero-eyebrow {
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: var(--space-lg);
}

.as-hero h1 {
    color: var(--white);
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-lg);
    max-width: 700px;
}

.as-hero h1 .accent { color: var(--orange); }

.as-hero-sub {
    font-size: var(--text-md);
    color: rgba(255,255,255,0.72);
    line-height: 1.75;
    max-width: 560px;
    margin-bottom: var(--space-xl);
}

.as-hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-bottom: var(--space-2xl);
}

.as-hero-proof {
    display: flex;
    gap: var(--space-2xl);
    flex-wrap: wrap;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255,255,255,0.12);
}

.proof-stat__number {
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: var(--weight-bold);
    color: var(--white);
    line-height: 1;
}

.proof-stat__label {
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.45);
    margin-top: var(--space-xs);
}

/* =============================================================================
   07. BUTTONS
============================================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    line-height: 1;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.btn-primary { background: var(--orange); color: var(--white); border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: var(--white); }

.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-ghost:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,0.08); }

.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); }

.btn-blue { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-blue:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }

.btn-lg { padding: 14px 28px; font-size: var(--text-base); }
.btn-sm { padding: 8px 16px; font-size: var(--text-xs); }

/* =============================================================================
   08. LOGO STRIP
============================================================================= */

.logo-strip { padding: var(--space-lg) 0; border-bottom: 0.5px solid var(--border); background: var(--surface); }

.logo-strip__inner { display: flex; align-items: center; gap: var(--space-xl); flex-wrap: wrap; }

.logo-strip__label {
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.logo-strip__list { display: flex; align-items: center; gap: var(--space-md); flex-wrap: wrap; list-style: none; }

.logo-pill {
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    color: var(--blue);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 12px;
    border: 1px solid var(--blue-light);
    background: var(--blue-light);
    border-radius: 20px;
}

/* =============================================================================
   09. SECTION HELPERS
============================================================================= */

.section-eyebrow {
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: var(--space-md);
    display: block;
}

.section-intro {
    font-size: var(--text-md);
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 580px;
    margin-bottom: var(--space-xl);
}

/* =============================================================================
   10. SERVICE CARDS
============================================================================= */

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.service-card {
    padding: var(--space-xl);
    background: var(--white);
    border-right: 0.5px solid var(--border);
    transition: background var(--dur-base) var(--ease-out);
}

.service-card:last-child { border-right: none; }
.service-card:hover { background: var(--surface); }

.service-card__icon {
    width: 42px;
    height: 42px;
    background: var(--blue-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    font-size: 20px;
    color: var(--blue);
}

.service-card__title {
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    font-family: var(--font-body);
    letter-spacing: 0;
    color: var(--ink);
    margin-bottom: var(--space-sm);
}

.service-card__body {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: var(--space-lg);
}

.service-card__link {
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    color: var(--orange);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* =============================================================================
   11. CASE STUDIES
============================================================================= */

.case-studies {
    display: flex;
    flex-direction: column;
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.case-study {
    padding: var(--space-xl);
    background: var(--white);
    border-bottom: 0.5px solid var(--border);
    transition: background var(--dur-base) var(--ease-out);
}

.case-study:last-child { border-bottom: none; }
.case-study:hover { background: var(--surface); }

.case-study__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.case-study__type {
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--orange);
}

.case-study__domain {
    font-size: var(--text-xs);
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.case-study__title { font-size: var(--text-lg); font-weight: var(--weight-bold); margin-bottom: var(--space-sm); }

.case-study__body {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.case-study__stack { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-bottom: var(--space-lg); }

.stack-tag {
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    color: var(--blue-dark);
    background: var(--blue-light);
    padding: 3px 10px;
    border-radius: 20px;
}

.case-study__stats {
    display: flex;
    gap: var(--space-xl);
    flex-wrap: wrap;
    padding-top: var(--space-lg);
    border-top: 0.5px solid var(--border);
}

.case-stat__value {
    font-size: 24px;
    font-weight: var(--weight-bold);
    font-family: var(--font-display);
    color: var(--blue);
    line-height: 1;
}

.case-stat__label { font-size: var(--text-xs); color: var(--text-muted); margin-top: var(--space-xs); }

/* =============================================================================
   12. IMMS PANEL
============================================================================= */

.imms-panel {
    background: var(--blue-darker);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    color: var(--white);
    border-left: 4px solid var(--orange);
}

.imms-panel__eyebrow {
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: var(--space-md);
}

.imms-panel h2 { color: var(--white); margin-bottom: var(--space-md); max-width: 560px; }

.imms-panel__body {
    color: rgba(255,255,255,0.72);
    font-size: var(--text-base);
    line-height: 1.75;
    max-width: 600px;
    margin-bottom: var(--space-xl);
}

.imms-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.imms-feature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.8);
}

.imms-feature::before { content: '✓'; color: var(--orange); font-weight: var(--weight-bold); flex-shrink: 0; }

.imms-panel__ctas { display: flex; gap: var(--space-md); flex-wrap: wrap; }

/* =============================================================================
   13. PERFORMANCE BAND
============================================================================= */

.perf-band {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.perf-item {
    padding: var(--space-xl);
    text-align: center;
    background: var(--white);
    border-right: 0.5px solid var(--border);
}

.perf-item:last-child { border-right: none; }

.perf-item__value {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: var(--weight-bold);
    color: var(--blue);
    line-height: 1;
}

.perf-item__label { font-size: var(--text-xs); color: var(--text-muted); margin-top: var(--space-sm); line-height: 1.4; }

/* =============================================================================
   14. WHY GRID
============================================================================= */

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.why-item { background: var(--white); padding: var(--space-xl); }

.why-item__icon { font-size: 28px; color: var(--blue); margin-bottom: var(--space-md); display: block; line-height: 1; }

.why-item__title { font-size: var(--text-base); font-weight: var(--weight-semibold); margin-bottom: var(--space-sm); font-family: var(--font-body); color: var(--ink); }

.why-item__body { font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.65; }

/* =============================================================================
   15. TESTIMONIAL
============================================================================= */

.testimonial {
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-left: 4px solid var(--orange);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.testimonial blockquote {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--ink);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.testimonial__attribution { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--ink); }
.testimonial__role { font-size: var(--text-sm); color: var(--text-muted); }

/* =============================================================================
   16. CTA BAND
============================================================================= */

.cta-band {
    background: var(--blue-darker);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl) var(--space-xl);
    text-align: center;
    border-top: 3px solid var(--orange);
}

.cta-band h2 { color: var(--white); margin-bottom: var(--space-md); }
.cta-band__body { font-size: var(--text-md); color: rgba(255,255,255,0.65); margin-bottom: var(--space-xl); }
.cta-band__btns { display: flex; gap: var(--space-md); justify-content: center; flex-wrap: wrap; }

/* =============================================================================
   17. PAGE HERO
============================================================================= */

.page-hero {
    background: var(--blue-darker);
    padding: var(--space-xl) 0;
    border-bottom: 3px solid var(--orange);
}

.page-hero .breadcrumb { font-size: var(--text-xs); color: rgba(255,255,255,0.4); margin-bottom: var(--space-sm); }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.5); text-decoration: none; }
.page-hero h1 { color: var(--white); margin: 0; }

/* =============================================================================
   18. NOTICE BANNERS
============================================================================= */

.notice-banner {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    border-left: 3px solid;
    margin-bottom: var(--space-lg);
    font-size: var(--text-sm);
    line-height: 1.6;
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.notice-banner p { margin-bottom: 0; }
.notice-banner-icon { flex-shrink: 0; font-size: 18px; }

.notice-info   { background: var(--blue-light); border-color: var(--blue); color: var(--blue-dark); }
.notice-alert  { background: #fef9e7; border-color: #d4a017; color: #7a5c00; }
.notice-urgent { background: #fdecea; border-color: #c0392b; color: #7b1a13; }

/* =============================================================================
   19. FOOTER
============================================================================= */

.site-footer {
    background: var(--blue-darker);
    color: rgba(255,255,255,0.65);
    border-top: 3px solid var(--orange);
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-xl);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--space-2xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: var(--space-xl);
}

.footer-brand-name {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: var(--weight-bold);
    color: var(--white);
    letter-spacing: -0.03em;
    margin-bottom: var(--space-md);
}

.footer-brand-name .accent { color: var(--orange); }

.site-footer p { font-size: var(--text-sm); color: rgba(255,255,255,0.5); line-height: 1.65; margin-bottom: var(--space-sm); }
.site-footer a { color: rgba(255,255,255,0.65); text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
.site-footer a:hover { color: var(--orange); }

.footer-col h4 {
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: var(--space-md);
    font-family: var(--font-body);
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { margin-bottom: var(--space-sm); }
.footer-col ul li a { font-size: var(--text-sm); color: rgba(255,255,255,0.55); }
.footer-col ul li a:hover { color: var(--orange); }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-md); }
.footer-bottom p { font-size: var(--text-xs); color: rgba(255,255,255,0.3); margin: 0; }

/* =============================================================================
   20. ENTRY CONTENT (editor output)
============================================================================= */

.entry-content { padding: var(--space-2xl) 0; }
.entry-content h2 { margin-bottom: var(--space-md); margin-top: var(--space-xl); }
.entry-content h3 { margin-bottom: var(--space-sm); margin-top: var(--space-lg); }
.entry-content p  { margin-bottom: 1em; }
.entry-content ul, .entry-content ol { margin-bottom: 1em; padding-left: var(--space-xl); }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* =============================================================================
   21. RESPONSIVE
============================================================================= */

@media (max-width: 900px) {
    .service-grid { grid-template-columns: 1fr; }
    .service-card { border-right: none; border-bottom: 0.5px solid var(--border); }
    .service-card:last-child { border-bottom: none; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .perf-band { grid-template-columns: repeat(2, 1fr); }
    .perf-item:nth-child(2) { border-right: none; }
    .perf-item:nth-child(3) { border-top: 0.5px solid var(--border); }
    .perf-item:nth-child(4) { border-top: 0.5px solid var(--border); border-right: none; }
}

@media (max-width: 640px) {
    .site-nav  { display: none; }
    .nav-toggle { display: flex; }
    .as-hero h1 { font-size: clamp(32px, 8vw, 44px); }
    .as-hero-proof { gap: var(--space-xl); }
    .why-grid { grid-template-columns: 1fr; }
    .imms-features { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: var(--space-xl); }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .cta-band { padding: var(--space-xl) var(--space-lg); }
    .imms-panel { padding: var(--space-xl); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* =============================================================================
   22. PORTFOLIO GRID (/work/)
============================================================================= */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.portfolio-card {
    background: var(--white);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow var(--dur-base) var(--ease-out);
}

.portfolio-card:hover {
    box-shadow: 0 4px 24px rgba(4,98,172,0.10);
}

.portfolio-card__image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.portfolio-card__body {
    padding: var(--space-xl);
}

.portfolio-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.portfolio-card__type {
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--orange);
}

.portfolio-card__date {
    font-size: var(--text-xs);
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.portfolio-card__title {
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    margin-bottom: var(--space-xs);
    line-height: 1.2;
}

.portfolio-card__title a {
    color: var(--ink);
    text-decoration: none;
}

.portfolio-card__title a:hover { color: var(--blue); }

.portfolio-card__client {
    font-size: var(--text-sm);
    color: var(--blue);
    font-weight: var(--weight-medium);
    margin-bottom: var(--space-md);
}

.portfolio-card__excerpt {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: var(--space-lg);
}

.portfolio-card__stack {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.portfolio-card__actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding-top: var(--space-lg);
    border-top: 0.5px solid var(--border);
}

/* =============================================================================
   23. SINGLE PROJECT (case study)
============================================================================= */

.project-hero-image {
    max-height: 480px;
    overflow: hidden;
    border-bottom: 3px solid var(--orange);
}

.project-hero-image img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}

.project-layout {
    max-width: 860px;
    margin: 0 auto;
}

.project-meta-strip {
    display: flex;
    gap: var(--space-2xl);
    flex-wrap: wrap;
    padding: var(--space-xl) 0;
    border-bottom: 0.5px solid var(--border);
    margin-bottom: var(--space-xl);
}

.project-meta-item { display: flex; flex-direction: column; gap: 4px; }

.project-meta-label {
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.project-meta-value {
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--ink);
}

.project-live-link {
    color: var(--blue) !important;
    text-decoration: none;
    font-weight: var(--weight-semibold);
}

.project-live-link:hover { color: var(--orange) !important; }

.project-stats {
    display: flex;
    gap: var(--space-2xl);
    flex-wrap: wrap;
    padding: var(--space-xl);
    background: var(--surface);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
    border-left: 4px solid var(--orange);
}

.project-stack { margin-top: var(--space-xl); padding-top: var(--space-xl); border-top: 0.5px solid var(--border); }

.project-stack__heading {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
    font-family: var(--font-body);
}

.project-gallery { margin-top: var(--space-xl); padding-top: var(--space-xl); border-top: 0.5px solid var(--border); }

.project-gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.project-gallery__item img {
    width: 100%;
    border-radius: var(--radius-md);
    border: 0.5px solid var(--border);
}

.project-visit-cta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    align-items: center;
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 0.5px solid var(--border);
}

/* =============================================================================
   24. ALTERNATING SECTION BACKGROUNDS
============================================================================= */

.section-alt { background: var(--surface); }

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

.section-dark h2,
.section-dark h3,
.section-dark h4 { color: var(--white); }

.section-dark p { color: rgba(255,255,255,0.72); }

/* =============================================================================
   25. LOGIN PAGE BRANDING
============================================================================= */

body.login {
    background: #02305a;
}

body.login #login h1 a {
    background-image: none;
    font-family: Georgia, serif;
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    text-indent: 0;
    width: auto;
    height: auto;
    display: block;
    text-decoration: none;
}

body.login #loginform,
body.login #lostpasswordform {
    background: #ffffff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

body.login #loginform label,
body.login #lostpasswordform label {
    color: #1c1c1c;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
}

body.login #loginform input[type="text"],
body.login #loginform input[type="password"],
body.login #loginform input[type="email"],
body.login #lostpasswordform input[type="text"] {
    background: #f7f7f5;
    border: 1px solid #e2e2e2;
    border-radius: 4px;
    color: #1c1c1c;
    font-size: 14px;
    padding: 10px 12px;
    width: 100%;
    box-shadow: none;
}

body.login input[type="submit"] {
    background: #f15f16;
    border: none;
    border-radius: 6px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    padding: 10px 20px;
    text-shadow: none;
    box-shadow: none;
    cursor: pointer;
    transition: background 150ms ease;
}

body.login input[type="submit"]:hover {
    background: #c94d0e;
}

body.login #nav a,
body.login #backtoblog a {
    color: rgba(255,255,255,0.6);
}

body.login #nav a:hover,
body.login #backtoblog a:hover {
    color: #f15f16;
}

body.login .privacy-policy-page-link a {
    color: rgba(255,255,255,0.4);
}