:root {
    --color-accent: #E30A17;
    --color-accent-dark: #b70711;
    --color-text: #111111;
    --color-muted: #555555;
    --color-line: #e7e7e7;
    --color-soft: #f7f7f7;
    --color-white: #ffffff;
    --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.08);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--color-white);
    color: var(--color-text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

body.nav-open {
    overflow: hidden;
}

a {
    color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(227, 10, 23, 0.35);
    outline-offset: 3px;
}

img,
svg {
    display: block;
    max-width: 100%;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.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;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    transform: translateY(-150%);
    background: var(--color-text);
    color: var(--color-white);
    padding: 10px 14px;
    border-radius: var(--radius);
}

.skip-link:focus {
    transform: translateY(0);
}

.page-loader {
    display: none;
}

.js .page-loader {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.96);
    transition: opacity 180ms ease, visibility 180ms ease;
}

.js.loaded .page-loader {
    visibility: hidden;
    opacity: 0;
}

.loader-symbol {
    width: 92px;
    color: var(--color-accent);
    animation: loader-step 720ms ease-in-out infinite alternate;
}

.loader-symbol svg {
    fill: currentColor;
}

.loader-symbol path:last-child {
    fill: none;
    stroke: currentColor;
    stroke-width: 4;
    stroke-linecap: round;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--color-line);
    backdrop-filter: blur(12px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 18px;
}

.brand,
.footer-brand,
.admin-brand {
    display: inline-flex;
    align-items: center;
    color: var(--color-text);
    text-decoration: none;
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    max-width: 220px;
    color: var(--color-muted);
    font-size: 12px;
    line-height: 1.3;
}

.brand strong {
    font-size: 18px;
    letter-spacing: 0;
}

.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-white);
    cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
    width: 20px;
    height: 2px;
    margin: 0 auto;
    background: var(--color-text);
}

.primary-nav {
    position: fixed;
    inset: 76px 0 auto 0;
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-line);
    box-shadow: var(--shadow-soft);
}

.nav-open .primary-nav {
    display: flex;
}

.primary-nav a {
    min-height: 44px;
    padding: 10px 12px;
    border-radius: var(--radius);
    color: var(--color-muted);
    font-weight: 700;
    text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a.is-active {
    background: #fff1f2;
    color: var(--color-accent);
}

.hero-section {
    padding: 56px 0 38px;
    border-bottom: 1px solid var(--color-line);
}

.hero-grid,
.about-layout,
.contact-layout,
.content-columns,
.split-section,
.cta-box,
.footer-grid {
    display: grid;
    gap: 28px;
}

.hero-copy h1,
.page-hero h1 {
    margin: 0 0 18px;
    font-size: 44px;
    line-height: 1.08;
}

.hero-copy p,
.page-hero p {
    max-width: 660px;
}

.hero-lead {
    color: var(--color-text);
    font-size: 20px;
    font-weight: 700;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--color-accent);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.button-primary {
    background: var(--color-accent);
    color: var(--color-white);
}

.button-primary:hover {
    background: var(--color-accent-dark);
}

.button-secondary {
    border-color: var(--color-line);
    background: var(--color-white);
    color: var(--color-text);
}

.button-light {
    background: var(--color-white);
    color: var(--color-accent);
}

.hero-visual {
    min-height: 360px;
}

.portrait-placeholder,
.card-image {
    display: grid;
    place-items: center;
    min-height: 320px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(227, 10, 23, 0.08), transparent 45%),
        repeating-linear-gradient(135deg, #fafafa, #fafafa 12px, #f0f0f0 12px, #f0f0f0 13px);
    color: var(--color-muted);
    text-align: center;
}

.portrait-placeholder span {
    display: grid;
    width: 120px;
    height: 120px;
    margin: 0 auto 14px;
    place-items: center;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    color: var(--color-accent);
    font-size: 34px;
    font-weight: 800;
}

.portrait-placeholder small {
    display: block;
    max-width: 220px;
    margin: 0 auto;
    color: var(--color-muted);
    font-weight: 700;
}

.portrait-placeholder.has-image {
    display: block;
    padding: 0;
    overflow: hidden;
}

.portrait-placeholder img,
.detail-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portrait-placeholder.page {
    min-height: 420px;
}

.section {
    padding: 56px 0;
}

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

.section-heading {
    max-width: 700px;
    margin-bottom: 24px;
}

.section-heading.compact {
    margin-bottom: 16px;
}

.section-heading h2,
.split-section h2,
.cta-box h2,
.prose h2,
.contact-panel h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.2;
}

.card-grid {
    display: grid;
    gap: 18px;
}

.content-card {
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-white);
}

.card-image {
    min-height: 190px;
    border: 0;
    border-bottom: 1px solid var(--color-line);
    border-radius: 0;
    overflow: hidden;
}

.card-image img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.placeholder-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid rgba(227, 10, 23, 0.32);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.76);
    color: var(--color-accent);
    font-weight: 800;
}

.card-body {
    padding: 20px;
}

.card-body h2,
.card-body h3,
.list-item h2,
.list-item h3 {
    margin: 8px 0 10px;
    font-size: 21px;
    line-height: 1.3;
}

time {
    color: var(--color-accent);
    font-size: 14px;
    font-weight: 800;
}

.stack-list {
    display: grid;
    gap: 14px;
}

.stack-list.wide {
    max-width: 840px;
}

.list-item,
.contact-panel,
.contact-form {
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-white);
    padding: 22px;
}

.text-link {
    color: var(--color-accent);
    font-weight: 800;
}

.file-placeholder {
    display: inline-flex;
    margin-top: 8px;
    padding: 6px 10px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    color: var(--color-muted);
    font-size: 14px;
}

.page-hero {
    padding: 56px 0 44px;
    background: var(--color-soft);
    border-bottom: 1px solid var(--color-line);
}

.prose p {
    margin: 10px 0 24px;
}

.blog-detail {
    max-width: 820px;
    color: var(--color-text);
    white-space: normal;
}

.detail-media {
    margin: 0 0 28px;
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    aspect-ratio: 16 / 9;
}

.contact-list,
.footer-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.contact-list li,
.footer-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--color-line);
}

.contact-layout.single {
    max-width: 760px;
}

.form-row {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

label {
    font-weight: 800;
}

input,
textarea {
    width: 100%;
    border: 1px solid #d5d5d5;
    border-radius: var(--radius);
    padding: 12px 14px;
    color: var(--color-text);
    font: inherit;
}

textarea {
    resize: vertical;
}

.honeypot-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-message {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: var(--radius);
    font-weight: 700;
}

.form-message p {
    margin: 0;
}

.form-message p + p {
    margin-top: 6px;
}

.form-message.success {
    border: 1px solid rgba(20, 128, 76, 0.28);
    background: #ecfdf5;
    color: #106342;
}

.form-message.error {
    border: 1px solid rgba(227, 10, 23, 0.28);
    background: #fff1f2;
    color: #8f0710;
}

.video-section {
    padding: 34px 0 58px;
}

.home-video-section {
    margin-top: -12px;
}

.video-container {
    width: 100%;
    max-width: 960px;
    margin-inline: auto;
}

.content-video {
    margin: 28px auto;
}

.video-frame {
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: #111111;
    box-shadow: 0 10px 26px rgba(17, 17, 17, 0.08);
    aspect-ratio: 16 / 9;
}

.video-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.consent-row label {
    display: grid;
    grid-template-columns: 20px 1fr;
    align-items: start;
    gap: 10px;
    color: var(--color-muted);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.55;
}

.consent-row input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--color-accent);
}

.consent-row a {
    color: var(--color-accent);
    text-decoration-thickness: 2px;
}

.legal-content {
    max-width: 860px;
}

.legal-content h2,
.legal-content h3 {
    margin-top: 28px;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content ul {
    padding-left: 22px;
}

.legal-content li {
    margin: 8px 0;
    color: var(--color-muted);
}

.legal-content blockquote {
    margin: 18px 0;
    padding: 16px 18px;
    border-left: 4px solid var(--color-accent);
    background: var(--color-soft);
    color: var(--color-text);
    font-weight: 700;
}

.cta-section {
    padding: 56px 0;
    background: var(--color-accent);
    color: var(--color-white);
}

.cta-box {
    align-items: center;
}

.cta-box .eyebrow {
    color: var(--color-white);
}

.site-footer {
    padding: 42px 0 24px;
    background: #111111;
    color: var(--color-white);
}

.site-footer p,
.site-footer small,
.site-footer li {
    color: #d5d5d5;
}

.site-footer h2 {
    margin: 0 0 10px;
    font-size: 18px;
}

.footer-brand {
    color: var(--color-white);
    font-weight: 800;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.social-links a {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    color: var(--color-white);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.social-links a:hover,
.social-links a:focus-visible {
    border-color: var(--color-white);
    background: rgba(255, 255, 255, 0.12);
}

.social-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-policy {
    display: inline-block;
    color: var(--color-white);
}

.footer-bottom .footer-policy {
    margin-top: 8px;
    color: var(--color-white);
}

.footer-bottom {
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.setup-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
    background: var(--color-soft);
}

.setup-panel {
    width: min(100%, 520px);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-white);
    padding: 28px;
}

.setup-panel h1 {
    margin: 0 0 18px;
}

.setup-credentials {
    display: grid;
    gap: 8px;
    margin: 18px 0;
}

.setup-credentials dt {
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.setup-credentials dd {
    margin: 0 0 8px;
    font-weight: 800;
}

@keyframes loader-step {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-6px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .loader-symbol {
        animation: none;
    }
}

@media (min-width: 720px) {
    .card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .content-columns,
    .split-section,
    .contact-layout,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (min-width: 960px) {
    .nav-toggle {
        display: none;
    }

    .primary-nav {
        position: static;
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 0;
        border: 0;
        box-shadow: none;
    }

    .primary-nav a {
        min-height: auto;
        padding: 8px 9px;
        font-size: 14px;
    }

    .hero-section {
        padding: 78px 0 60px;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
        align-items: center;
    }

    .hero-copy h1,
    .page-hero h1 {
        font-size: 58px;
    }

    .about-layout {
        grid-template-columns: 360px minmax(0, 1fr);
        align-items: start;
    }

    .cta-box {
        grid-template-columns: minmax(0, 1fr) auto;
    }
}

@media (max-width: 420px) {
    .video-section {
        padding: 24px 0 42px;
    }

    .video-frame {
        border-radius: 6px;
    }

    .hero-copy h1,
    .page-hero h1 {
        font-size: 36px;
    }

    .section-heading h2,
    .split-section h2,
    .cta-box h2,
    .prose h2,
    .contact-panel h2 {
        font-size: 26px;
    }

    .brand small {
        max-width: 160px;
    }
}
