/* Infiniteam brand sites - shared styles; colours come from the brand's theme.css */
/*
 * Load order in every page: <brand>/_assets/theme.css, then this file.
 * theme.css defines --primary-50 ... --primary-900, --secondary-50 ... --secondary-500 and their -rgb channels (for alpha colours:
 * rgb(var(--primary-500-rgb) / 0.3)). This file holds no brand colour.
 * Page-specific rules are scoped by body class: .home-page, .about-page, .contact-page.
 * :where(...) scopes keep the original specificity of rules that used to be unscoped inline page CSS.
 */

:root {
    /* Primary and secondary colours (--primary-*, --secondary-*) come from the brand theme.css */

    /* Accent Colors - Warm peach tones */
    --peach-50: #fff7ed;
    --peach-100: #ffedd5;
    --peach-200: #fed7aa;
    --peach-500: #f97316;

    /* Neutral Colors */
    --neutral-50: #fafaf9;
    --neutral-100: #f5f5f4;
    --neutral-200: #e7e5e4;
    --neutral-300: #d6d3d1;
    --neutral-500: #78716c;
    --neutral-700: #44403c;
    --neutral-900: #1c1917;

    /* Text Colors */
    --text-strong: var(--neutral-900);
    --text-soft: var(--neutral-700);
    --text-muted: var(--neutral-500);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
    --transition-bounce: 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== Page shell: former critical inline CSS of the pages, reduced to what the site styles below do not override ===== */

main {
    width: 100%;
}

:where(body:not(.contact-page)) {
    -webkit-font-smoothing: antialiased;
}

:where(body:not(.contact-page)) .navbar {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

:where(body:not(.contact-page)) section {
    padding: 2rem 1rem;
}

:where(body:not(.contact-page)) .hero + section {
    padding-top: 1rem;
}

:where(body:not(.contact-page)) .hero {
    padding: 0 1rem 0.5rem 1rem;
}

:where(body:not(.contact-page)) .hero h1 {
    margin-top: 1rem;
}

:where(body:not(.about-page):not(.contact-page)) .hero-tagline {
    line-height: 1.6;
    margin-top: 0.5rem;
}

@media (min-width: 768px) {
    :where(body:not(.contact-page)) section {
        padding: 3rem 2rem;
    }

    :where(body:not(.contact-page)) .hero + section {
        padding-top: 1.5rem;
    }

    :where(body:not(.contact-page)) .hero {
        padding: 0 2rem 1rem 2rem;
    }
}

/* Home + about: reserve header/footer space before the header and footer are injected */
:where(.home-page, .about-page) #header-placeholder {
    display: block;
    width: 100%;
    min-height: 80px;
    height: auto;
}

:where(.home-page, .about-page) main {
    padding-top: 2rem !important;
    margin-top: 0 !important;
}

:where(.home-page) #footer-placeholder {
    min-height: 80px;
    display: block;
}

:where(.home-page) .feature-showcase-image {
    width: 100%;
    height: 360px;
    min-height: 360px;
    max-height: 360px;
    display: block;
    position: relative;
}

:where(.home-page) .feature-showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

:where(.home-page) .hero-quote {
    display: block;
    font-style: italic;
    color: var(--primary-700);
    margin-top: 0.25rem;
}

@media (min-width: 768px) {
    :where(.home-page, .about-page) #header-placeholder {
        min-height: 130px;
        height: 130px;
    }

    :where(.home-page, .about-page) main {
        padding: 0 2rem !important;
        padding-top: 2rem !important;
        margin-top: 0 !important;
    }
}

/* ===== Site styles ===== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@keyframes floatGlow {
    0%, 100% { 
        transform: translateY(0px) scale(1); 
        opacity: 0.4; 
    }
    50% { 
        transform: translateY(-12px) scale(1.02); 
        opacity: 0.7; 
    }
}

@keyframes gentlePulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgb(var(--primary-500-rgb) / 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 0 20px rgb(var(--primary-500-rgb) / 0);
        transform: scale(1.02);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    scroll-padding-top: calc(var(--spacing-2xl) + 130px);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: 
        radial-gradient(circle at 15% 25%, rgb(var(--primary-500-rgb) / 0.15), transparent 50%),
        radial-gradient(circle at 85% 75%, rgb(var(--secondary-500-rgb) / 0.12), transparent 50%),
        linear-gradient(160deg, var(--primary-50) 0%, var(--secondary-50) 100%);
    color: var(--text-strong);
    line-height: 1.7;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    animation: fadeIn 0.6s ease-in;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgb(var(--primary-500-rgb) / 0.2);
    padding: var(--spacing-sm) var(--spacing-md);
    transition: all var(--transition-base);
    width: 100%;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgb(var(--primary-900-rgb) / 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "brand nav-links nav-actions";
    align-items: center;
    gap: var(--spacing-lg);
    position: relative;
    width: 100%;
}

/* Ensure proper separation - each section is a direct child */
.nav-container > .brand {
    grid-area: brand;
    justify-self: start;
    flex-shrink: 0;
}

.nav-container > .nav-links {
    grid-area: nav-links;
    justify-self: start;
    min-width: 0;
    overflow-x: auto;
    overflow-y: visible;
}

.nav-container > .nav-actions {
    grid-area: nav-actions;
    justify-self: end;
    flex-shrink: 0;
    min-width: fit-content;
}

.brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    text-decoration: none;
    color: inherit;
    transition: transform var(--transition-base);
}

.brand:hover {
    transform: translateY(-2px);
}

.brand-logo {
    height: auto;
    max-height: 84px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform var(--transition-base);
    display: block;
}

.brand:hover .brand-logo {
    transform: scale(1.05);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1.1;
}

.brand-label {
    font-family: 'Caveat', cursive;
    font-size: 1.1rem;
    text-transform: none;
    letter-spacing: 0.03em;
    color: var(--primary-500);
    font-weight: 600;
    font-style: normal;
}

.brand-name {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-700);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: nowrap;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    width: 100%;
}

.nav-links::-webkit-scrollbar {
    display: none;
}

.nav-links li {
    flex-shrink: 0;
    white-space: nowrap;
    list-style: none;
}

/* Ensure nav-actions children never appear in nav-links */
.nav-links .language-select,
.nav-links .nav-actions,
.nav-links select.language-select {
    display: none !important;
}

.nav-links a {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    transition: all var(--transition-base);
    position: relative;
    display: block;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--primary-600);
    border-color: var(--primary-200);
    background: var(--primary-50);
    transform: translateY(-2px);
}

.nav-links a.active {
    color: var(--primary-600);
    background: var(--primary-100);
    border-color: var(--primary-300);
}

.nav-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-md);
    white-space: nowrap;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    min-width: fit-content;
}

/* CRITICAL: Ensure nav-actions is NEVER inside nav-links */
.nav-links .nav-actions,
.nav-links .language-select,
.nav-links select.language-select,
.nav-links .btn-primary {
    display: none !important;
    visibility: hidden !important;
}

/* Ensure nav-actions children are visible */
.nav-actions .language-select,
.nav-actions select,
.nav-actions .btn-primary {
    display: block !important;
    visibility: visible !important;
    position: static !important;
    transform: none !important;
}

.language-select {
    padding: 0.5rem 1rem;
    padding-right: 2.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--primary-200);
    border-radius: var(--radius-full);
    color: var(--text-soft);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    appearance: none;
    /* Down arrow from two half-square gradients, so its colour comes from the theme. Same geometry as the
       former 0.75rem SVG arrow (path M6 9L1 4h10z in a 12-unit box): 10 x 5 units, 1 unit in from the right
       edge of the box, 0.5 unit below its centre. */
    --select-arrow-color: var(--primary-700);
    background-image:
        linear-gradient(45deg, transparent 50%, var(--select-arrow-color) 50%),
        linear-gradient(135deg, var(--select-arrow-color) 50%, transparent 50%);
    background-repeat: no-repeat;
    background-position:
        right calc(0.75rem + 0.375rem) top calc(50% + 0.03125rem),
        right calc(0.75rem + 0.0625rem) top calc(50% + 0.03125rem);
    background-size: 0.3125rem 0.3125rem, 0.3125rem 0.3125rem;
    flex: 0 0 auto;
    width: auto;
    min-width: fit-content;
    box-sizing: border-box;
    vertical-align: middle;
    position: static;
    transform: none;
    will-change: auto;
}

.language-select:hover {
    --select-arrow-color: var(--primary-600);
    color: var(--primary-600);
    border-color: var(--primary-300);
    background-color: var(--primary-50);
    box-shadow: 0 4px 12px rgb(var(--primary-600-rgb) / 0.15);
}

.language-select:focus-visible {
    --select-arrow-color: var(--primary-600);
    color: var(--primary-600);
    border-color: var(--primary-300);
    background-color: var(--primary-50);
    box-shadow: 0 4px 12px rgb(var(--primary-600-rgb) / 0.15);
    outline: none;
}

/* Language menu: <details> with plain links (crawlable, works without JavaScript) */
.language-menu {
    position: relative;
}

.language-menu > summary {
    list-style: none;
    user-select: none;
}

.language-menu > summary::-webkit-details-marker {
    display: none;
}

.language-menu[open] > summary {
    --select-arrow-color: var(--primary-600);
    color: var(--primary-600);
    border-color: var(--primary-300);
    background-color: var(--primary-50);
}

.language-list {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    z-index: 1001;
    min-width: 11rem;
    max-height: min(70vh, 26rem);
    overflow-y: auto;
    margin: 0;
    padding: 0.35rem;
    list-style: none;
    background: #fff;
    border: 2px solid var(--primary-200);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 32px rgb(var(--primary-900-rgb) / 0.15);
    animation: languageMenuIn var(--transition-fast);
}

@keyframes languageMenuIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
}

.language-list a {
    display: block;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-sm);
    color: var(--text-soft);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.language-list a:hover,
.language-list a:focus-visible {
    background: var(--primary-50);
    color: var(--primary-600);
    outline: none;
}

.language-list a[aria-current] {
    background: var(--primary-100);
    color: var(--primary-700);
    font-weight: 600;
}

.nav-actions .btn-primary {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

/* Beta label next to the brand logo */
.beta-badge {
    align-self: center;
    padding: 0.15rem 0.55rem;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--primary-300);
    background: var(--primary-50);
    color: var(--primary-700);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.4;
    white-space: nowrap;
}

/* Short note under a hero call to action (e.g. the beta notice) */
.hero-note {
    margin-top: var(--spacing-md);
    font-size: 0.9rem;
    color: var(--text-soft);
    max-width: 34rem;
}

.hero-note a {
    color: var(--primary-600);
    font-weight: 600;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-2xl) var(--spacing-lg) var(--spacing-md) var(--spacing-lg);
    animation: slideInUp 0.8s ease-out;
    padding-top: calc(var(--spacing-2xl) + 130px);
    scroll-padding-top: calc(var(--spacing-2xl) + 130px);
}

/* Hero Section */
.hero {
    text-align: center;
    margin-top: 0;
}

.hero h1 {
    font-family: 'Fraunces', serif;
    font-size: clamp(2rem, 4.5vw, 2.5rem);
    font-weight: 600;
    color: var(--primary-700);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero-tagline {
    font-size: clamp(0.95rem, 2.3vw, 1.35rem);
    color: var(--text-soft);
    margin-bottom: var(--spacing-md);
    font-weight: 500;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-group {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-md);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid transparent;
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    color: white;
    border-color: var(--primary-600);
    animation: gentlePulse 3s ease-in-out infinite;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgb(var(--primary-600-rgb) / 0.3);
    animation: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-600);
    border-color: var(--primary-300);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    transform: translateY(-3px);
    background: var(--primary-50);
    border-color: var(--primary-400);
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-md) 0;
}

.feature-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    border: 2px solid var(--primary-200);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    animation: scaleIn 0.6s ease-out backwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

.feature-card::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgb(var(--primary-500-rgb) / 0.1), transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary-400);
    box-shadow: 0 20px 40px rgb(var(--primary-900-rgb) / 0.15);
}

.feature-card:hover::before {
    opacity: 1;
    animation: floatGlow 4s ease-in-out infinite;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-500);
    transition: transform var(--transition-bounce);
    text-align: center;
    display: block;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(5deg);
}

.feature-card h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.75rem;
    color: var(--primary-700);
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    color: var(--text-soft);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* AI Features Section */
.ai-features-section {
    background: linear-gradient(135deg, rgb(var(--primary-500-rgb) / 0.08) 0%, rgb(var(--secondary-500-rgb) / 0.06) 100%);
    border-color: var(--primary-300);
    position: relative;
}

.ai-features-section::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--primary-300), var(--secondary-300), var(--primary-300));
    border-radius: var(--radius-xl);
    opacity: 0;
    transition: opacity var(--transition-slow);
    z-index: -1;
    filter: blur(8px);
}

.ai-features-section:hover::before {
    opacity: 0.3;
}

.ai-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

@media (min-width: 768px) {
    .ai-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ai-feature-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgb(var(--primary-50-rgb) / 0.9) 100%);
    border-color: var(--primary-300);
    position: relative;
    overflow: hidden;
}

.ai-feature-card::after {
    display: none;
}

.ai-feature-card:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: var(--primary-500);
    box-shadow: 0 25px 50px rgb(var(--primary-600-rgb) / 0.2);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgb(var(--primary-50-rgb) / 0.95) 100%);
}

.ai-icon {
    position: relative;
    display: block;
    text-align: center;
    margin: 0 auto;
    filter: drop-shadow(0 2px 4px rgb(var(--primary-500-rgb) / 0.2));
}

.ai-feature-card:hover .ai-icon {
    transform: scale(1.25) rotate(8deg);
    filter: drop-shadow(0 4px 8px rgb(var(--primary-500-rgb) / 0.4));
}

.ai-feature-card .ai-icon::before {
    display: none;
}

/* Section Headings */
.section-heading {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.section-heading span {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.875rem;
    color: var(--primary-500);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.section-heading h2 {
    font-family: 'Fraunces', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary-700);
    letter-spacing: -0.02em;
}

/* Content Sections */
.content-section {
    background: rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    margin: var(--spacing-2xl) 0;
    border: 2px solid var(--primary-200);
    position: relative;
    overflow: hidden;
}

.content-section::after {
    content: "";
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgb(var(--primary-500-rgb) / 0.08), transparent 60%);
    animation: floatGlow 8s ease-in-out infinite;
    z-index: 0;
}

.content-section > * {
    position: relative;
    z-index: 1;
}

/* Feature Card with Showcase Images */
.feature-card .feature-showcase-image {
    width: 100%;
    height: 360px;
    max-height: 360px;
    min-height: 360px;
    margin-top: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.feature-card .feature-showcase-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgb(var(--primary-500-rgb) / 0.05), transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 1;
    pointer-events: none;
}

.feature-card:hover .feature-showcase-image::before {
    opacity: 1;
}

.feature-card .feature-showcase-image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 360px;
    object-fit: contain;
    object-position: center;
    padding: 0;
    transition: transform var(--transition-base);
    position: relative;
    z-index: 0;
}

.feature-card:hover .feature-showcase-image img {
    transform: scale(1.05);
}

/* Pricing Cards */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-2xl) 0;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    border: 2px solid var(--primary-200);
    transition: all var(--transition-base);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.has-welcome-discount {
    overflow: hidden;
}

.pricing-welcome-discount-notice {
    max-width: 52rem;
    margin: 0 auto var(--spacing-lg);
    padding: var(--spacing-md) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--primary-200);
    border-radius: var(--radius-md);
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
}

.pricing-lifetime-emphasis {
    font-weight: 600;
    color: var(--primary-700);
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 0.12em;
}

.pricing-card-discount-banner {
    position: absolute;
    top: 0.75rem;
    right: -3.75rem;
    transform: rotate(35deg);
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-700), var(--primary-500));
    color: #fff;
    box-shadow: 0 6px 18px rgb(var(--primary-600-rgb) / 0.25);
    padding: 0.55rem 4.25rem;
    border-radius: 0.5rem;
    pointer-events: none;
    user-select: none;
    z-index: 1;
    text-align: center;
}

.pricing-card-discount-banner-content {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    white-space: nowrap;
    text-align: center;
}

.pricing-card-discount-banner-discount {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1.05;
}

.pricing-card-discount-banner-price {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.05;
}

html[lang="nl"] .pricing-card-discount-banner,
html[lang="it"] .pricing-card-discount-banner {
    top: 0.65rem;
    right: -4.5rem;
    padding: 0.5rem 5rem;
}

html[lang="nl"] .pricing-card-discount-banner-discount,
html[lang="it"] .pricing-card-discount-banner-discount {
    font-size: 0.58rem;
    letter-spacing: 0.01em;
}

html[lang="nl"] .pricing-card-discount-banner-price,
html[lang="it"] .pricing-card-discount-banner-price {
    font-size: 0.66rem;
}

.pricing-price-fine-print {
    font-size: 0.85rem;
    color: var(--text-soft);
    margin: 0 0 var(--spacing-sm);
}

.pricing-card.featured {
    border-color: var(--primary-500);
    border-width: 3px;
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, var(--primary-50) 100%);
}

.pricing-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-400);
    box-shadow: 0 25px 50px rgb(var(--primary-900-rgb) / 0.2);
}

.pricing-card.featured:hover {
    transform: translateY(-10px) scale(1.07);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    right: var(--spacing-md);
    background: var(--peach-500);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.pricing-badge.coming-soon {
    background: var(--neutral-500);
    color: white;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    opacity: 1;
}

.pricing-card.disabled {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.pricing-card.disabled:hover {
    transform: none;
    border-color: var(--primary-200);
    box-shadow: none;
}

.pricing-card.disabled::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    z-index: 1;
}

.pricing-card.disabled .pricing-badge {
    opacity: 1;
    z-index: 2;
}

.btn:disabled,
.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    background: var(--neutral-300);
    color: var(--neutral-600);
    border-color: var(--neutral-300);
}

.btn:disabled:hover,
.btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

.pricing-header h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.75rem;
    color: var(--primary-700);
    margin-bottom: var(--spacing-xs);
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-600);
    margin: var(--spacing-sm) 0;
}

.pricing-price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin: var(--spacing-md) 0;
    flex-grow: 1;
}

.pricing-features li {
    padding: 0.25rem 0;
    color: var(--text-soft);
    position: relative;
    padding-left: 1.5rem;
}

.pricing-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-500);
    font-weight: 700;
}

/* FAQ */
.faq-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.faq-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    border: 2px solid var(--primary-200);
    transition: all var(--transition-base);
}

.faq-item:hover {
    border-color: var(--primary-400);
    transform: translateX(5px);
    background: var(--primary-50);
}

.faq-item h3 {
    font-size: 1.25rem;
    color: var(--primary-700);
    margin-bottom: var(--spacing-sm);
}

.faq-item p {
    color: var(--text-soft);
    line-height: 1.7;
}

/* Footer */
footer {
    background: rgba(255, 255, 255, 0.9);
    border-top: 2px solid var(--primary-200);
    padding: var(--spacing-xl) var(--spacing-lg);
    margin-top: 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    list-style: none;
}

.footer-links a {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-base);
}

.footer-links a:hover {
    color: var(--primary-600);
}

.footer-links a.active {
    color: var(--primary-600);
}

.footer-copyright {
    color: var(--text-soft);
    font-size: 0.9rem;
}

.footer-copyright a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--primary-300);
    text-underline-offset: 0.2em;
    transition: color var(--transition-base);
}

.footer-copyright a:hover {
    color: var(--primary-600);
}

/* Scroll to Top Button */
.scroll-to-top {
    display: none;
    position: fixed;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-500);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 12px rgb(var(--primary-900-rgb) / 0.3);
    transition: all var(--transition-base);
    align-items: center;
    justify-content: center;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
}

.scroll-to-top:hover,
.scroll-to-top:focus-visible {
    background: var(--primary-600);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgb(var(--primary-900-rgb) / 0.4);
    outline: none;
}

.scroll-to-top:active {
    transform: translateY(0);
    background: var(--primary-600);
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

/* Show scroll-to-top button on mobile when scrolled */
@media (max-width: 768px) {
    .scroll-to-top {
        display: none;
    }
    
    .scroll-to-top.show {
        display: flex !important;
    }
}

@media (min-width: 769px) {
    .scroll-to-top {
        display: none !important;
    }
    
    .feature-showcase-image {
        height: 480px;
        max-height: 480px;
        min-height: 480px;
    }
    
    .feature-card .feature-showcase-image img {
        max-height: 480px;
    }
}

@media (min-width: 769px) {
    /* Desktop navigation layout - menu items below brand logo */
    .nav-container {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-rows: auto auto !important;
        grid-template-areas: 
            "brand nav-actions"
            "nav-links nav-links" !important;
        align-items: center !important;
        gap: var(--spacing-md) !important;
        row-gap: 0.25rem !important;
    }
    
    .brand {
        grid-area: brand !important;
        justify-self: start !important;
        flex-shrink: 0 !important;
    }
    
    .nav-links {
        grid-area: nav-links !important;
        justify-self: stretch !important;
        margin: 0 !important;
        padding: 0.125rem 0 !important;
        display: flex !important;
        min-width: 0 !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        width: 100% !important;
    }
    
    .nav-links::-webkit-scrollbar {
        display: none !important;
    }
    
    .nav-actions {
        grid-area: nav-actions !important;
        justify-self: end !important;
        display: flex !important;
        flex-direction: row !important;
        position: relative !important;
        z-index: 100 !important;
        flex-shrink: 0 !important;
        min-width: fit-content !important;
    }
    
    /* Ensure language select and sign up are NOT in nav-links */
    .nav-links .language-select,
    .nav-links .nav-actions,
    .nav-links select,
    .nav-links .btn-primary {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* Ensure nav-actions children are visible */
    .nav-actions .language-select,
    .nav-actions .btn-primary,
    .nav-actions select {
        display: flex !important;
        visibility: visible !important;
    }
}

/* Responsive */
@media screen and (max-width: 768px) {
    .feature-card {
        padding: var(--spacing-md) !important;
        position: relative !important;
        z-index: 1 !important;
    }
    
    .navbar {
        position: static;
        padding: var(--spacing-sm) var(--spacing-sm);
        overflow-x: visible;
        overflow-y: visible;
    }
    
    main {
        padding: var(--spacing-md) var(--spacing-sm);
        padding-top: var(--spacing-md);
    }
    
    main .content-section .features-grid.features-grid-fullwidth .feature-card .feature-showcase-image {
        margin-left: calc(-1 * var(--spacing-sm)) !important;
        margin-right: calc(-1 * var(--spacing-sm)) !important;
        width: calc(100% + 2 * var(--spacing-sm)) !important;
    }
    
    .hero {
        position: relative !important;
        z-index: 10 !important;
    }
    
    .hero h1 {
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-tagline {
        margin-bottom: var(--spacing-sm);
    }
    
    .cta-group {
        margin-top: var(--spacing-md);
        position: relative !important;
        z-index: 10 !important;
    }
    
    .btn-primary {
        position: relative !important;
        z-index: 10 !important;
    }
    
    .content-section {
        padding: var(--spacing-md) var(--spacing-md) !important;
        margin: 1rem 0 !important;
        overflow: visible !important;
    }
    
    .content-section .features-grid.features-grid-fullwidth {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .section-heading {
        margin-bottom: 0.25rem !important;
        gap: 0.25rem !important;
        padding: 0 0.5rem !important;
    }
    
    .features-grid {
        gap: 1.5rem !important;
        margin: var(--spacing-md) 0 0 0 !important;
        overflow: visible !important;
    }
    
    .ai-features-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }
    
    .ai-feature-card {
        padding: var(--spacing-md) !important;
    }
    
    .ai-feature-card:hover {
        transform: translateY(-5px) scale(1.01) !important;
    }
    
    .features-grid.features-grid-fullwidth {
        gap: 1.5rem !important;
        margin: var(--spacing-md) 0 0 0 !important;
    }
    
    .content-section .features-grid {
        gap: 1.5rem !important;
        margin-top: var(--spacing-md) !important;
    }
    
    .content-section .features-grid.features-grid-fullwidth {
        gap: 1.5rem !important;
        margin-top: var(--spacing-md) !important;
    }
    
    section.content-section .features-grid.features-grid-fullwidth {
        gap: 1.5rem !important;
        margin-top: var(--spacing-md) !important;
    }
    
    .feature-card {
        overflow: visible !important;
        position: relative !important;
        z-index: 1 !important;
    }
    
    .content-section {
        position: relative !important;
        z-index: 1 !important;
    }
    
    .feature-card:last-child {
        margin-bottom: 0 !important;
    }
    
    .features-grid .feature-card:has(.feature-showcase-image) {
        padding: var(--spacing-md) var(--spacing-md) 0.25rem var(--spacing-md) !important;
    }
    
    .pricing-grid {
        gap: var(--spacing-md);
    }
    
    .pricing-card {
        padding: var(--spacing-md);
    }
    
    .faq-list {
        gap: var(--spacing-sm);
    }
    
    .faq-item {
        padding: var(--spacing-md);
    }
    
    .features-grid:not(.features-grid-fullwidth),
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: scale(1);
    }
    
    .feature-showcase-image {
        height: 360px !important;
        max-height: 360px !important;
        min-height: 360px !important;
        margin-top: 0.25rem !important;
    }
    
    .features-grid .feature-card .feature-showcase-image {
        margin-left: -1rem !important;
        margin-right: -1rem !important;
        margin-bottom: 0 !important;
        margin-top: 0.5rem !important;
        width: calc(100% + 2rem) !important;
        border-radius: 0 !important;
    }
    
    .features-grid.features-grid-fullwidth .feature-card .feature-showcase-image {
        margin-left: -1rem !important;
        margin-right: -1rem !important;
        margin-bottom: 0 !important;
        margin-top: 0.5rem !important;
        width: calc(100% + 2rem) !important;
        border-radius: 0 !important;
    }
    
    .content-section .features-grid.features-grid-fullwidth .feature-card .feature-showcase-image {
        margin-left: -1rem !important;
        margin-right: -1rem !important;
        margin-bottom: 0 !important;
        margin-top: 0.5rem !important;
        width: calc(100% + 2rem) !important;
        border-radius: 0 !important;
    }
    
    .feature-card .feature-showcase-image img {
        max-height: 360px !important;
        padding: 0 !important;
    }
    
    .features-grid .feature-card .feature-showcase-image img {
        padding: 0 !important;
    }
    
    .features-grid.features-grid-fullwidth .feature-card .feature-showcase-image img {
        padding: 0 !important;
    }
    
    .content-section .features-grid.features-grid-fullwidth .feature-card .feature-showcase-image img {
        padding: 0 !important;
    }
    
    .features-grid .feature-card:has(.feature-showcase-image) h3 {
        margin-bottom: 0.25rem !important;
    }
    
    .features-grid .feature-card:has(.feature-showcase-image) p {
        margin-bottom: 0.25rem !important;
    }
    
    .features-grid.features-grid-fullwidth .feature-card h3 {
        margin-bottom: 0.25rem !important;
        padding: 0 1rem !important;
    }
    
    .features-grid.features-grid-fullwidth .feature-card p {
        margin-bottom: 0.25rem !important;
        padding: 0 1rem !important;
    }
    
    .content-section .features-grid.features-grid-fullwidth .feature-card h3 {
        margin-bottom: 0.25rem !important;
        padding: 0 1rem !important;
    }
    
    .content-section .features-grid.features-grid-fullwidth .feature-card p {
        margin-bottom: 0.25rem !important;
        padding: 0 1rem !important;
    }
    
    .nav-container {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-rows: auto auto !important;
        grid-template-areas: 
            "brand nav-actions"
            "nav-links nav-links" !important;
        align-items: center;
        gap: var(--spacing-xs);
        row-gap: 0.25rem !important;
        width: 100%;
        max-width: 100%;
        overflow-x: visible !important;
        overflow-y: visible !important;
    }
    
    .brand {
        grid-area: brand;
        justify-self: start;
        flex-shrink: 0;
        min-width: 0;
        overflow: visible;
    }
    
    .brand-logo {
        max-height: 84px;
        max-width: 200px;
        width: auto;
        height: auto;
    }
    
    .brand-name {
        font-size: 1.25rem;
    }
    
    .nav-links {
        grid-area: nav-links;
        justify-self: stretch;
        flex-wrap: wrap !important;
        justify-content: flex-start;
        align-content: flex-start;
        align-items: flex-start;
        margin-top: 0.125rem !important;
        width: 100%;
        max-width: 100%;
        display: flex !important;
        gap: 0.2rem !important;
        padding: 0.125rem 0 !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        list-style: none !important;
    }
    
    .nav-links li {
        flex-shrink: 1 !important;
        flex-grow: 0 !important;
        white-space: normal !important;
        min-width: 0 !important;
        max-width: 100% !important;
        list-style: none !important;
        display: block !important;
    }
    
    .nav-links a {
        padding: 0.35rem 0.65rem;
        font-size: 0.8rem;
        flex-shrink: 1;
        white-space: normal;
        display: inline-block;
        width: auto;
        min-width: fit-content;
        max-width: 100%;
    }
    
    .nav-actions {
        grid-area: nav-actions;
        gap: 0.35rem;
        display: flex !important;
        flex-shrink: 0;
        flex-wrap: nowrap;
        align-items: center;
        min-width: min-content;
        max-width: 100%;
        overflow: visible !important;
        justify-self: end;
        padding: 2px;
        box-sizing: border-box;
    }
    
    .nav-actions .btn-primary {
        display: none !important;
    }
    
    .language-select {
        padding: 0.35rem 0.7rem;
        padding-right: 1.8rem;
        font-size: 0.8rem;
        flex: 0 0 auto;
        min-width: fit-content;
        max-width: 100px;
        border: 2px solid var(--primary-200) !important;
        box-sizing: border-box !important;
        overflow: visible !important;
        margin: 2px !important;
        position: relative;
        z-index: 1;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

/* CRITICAL: Force fullwidth grid to single column at every width (the only copy of these declarations) */
.features-grid.features-grid-fullwidth,
.content-section .features-grid.features-grid-fullwidth,
section.content-section .features-grid.features-grid-fullwidth {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-auto-flow: row !important;
    grid-auto-rows: auto !important;
    width: 100% !important;
}

/* Safari / WebKit: hide Contacts and Keychain autofill affordances inside inputs */
input::-webkit-contacts-auto-fill-button,
input::-webkit-credentials-auto-fill-button {
    visibility: hidden;
    display: none !important;
    pointer-events: none;
}

/* ===== Home page (.home-page) ===== */

/* Hero + stories: solid sheet for text; small photo as corner-clipped oval */
.home-page .hero.hero--immersive {
    text-align: left;
    padding: 0;
}
.home-page .hero--immersive {
    position: relative;
    text-align: left;
    padding: 0;
    margin-bottom: var(--spacing-lg);
}
.home-page .hero__sheet {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl, 1.5rem);
    border: 2px solid var(--primary-200);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 4px 24px rgb(var(--primary-900-rgb) / 0.08);
    padding: clamp(1.25rem, 3vw, 2.25rem);
    padding-bottom: clamp(1.25rem, 2.5vw, 2rem);
}
.home-page .hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Sheet photo: 1/3 width × 2/3 height + 10% of that width past top-right (11/30 of sheet) */
    max-width: calc(100% * 19 / 30 - 1rem);
    padding-right: 0;
}
.home-page .hero--immersive .hero-tagline {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
    color: var(--text-strong);
    max-width: 445px;
}
.home-page .hero--immersive h1 {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    font-weight: 400;
    line-height: 1.15;
}
/* Part 1: compact label; part 2: main headline (Fraunces) */
.home-page .hero--immersive .hero-headline__kicker {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: clamp(0.9375rem, 0.65vw + 0.78rem, 1.1875rem);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary-600);
}
.home-page .hero--immersive .hero-quote {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(1.65rem, 3.1vw + 0.72rem, 2.75rem);
    font-weight: 700;
    font-style: italic;
    color: var(--primary-700);
    margin-top: 0;
    line-height: 1.18;
}
.home-page .hero--immersive .cta-group {
    justify-content: flex-start;
}
.home-page .hero--immersive .hero-demo {
    text-align: left !important;
}
/* Photo clip: % sizes vs .hero__sheet; bleeds past top-right, clipped by sheet overflow */
.home-page .hero__photo-clip {
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: 87.333%;
    height: auto;
    transform: translateX(11%);
    overflow: hidden;
    line-height: 0;
    text-align: right;
    /* Oval shifted down + taller vertically so more of the photo bottom stays visible */
    -webkit-clip-path: ellipse(52% 62% at 72% 46%);
    clip-path: ellipse(52% 62% at 72% 46%);
    pointer-events: none;
}
.home-page .hero__photo {
    /* Full source height fits sheet; width from aspect ratio; right-anchored, crop left only */
    height: 100%;
    width: auto;
    max-width: none;
    object-fit: scale-down;
    object-position: right center;
    display: block;
    margin-left: auto;
    /* Soft oval fade (matches clip-path ellipse) */
    -webkit-mask-image: radial-gradient(
        ellipse 52% 62% at 72% 46%,
        #000 0%,
        #000 72%,
        transparent 100%
    );
    mask-image: radial-gradient(
        ellipse 52% 62% at 72% 46%,
        #000 0%,
        #000 72%,
        transparent 100%
    );
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}
.home-page .pillars-section {
    padding: var(--spacing-sm) 0 var(--spacing-md);
    margin-top: 0;
}
.home-page .pillars-grid {
    display: grid;
    gap: var(--spacing-lg);
    grid-template-columns: 1fr;
}
.home-page .pillar-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 1.25rem;
    border: 2px solid var(--primary-200);
    padding: var(--spacing-md);
    text-align: center;
}
.home-page .pillar-card__body {
    padding: 0;
}
.home-page .pillar-card__body .feature-icon {
    margin-bottom: var(--spacing-sm);
}
.home-page .pillar-card__body h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.35rem;
    color: var(--primary-900);
    margin-bottom: 0.5rem;
}
.home-page .pillar-card__body p {
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}
.home-page .content-section--stories {
    overflow: visible;
    background: transparent;
    border: none;
    padding-left: 0;
    padding-right: 0;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}
.home-page .content-section--stories::after {
    display: none;
}
.home-page .story-list {
    display: flex;
    flex-direction: column;
    gap: clamp(2.5rem, 6vw, 4rem);
    margin-top: var(--spacing-lg);
}
.home-page .story-block__sheet {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    border-radius: var(--radius-xl, 1.5rem);
    border: 2px solid var(--primary-200);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 4px 20px rgb(var(--primary-900-rgb) / 0.08);
    padding: clamp(1.25rem, 2.5vw, 2rem);
    display: grid;
    grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
    gap: clamp(0.75rem, 2vw, 1.25rem);
    align-items: start;
}
.home-page .story-block--flip .story-block__sheet {
    grid-template-columns: minmax(0, 9fr) minmax(0, 11fr);
}
.home-page .story-block__copy {
    position: relative;
    z-index: 1;
    min-width: 0;
    max-width: 100%;
    grid-column: 1;
}
.home-page .story-block--flip .story-block__copy {
    grid-column: 2;
    grid-row: 1;
}
/* Photo zone ~45% sheet width; column fills sheet height so the oval can grow (less contain letterboxing) */
.home-page .story-block__oval-corner {
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 45%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    overflow: visible;
    pointer-events: none;
}
.home-page .story-block--flip .story-block__oval-corner {
    right: auto;
    left: 0;
    justify-content: flex-end;
    align-items: stretch;
}
/* Fills photo column height so contain scales the image larger; light bleed, ellipse weighted toward bottom */
.home-page .story-block__oval {
    position: relative;
    width: 100%;
    max-width: 100%;
    flex: 1 1 auto;
    min-height: clamp(300px, 46vw, 620px);
    overflow: visible;
    transform: translate(9%, 3%);
    -webkit-clip-path: ellipse(52% 52% at 62% 68%);
    clip-path: ellipse(52% 52% at 62% 68%);
}
.home-page .story-block--flip .story-block__oval {
    /* No positive X — that shifted the whole oval right and left empty band in the photo column */
    transform: translate(0, 3%);
    -webkit-clip-path: ellipse(52% 52% at 38% 68%);
    clip-path: ellipse(52% 52% at 38% 68%);
}
.home-page .story-block__photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    display: block;
    position: absolute;
    inset: 0;
    -webkit-mask-image: radial-gradient(
        ellipse 52% 52% at 62% 68%,
        #000 0%,
        #000 68%,
        transparent 100%
    );
    mask-image: radial-gradient(
        ellipse 52% 52% at 62% 68%,
        #000 0%,
        #000 68%,
        transparent 100%
    );
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}
.home-page .story-block--flip .story-block__photo {
    object-position: left bottom;
    -webkit-mask-image: radial-gradient(
        ellipse 52% 52% at 38% 68%,
        #000 0%,
        #000 68%,
        transparent 100%
    );
    mask-image: radial-gradient(
        ellipse 52% 52% at 38% 68%,
        #000 0%,
        #000 68%,
        transparent 100%
    );
}
.home-page .story-block__copy h3 {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    color: var(--primary-900);
    margin-bottom: var(--spacing-sm);
}
.home-page .story-block__copy p {
    color: var(--text-soft);
    font-size: 1.05rem;
    line-height: 1.65;
    margin: 0;
}
.home-page .content-section--ai {
    overflow: visible;
    background: transparent;
    border: none;
    padding-left: 0;
    padding-right: 0;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}
.home-page .content-section--ai::after {
    display: none;
}
@media (min-width: 768px) {
    .home-page .pillars-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .home-page .hero__sheet {
        padding-right: clamp(1.25rem, 3vw, 2.25rem);
    }
    .home-page .hero__inner {
        max-width: calc(100% * 19 / 30 - 1.25rem);
    }
}
/* Desktop/tablet stories: text sets box height; photo fills column top–bottom, side-anchored */
@media screen and (min-width: 769px) {
    .home-page .story-block__sheet {
        align-items: start;
    }
    .home-page .story-block__copy {
        grid-column: 1;
        grid-row: 1;
    }
    .home-page .story-block--flip .story-block__copy {
        grid-column: 2;
        grid-row: 1;
    }
    .home-page .story-block__oval-corner {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        width: 45%;
        height: auto;
        min-height: 0;
        overflow: hidden;
    }
    .home-page .story-block--flip .story-block__oval-corner {
        right: auto;
        left: 0;
    }
    .home-page .story-block__oval,
    .home-page .story-block--flip .story-block__oval {
        position: absolute;
        inset: 0;
        width: auto;
        height: auto;
        max-width: none;
        min-height: 0;
        flex: none;
        transform: none;
        overflow: hidden;
        display: block;
        -webkit-clip-path: none;
        clip-path: none;
    }
    .home-page .story-block__photo {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        max-width: none;
        min-height: 0;
        aspect-ratio: auto;
        object-fit: cover;
        object-position: right center;
        display: block;
        -webkit-mask-image: linear-gradient(
            to right,
            transparent 0%,
            rgba(0, 0, 0, 0.45) 2.5%,
            #000 5%,
            #000 100%
        );
        mask-image: linear-gradient(
            to right,
            transparent 0%,
            rgba(0, 0, 0, 0.45) 2.5%,
            #000 5%,
            #000 100%
        );
        -webkit-mask-size: 100% 100%;
        mask-size: 100% 100%;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
    }
    .home-page .story-block--flip .story-block__photo {
        object-position: left center;
        -webkit-mask-image: linear-gradient(
            to left,
            transparent 0%,
            rgba(0, 0, 0, 0.45) 2.5%,
            #000 5%,
            #000 100%
        );
        mask-image: linear-gradient(
            to left,
            transparent 0%,
            rgba(0, 0, 0, 0.45) 2.5%,
            #000 5%,
            #000 100%
        );
        -webkit-mask-size: 100% 100%;
        mask-size: 100% 100%;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
    }
}
/* Tablet / small desktop: hero corner tweak; story photo column width */
@media screen and (max-width: 1100px) and (min-width: 769px) {
    .home-page .story-block__oval-corner {
        width: min(46%, 52vw);
    }
    .home-page .hero__photo-clip {
        width: min(87.333%, 78vw);
        transform: translateX(8%);
    }
}
@media screen and (max-width: 768px) {
    .home-page .hero--immersive {
        text-align: left;
    }
    .home-page .hero__inner {
        order: 1;
        flex: 0 0 auto;
        max-width: 100%;
        margin-bottom: clamp(0.75rem, 3vw, 1.25rem);
    }
    .home-page .hero--immersive h1,
    .home-page .hero--immersive .hero-tagline {
        text-align: left !important;
    }
    .home-page .hero--immersive .cta-group {
        justify-content: flex-start !important;
    }
    /* Photos: full width, in flow at bottom; height follows image aspect ratio */
    .home-page .hero__sheet {
        --sheet-pad-x: clamp(1.25rem, 3vw, 2.25rem);
        display: flex;
        flex-direction: column;
        padding: var(--sheet-pad-x);
    }
    .home-page .hero__photo-clip {
        position: relative;
        z-index: 0;
        order: 2;
        flex: 0 0 auto;
        align-self: stretch;
        width: calc(100% + (2 * var(--sheet-pad-x)));
        max-width: none;
        margin: 0 calc(-1 * var(--sheet-pad-x)) calc(-1 * var(--sheet-pad-x));
        height: auto;
        transform: none;
        overflow: hidden;
        display: block;
        line-height: 0;
        -webkit-clip-path: none;
        clip-path: none;
        pointer-events: none;
    }
    .home-page .hero__photo {
        position: static;
        width: 100%;
        height: auto;
        max-width: none;
        object-fit: contain;
        object-position: center bottom;
        transform: none;
        display: block;
        -webkit-mask-image: linear-gradient(
            to bottom,
            transparent 0%,
            rgba(0, 0, 0, 0.45) 2.5%,
            #000 5%,
            #000 100%
        );
        mask-image: linear-gradient(
            to bottom,
            transparent 0%,
            rgba(0, 0, 0, 0.45) 2.5%,
            #000 5%,
            #000 100%
        );
        -webkit-mask-size: 100% 100%;
        mask-size: 100% 100%;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
    }
    .home-page .story-block__sheet {
        --sheet-pad-x: clamp(1.25rem, 2.5vw, 2rem);
        display: flex;
        flex-direction: column;
        grid-template-columns: 1fr;
        padding: var(--sheet-pad-x);
        min-height: 0;
    }
    .home-page .story-block__copy,
    .home-page .story-block--flip .story-block__copy {
        order: 1;
        flex: 0 0 auto;
        grid-column: auto;
        grid-row: auto;
        max-width: 100%;
        margin-bottom: clamp(0.75rem, 3vw, 1.25rem);
    }
    .home-page .story-block__oval-corner {
        position: relative;
        z-index: 0;
        order: 2;
        flex: 0 0 auto;
        align-self: stretch;
        width: calc(100% + (2 * var(--sheet-pad-x)));
        max-width: none;
        margin: 0 calc(-1 * var(--sheet-pad-x)) calc(-1 * var(--sheet-pad-x));
        height: auto;
        display: block;
        overflow: hidden;
        line-height: 0;
        pointer-events: none;
    }
    .home-page .story-block--flip .story-block__oval-corner {
        width: calc(100% + (2 * var(--sheet-pad-x)));
        margin-left: calc(-1 * var(--sheet-pad-x));
        margin-right: calc(-1 * var(--sheet-pad-x));
    }
    .home-page .story-block__oval,
    .home-page .story-block--flip .story-block__oval {
        position: relative;
        width: 100%;
        height: auto;
        max-width: none;
        min-height: 0;
        flex: none;
        transform: none;
        overflow: hidden;
        display: block;
        line-height: 0;
        -webkit-clip-path: none;
        clip-path: none;
    }
    .home-page .story-block__photo,
    .home-page .story-block--flip .story-block__photo {
        position: static;
        width: 100%;
        height: auto;
        max-width: none;
        object-fit: contain;
        object-position: center bottom;
        display: block;
        -webkit-mask-image: linear-gradient(
            to bottom,
            transparent 0%,
            rgba(0, 0, 0, 0.45) 2.5%,
            #000 5%,
            #000 100%
        );
        mask-image: linear-gradient(
            to bottom,
            transparent 0%,
            rgba(0, 0, 0, 0.45) 2.5%,
            #000 5%,
            #000 100%
        );
        -webkit-mask-size: 100% 100%;
        mask-size: 100% 100%;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
    }
}
/* Home: overrides that used to sit after the site stylesheet */
.home-page .content-section--ai {
    background: transparent !important;
    border: none !important;
}
.home-page .content-section--ai::after {
    display: none !important;
}
@media screen and (min-width: 769px) {
    .home-page .story-block__sheet {
        align-items: start !important;
    }
    .home-page .story-block__oval,
    .home-page .story-block--flip .story-block__oval {
        min-height: 0 !important;
    }
    .home-page .story-block__oval-corner {
        position: absolute !important;
        top: 0 !important;
        bottom: 0 !important;
        right: 0 !important;
        left: auto !important;
        width: 45% !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: hidden !important;
        transform: none !important;
        -webkit-clip-path: none !important;
        clip-path: none !important;
    }
    .home-page .story-block--flip .story-block__oval-corner {
        right: auto !important;
        left: 0 !important;
    }
    .home-page .story-block__oval,
    .home-page .story-block--flip .story-block__oval {
        position: absolute !important;
        inset: 0 !important;
        min-height: 0 !important;
        transform: none !important;
        -webkit-clip-path: none !important;
        clip-path: none !important;
    }
    .home-page .story-block__photo {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        aspect-ratio: auto !important;
        object-fit: cover !important;
        object-position: right center !important;
        -webkit-mask-image: linear-gradient(
            to right,
            transparent 0%,
            rgba(0, 0, 0, 0.45) 2.5%,
            #000 5%,
            #000 100%
        ) !important;
        mask-image: linear-gradient(
            to right,
            transparent 0%,
            rgba(0, 0, 0, 0.45) 2.5%,
            #000 5%,
            #000 100%
        ) !important;
        -webkit-mask-size: 100% 100% !important;
        mask-size: 100% 100% !important;
        -webkit-mask-repeat: no-repeat !important;
        mask-repeat: no-repeat !important;
    }
    .home-page .story-block--flip .story-block__photo {
        object-position: left center !important;
        -webkit-mask-image: linear-gradient(
            to left,
            transparent 0%,
            rgba(0, 0, 0, 0.45) 2.5%,
            #000 5%,
            #000 100%
        ) !important;
        mask-image: linear-gradient(
            to left,
            transparent 0%,
            rgba(0, 0, 0, 0.45) 2.5%,
            #000 5%,
            #000 100%
        ) !important;
    }
}
@media screen and (max-width: 768px) {
    .home-page .hero__sheet,
    .home-page .story-block__sheet {
        display: flex !important;
        flex-direction: column !important;
    }
    .home-page .hero__photo-clip,
    .home-page .story-block__oval-corner {
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        width: calc(100% + (2 * var(--sheet-pad-x))) !important;
        height: auto !important;
        min-height: 0 !important;
        transform: none !important;
        -webkit-clip-path: none !important;
        clip-path: none !important;
    }
    .home-page .story-block__oval,
    .home-page .story-block--flip .story-block__oval {
        min-height: 0 !important;
        height: auto !important;
    }
    .home-page .story-block__sheet {
        min-height: 0 !important;
    }
    .home-page .hero__photo,
    .home-page .story-block__photo,
    .home-page .story-block--flip .story-block__photo {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        max-width: none !important;
        object-fit: contain !important;
        object-position: center bottom !important;
        transform: none !important;
        -webkit-mask-image: linear-gradient(
            to bottom,
            transparent 0%,
            rgba(0, 0, 0, 0.45) 2.5%,
            #000 5%,
            #000 100%
        ) !important;
        mask-image: linear-gradient(
            to bottom,
            transparent 0%,
            rgba(0, 0, 0, 0.45) 2.5%,
            #000 5%,
            #000 100%
        ) !important;
        -webkit-mask-size: 100% 100% !important;
        mask-size: 100% 100% !important;
    }
}

/* ===== About page (.about-page) ===== */

.about-page .hero.hero--immersive {
    text-align: left;
    padding: 0;
}
.about-page .hero--immersive {
    position: relative;
    text-align: left;
    padding: 0;
    margin-bottom: var(--spacing-lg);
}
.about-page .hero__sheet {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl, 1.5rem);
    border: 2px solid var(--primary-200);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 4px 24px rgb(var(--primary-900-rgb) / 0.08);
    padding: clamp(1.25rem, 3vw, 2.25rem);
    padding-bottom: clamp(1.25rem, 2.5vw, 2rem);
}
.about-page .hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: auto;
    width: 50%;
    max-width: 50%;
    min-width: 0;
    padding-left: clamp(0.5rem, 1.5vw, 0.75rem);
    padding-right: 0;
}
.about-page .hero--immersive .hero-tagline {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
    color: var(--text-strong);
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.65;
}
.about-page .hero__story {
    margin-top: var(--spacing-md);
    max-width: 100%;
}
.about-page .hero__story p {
    font-size: 1.05rem;
    color: var(--text-soft);
    line-height: 1.65;
    margin: 0 0 var(--spacing-md);
}
.about-page .hero__story p:last-child {
    margin-bottom: 0;
}
.about-page .hero--immersive h1 {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    font-weight: 400;
    line-height: 1.15;
    margin: 0 0 0.5rem;
}
.about-page .hero--immersive .hero-headline__kicker {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: clamp(0.9375rem, 0.65vw + 0.78rem, 1.1875rem);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary-600);
}
.about-page .hero--immersive .hero-quote {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(1.65rem, 3.1vw + 0.72rem, 2.75rem);
    font-weight: 700;
    font-style: normal;
    color: var(--primary-700);
    margin-top: 0;
    line-height: 1.18;
}
/* 55% photo + 50% text → ~5% overlap (50%–55%); rounded + fade on the right edge only */
.about-page .hero__photo-clip {
    --about-photo-edge-radius: clamp(1rem, 2vw, 1.75rem);
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    right: auto;
    bottom: 0;
    width: 55%;
    height: auto;
    transform: none;
    overflow: hidden;
    line-height: 0;
    text-align: left;
    border-radius: 0 var(--about-photo-edge-radius) var(--about-photo-edge-radius) 0;
    pointer-events: none;
}
.about-page .hero__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 42% center;
    display: block;
    margin: 0;
    border-radius: 0 var(--about-photo-edge-radius) var(--about-photo-edge-radius) 0;
    -webkit-mask-image: linear-gradient(
        to right,
        #000 0%,
        #000 68%,
        rgba(0, 0, 0, 0.55) 82%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        #000 0%,
        #000 68%,
        rgba(0, 0, 0, 0.55) 82%,
        transparent 100%
    );
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}
@media (min-width: 768px) {
    .about-page .hero__sheet {
        padding-right: clamp(1.25rem, 3vw, 2.25rem);
    }
    .about-page .hero__inner {
        width: 50%;
        max-width: 50%;
    }
    .about-page .hero--immersive .hero-tagline {
        font-size: 1.125rem;
    }
}
@media screen and (max-width: 1100px) and (min-width: 769px) {
    .about-page .hero__photo-clip {
        width: 55%;
    }
}
@media screen and (max-width: 768px) {
    .about-page .hero--immersive {
        text-align: left;
    }
    /* width, display, position, mask etc. are set with !important in the about overrides below */
    .about-page .hero__inner {
        order: 1;
        flex: 0 0 auto;
        align-self: stretch;
        padding-left: 0;
        margin-bottom: clamp(0.75rem, 3vw, 1.25rem);
    }
    .about-page .hero--immersive h1,
    .about-page .hero--immersive .hero-tagline,
    .about-page .hero__story {
        text-align: left !important;
    }
    .about-page .hero__story {
        max-width: 100%;
    }
    .about-page .hero__sheet {
        --sheet-pad-x: clamp(1.25rem, 3vw, 2.25rem);
        padding: var(--sheet-pad-x);
    }
    .about-page .hero__photo-clip {
        order: 2;
        z-index: 0;
        flex: 0 0 auto;
        align-self: stretch;
        max-width: none;
        margin: 0 calc(-1 * var(--sheet-pad-x)) calc(-1 * var(--sheet-pad-x));
        overflow: hidden;
        display: block;
        line-height: 0;
        pointer-events: none;
    }
    .about-page .hero__photo {
        max-width: none;
        display: block;
        margin-left: 0;
        -webkit-mask-size: 100% 100%;
        mask-size: 100% 100%;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
    }
}
/* About: overrides that used to sit after the site stylesheet */
@media screen and (max-width: 768px) {
    .about-page .hero__sheet {
        display: flex !important;
        flex-direction: column !important;
    }
    .about-page .hero__inner {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
    }
    .about-page .hero__photo-clip {
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        width: calc(100% + (2 * var(--sheet-pad-x))) !important;
        height: auto !important;
        transform: none !important;
        border-radius: 0 !important;
        -webkit-clip-path: none !important;
        clip-path: none !important;
    }
    .about-page .hero__photo {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        object-position: center bottom !important;
        transform: none !important;
        border-radius: 0 !important;
        -webkit-mask-image: linear-gradient(
            to bottom,
            transparent 0%,
            rgba(0, 0, 0, 0.45) 2.5%,
            #000 5%,
            #000 100%
        ) !important;
        mask-image: linear-gradient(
            to bottom,
            transparent 0%,
            rgba(0, 0, 0, 0.45) 2.5%,
            #000 5%,
            #000 100%
        ) !important;
    }
}

/* ===== Hero without a photo: themed gradient in the photo slot, same size and shape as the photo ===== */

.hero__photo-clip--placeholder {
    background:
        radial-gradient(circle at 30% 25%, rgb(var(--primary-50-rgb) / 0.55), transparent 55%),
        linear-gradient(160deg, var(--primary-200) 0%, var(--primary-400) 55%, var(--primary-600) 100%);
    -webkit-mask-image: linear-gradient(
        to right,
        #000 0%,
        #000 68%,
        rgba(0, 0, 0, 0.55) 82%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        #000 0%,
        #000 68%,
        rgba(0, 0, 0, 0.55) 82%,
        transparent 100%
    );
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.home-page .hero__photo-clip--placeholder {
    -webkit-mask-image: radial-gradient(ellipse 52% 62% at 72% 46%, #000 0%, #000 72%, transparent 100%);
    mask-image: radial-gradient(ellipse 52% 62% at 72% 46%, #000 0%, #000 72%, transparent 100%);
}

@media (min-width: 769px) {
    /* The absolute photo slot cannot size the sheet, so the sheet takes the shape the full photo
       (1086 x 1448) would have in the slot: slot width 55% (about) / 87.333% (home) of the sheet.
       Longer text still grows the sheet (aspect-ratio keeps min-height: auto). */
    .about-page .hero__sheet:has(> .hero__photo-clip--placeholder) {
        aspect-ratio: 1086 / 796.4;
    }

    .home-page .hero__sheet:has(> .hero__photo-clip--placeholder) {
        aspect-ratio: 1086 / 1264.6;
    }
}

@media screen and (max-width: 768px) {
    /* In flow below the text, where the photo's height follows its 1086 x 1448 aspect ratio */
    .hero__photo-clip--placeholder,
    .home-page .hero__photo-clip--placeholder {
        aspect-ratio: 1086 / 1448;
        -webkit-mask-image: linear-gradient(
            to bottom,
            transparent 0%,
            rgba(0, 0, 0, 0.45) 2.5%,
            #000 5%,
            #000 100%
        );
        mask-image: linear-gradient(
            to bottom,
            transparent 0%,
            rgba(0, 0, 0, 0.45) 2.5%,
            #000 5%,
            #000 100%
        );
    }
}

/* ===== Contact page (.contact-page) ===== */

.contact-page .hero {
    padding: 2rem 0 1rem;
}

.contact-page .contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--primary-700);
}

.contact-page .contact-form input,
.contact-page .contact-form textarea {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}

.contact-page .contact-form textarea {
    min-height: 160px;
    resize: vertical;
}

.contact-page .contact-form .field {
    margin-bottom: 1rem;
}

.contact-page .contact-form .hint {
    font-size: 0.85rem;
    color: var(--text-soft);
    margin-top: 0.25rem;
}

.contact-page .contact-form button[type="submit"] {
    margin-top: 0.5rem;
}

.contact-page #contact-status {
    margin-top: 1rem;
    min-height: 1.5rem;
}

.contact-page #contact-status.error {
    color: #b91c1c;
}

.contact-page #contact-status.success {
    color: var(--primary-600);
}

.contact-page .recaptcha-note {
    font-size: 0.8rem;
    color: var(--text-soft);
    margin-top: 1.25rem;
}

/* ===== Story photo anchored to the top (portrait screenshots whose header must stay visible) ===== */
/* Outranks every .home-page story photo rule, including the !important overrides, at all widths. */

.home-page .story-block .story-block__photo.story-block__photo--top {
    object-position: center top !important;
}

@media screen and (min-width: 769px) {
    .home-page .story-block .story-block__photo.story-block__photo--top {
        object-position: right top !important;
    }

    .home-page .story-block.story-block--flip .story-block__photo.story-block__photo--top {
        object-position: left top !important;
    }
}
