/* ==========================================================================
   Fevoff Industries — Premium theme
   Palette drawn from the brand mark: sand bag, ink check, brick-red OFF.
   Display: Syne · Body/UI: Instrument Sans
   ========================================================================== */

:root {
    --ground: #F6EFDF;
    --surface: #FDF9EF;
    --surface-2: #EFE5CC;
    --border: #E2D5B4;
    --ink: #1A160E;
    --ink-soft: #2A2416;
    --text: #1A160E;
    --muted: #6B6353;
    --accent: #B33A26;
    --accent-dark: #932E1F;
    --gold: #C9A057;
    --sand-on-ink: #F6EFDF;
    --muted-on-ink: #B9AE95;

    --font-display: 'Sora', 'Instrument Sans', sans-serif;
    --font-body: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;

    --radius: 16px;
    --radius-sm: 10px;
    --container: 1180px;
    --section-pad: clamp(4.5rem, 10vw, 8.5rem);
    --shadow-card: 0 1px 2px rgba(26, 22, 14, 0.05), 0 10px 30px -12px rgba(26, 22, 14, 0.18);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--ground);
    -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
}

::selection { background: var(--accent); color: var(--ground); }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: var(--sand-on-ink);
    padding: 0.6rem 1.2rem;
    z-index: 200;
    border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Layout primitives ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.section { padding-block: var(--section-pad); }
.section--tight { padding-block: calc(var(--section-pad) * 0.62); }

.section--ink {
    background: var(--ink);
    color: var(--sand-on-ink);
}
.section--ink .section-head p,
.section--ink .muted { color: var(--muted-on-ink); }

/* Light panel — quiet alternative to the dark band */
.section--panel {
    background: var(--surface);
    border-block: 1px solid var(--border);
}

/* ---------- Typography ---------- */
h1, h2, h3, .display {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6.2vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
h3 { font-size: 1.28rem; line-height: 1.25; }
h4, h5 { font-family: var(--font-body); font-weight: 600; }

.lead {
    font-size: clamp(1.08rem, 1.6vw, 1.25rem);
    line-height: 1.6;
    color: var(--muted);
    max-width: 38em;
}
.section--ink .lead { color: var(--muted-on-ink); }

.muted { color: var(--muted); }

.accent-word { color: var(--accent); }

/* Eyebrow with the logo's speed-line motif */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.1rem;
}
.eyebrow::before {
    content: "";
    width: 34px;
    height: 8px;
    flex: none;
    background:
        linear-gradient(var(--accent), var(--accent)) 0 0 / 22px 2px,
        linear-gradient(var(--gold), var(--gold)) 6px 3px / 28px 2px,
        linear-gradient(var(--accent), var(--accent)) 12px 6px / 22px 2px;
    background-repeat: no-repeat;
    border-radius: 2px;
}
.section--ink .eyebrow { color: var(--gold); }

.section-head { max-width: 46em; margin-bottom: clamp(2.2rem, 5vw, 3.6rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p { margin-top: 0.9rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1.7rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.98rem;
    line-height: 1.2;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
        background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn svg { width: 17px; height: 17px; flex: none; transition: transform 0.25s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }

.btn--solid {
    background: var(--accent);
    color: #FFF6E8;
}
.btn--solid:hover {
    background: #9A2F1D;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -10px rgba(179, 58, 38, 0.55);
}

.btn--ghost {
    border-color: currentColor;
    color: var(--ink);
    background: transparent;
}
.btn--ghost:hover { background: var(--ink); color: var(--sand-on-ink); transform: translateY(-2px); }

.section--ink .btn--ghost, .cta-band .btn--ghost { color: var(--sand-on-ink); }
.section--ink .btn--ghost:hover, .cta-band .btn--ghost:hover { background: var(--sand-on-ink); color: var(--ink); }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: var(--accent);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s;
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   trap the fixed-position mobile menu inside the header's box */
.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(246, 239, 223, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.site-header.is-scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 8px 30px -18px rgba(26, 22, 14, 0.35);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 76px;
}

.site-header__logo img { width: 96px; height: auto; }

.site-nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.5vw, 2.2rem); }
.site-nav a {
    font-weight: 500;
    font-size: 0.98rem;
    color: var(--ink-soft);
    padding: 0.35rem 0;
    position: relative;
}
.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-out);
}
.site-nav a:hover::after, .site-nav a.active::after { transform: scaleX(1); }
.site-nav a.active { color: var(--accent); }

.site-header__cta { flex: none; }

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    width: 44px;
    height: 44px;
    cursor: pointer;
    position: relative;
    z-index: 120;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    margin: 5px auto;
    border-radius: 2px;
    transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
    .site-nav {
        position: fixed;
        inset: 0;
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        background: var(--ink);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s var(--ease-out), visibility 0.3s;
        z-index: 110;
    }
    .site-nav a { color: var(--sand-on-ink); font-family: var(--font-display); font-size: 1.6rem; }
    .site-nav.is-open { opacity: 1; visibility: visible; }
    .nav-toggle { display: block; }
    body.nav-locked { overflow: hidden; }
    body.nav-locked .nav-toggle span { background: var(--sand-on-ink); }
    .site-header__cta { display: none; }
}

/* ---------- Hero (light & airy) ---------- */
.hero {
    background:
        radial-gradient(56rem 32rem at 86% 12%, rgba(201, 160, 87, 0.20), transparent 62%),
        radial-gradient(44rem 28rem at 4% 96%, rgba(179, 58, 38, 0.09), transparent 65%),
        #FBF6EA;
    color: var(--text);
    position: relative;
    overflow: hidden;
}
/* Faint dot grid, fading out toward the edges */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(26, 22, 14, 0.10) 1px, transparent 1.5px);
    background-size: 30px 30px;
    -webkit-mask-image: radial-gradient(75rem 42rem at 24% 36%, black, transparent 72%);
    mask-image: radial-gradient(75rem 42rem at 24% 36%, black, transparent 72%);
}
/* Hairline gold edge at the bottom of every hero */
.hero::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--gold) 0%, rgba(201, 160, 87, 0.15) 55%, transparent 100%);
    opacity: 0.7;
}
/* Ambient speed-field canvas (injected by premium.js) */
.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.hero__inner {
    position: relative;
    z-index: 1;
    padding-block: clamp(5rem, 12vw, 9.5rem);
    max-width: 54rem;
}
.hero h1 { color: var(--text); margin-bottom: 1.4rem; }
.hero .accent-word {
    background: linear-gradient(100deg, #C2431F 0%, var(--accent) 50%, #A8823D 135%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero .lead { color: var(--muted); margin-bottom: 2.4rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero--sub .hero__inner { padding-block: clamp(4rem, 8vw, 6rem); }
.hero--sub h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }

/* Orchestrated entrance: content rises gently on page load */
@keyframes hero-rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}
html.js .hero__inner > * { animation: hero-rise 0.6s var(--ease-out) backwards; }
html.js .hero__inner > :nth-child(1) { animation-delay: 0.05s; }
html.js .hero__inner > :nth-child(2) { animation-delay: 0.16s; }
html.js .hero__inner > :nth-child(3) { animation-delay: 0.27s; }
html.js .hero__inner > :nth-child(4) { animation-delay: 0.38s; }

/* Speed lines — the trails from the logo, drawn large */
.speedlines {
    position: absolute;
    pointer-events: none;
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
    width: min(520px, 48vw);
    opacity: 0.9;
}
.speedlines span {
    display: block;
    height: clamp(14px, 2vw, 22px);
    border-radius: 999px;
    margin-bottom: clamp(14px, 2.2vw, 24px);
}
.speedlines span:nth-child(1) { width: 78%; background: var(--gold); opacity: 0.4; margin-left: auto; }
.speedlines span:nth-child(2) { width: 100%; background: var(--accent); opacity: 0.5; }
.speedlines span:nth-child(3) { width: 56%; background: var(--ink); opacity: 0.1; margin-left: auto; }
.speedlines span:nth-child(4) { width: 84%; background: var(--gold); opacity: 0.3; }

/* Dark surfaces (CTA band) keep the original muted mix */
.cta-band .speedlines span:nth-child(1) { opacity: 0.28; }
.cta-band .speedlines span:nth-child(3) { background: var(--sand-on-ink); opacity: 0.18; }
.cta-band .speedlines span:nth-child(4) { opacity: 0.22; }

/* Speed lines sweep in from the right, then breathe slowly */
@keyframes line-sweep {
    from { opacity: 0; transform: translateX(50px); }
}
@keyframes line-breathe {
    50% { filter: brightness(1.45); }
}
html.js .hero .speedlines span,
html.js .cta-band .speedlines span {
    animation: line-sweep 1s var(--ease-out) backwards, line-breathe 6s ease-in-out infinite;
}
html.js .speedlines span:nth-child(1) { animation-delay: 0.25s, 0s; }
html.js .speedlines span:nth-child(2) { animation-delay: 0.4s, 1.4s; }
html.js .speedlines span:nth-child(3) { animation-delay: 0.55s, 2.8s; }
html.js .speedlines span:nth-child(4) { animation-delay: 0.7s, 4.2s; }

@media (max-width: 720px) {
    .speedlines { width: 70vw; right: -30vw; opacity: 0.35; }
}

/* Breadcrumbs (inner-page heroes) */
.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 1.6rem;
}
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-current] { color: var(--text); }

/* ---------- Marquee (quiet strip) ---------- */
.marquee {
    background: var(--surface);
    color: var(--muted);
    overflow: hidden;
    padding-block: 0.85rem;
    border-block: 1px solid var(--border);
}
.marquee__track {
    display: flex;
    gap: 3rem;
    width: max-content;
    animation: marquee 45s linear infinite;
}
.marquee__track span {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 3rem;
}
.marquee__track span::after { content: "✦"; font-size: 0.8em; color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) {
    .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.9rem 1.7rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
    border-color: var(--gold);
}
.card::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease-out);
}
.card:hover::after { transform: scaleX(1); }

.card h3 { margin-bottom: 0.55rem; }
.card p { color: var(--muted); font-size: 0.98rem; }

.card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--ground);
    border: 1px solid var(--border);
    color: var(--accent);
    margin-bottom: 1.25rem;
}
.card__icon svg { width: 26px; height: 26px; }

/* Plain feature (no card chrome) */
.feature h3 { margin-bottom: 0.5rem; }
.feature p { color: var(--muted); font-size: 0.98rem; max-width: 30em; }
.feature__num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--accent);
    display: block;
    margin-bottom: 0.7rem;
    letter-spacing: 0.08em;
}

/* ---------- Work / portfolio ---------- */
.work-card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.work-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.work-card__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}
.work-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.6s var(--ease-out);
}
.work-card:hover .work-card__media img { transform: scale(1.04); }
.work-card__body { padding: 1.3rem 1.5rem 1.5rem; }
.work-card__body h3 { font-size: 1.12rem; margin-bottom: 0.3rem; }
.work-card__body p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Testimonials ---------- */
.quote-slider { position: relative; }
.quote-slide { display: none; }
.quote-slide.is-active { display: block; animation: fadeUp 0.5s var(--ease-out); }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

.quote-slide blockquote {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.35rem, 2.6vw, 1.9rem);
    line-height: 1.35;
    max-width: 26em;
    margin-bottom: 1.4rem;
}
.quote-slide blockquote::before { content: "“"; color: var(--gold); }
.quote-slide blockquote::after { content: "”"; color: var(--gold); }
.quote-slide .quote-body { color: var(--muted); max-width: 40em; margin-bottom: 1.6rem; }
.quote-cite { font-style: normal; }
.quote-cite strong { display: block; color: var(--text); }
.quote-cite span { color: var(--accent); font-size: 0.9rem; }

.quote-nav { display: flex; gap: 0.7rem; margin-top: 2.2rem; }
.quote-nav button {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--text);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.quote-nav button:hover { background: var(--ink); color: var(--sand-on-ink); border-color: var(--ink); }
.quote-nav svg { width: 18px; height: 18px; }

/* ---------- Stats ---------- */
.stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    border-top: 1px solid var(--border);
    padding-top: 2.4rem;
}
@media (max-width: 760px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat-row .stat b {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    display: block;
    color: var(--accent);
}
.stat-row .stat span { color: var(--muted); font-size: 0.95rem; }

/* ---------- CTA band ---------- */
.cta-band {
    background:
        radial-gradient(34rem 20rem at 88% 0%, rgba(201, 160, 87, 0.16), transparent 62%),
        radial-gradient(28rem 18rem at 2% 100%, rgba(179, 58, 38, 0.2), transparent 65%),
        var(--ink);
    color: var(--sand-on-ink);
    border-radius: calc(var(--radius) + 8px);
    padding: clamp(2.6rem, 6vw, 4.5rem);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.cta-band h2 { max-width: 15em; }
.cta-band p { color: var(--muted-on-ink); margin-top: 0.8rem; max-width: 34em; }
.cta-band .speedlines { width: 300px; right: -40px; opacity: 0.4; }

/* ---------- Blog ---------- */
.post-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.post-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.post-card__meta { display: flex; align-items: center; gap: 0.7rem; font-size: 0.85rem; color: var(--muted); }
.post-card__meta .badge {
    background: var(--ground);
    border: 1px solid var(--border);
    color: var(--accent);
    padding: 0.15rem 0.7rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.78rem;
}
.post-card h3 { font-size: 1.12rem; }
.post-card h3 a:hover { color: var(--accent); }
.post-card .link-arrow { margin-top: auto; font-size: 0.92rem; }

/* Pagination */
.pagination-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}
.pagination-link {
    display: grid;
    place-items: center;
    min-width: 44px;
    height: 44px;
    padding-inline: 0.6rem;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 999px;
    transition: all 0.25s var(--ease-out);
}
.pagination-link svg { width: 16px; height: 16px; }
.pagination-item.active .pagination-link {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFF3E0;
    box-shadow: 0 6px 16px -6px rgba(179, 58, 38, 0.5);
}
.pagination-item:not(.active):not(.disabled) .pagination-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}
.pagination-item.disabled .pagination-link { opacity: 0.4; cursor: not-allowed; }

/* Article (blog details) */
.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: clamp(2rem, 5vw, 4rem);
}
@media (max-width: 980px) { .article-layout { grid-template-columns: 1fr; } }

.article__hero-img {
    aspect-ratio: 16 / 8;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 1.8rem;
    background: var(--surface-2);
}
.article__hero-img img { width: 100%; height: 100%; object-fit: cover; }

.article__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.4rem;
    margin-bottom: 1.8rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
    color: var(--muted);
}
.article__meta img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }

.article-body { font-size: 1.08rem; line-height: 1.8; }
.article-body p { margin-bottom: 1.2rem; }
.article-body h2, .article-body h3 { margin: 2rem 0 0.9rem; }
.article-body img { border-radius: var(--radius-sm); margin-block: 1.4rem; }
.article-body ul, .article-body ol { padding-left: 1.4rem; margin-bottom: 1.2rem; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote {
    border-left: 3px solid var(--gold);
    padding-left: 1.2rem;
    color: var(--muted);
    margin-block: 1.4rem;
}

.sidebar-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem;
    position: sticky;
    top: 100px;
}
.sidebar-box h2 {
    font-size: 1.05rem;
    padding-bottom: 0.9rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid var(--border);
}
.recent-post {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    margin-bottom: 1.2rem;
}
.recent-post:last-of-type { margin-bottom: 0; }
.recent-post img {
    width: 70px;
    height: 70px;
    flex: none;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--surface-2);
}
.recent-post time { font-size: 0.8rem; color: var(--muted); display: block; margin-bottom: 0.2rem; }
.recent-post a.title { font-weight: 500; font-size: 0.94rem; line-height: 1.4; display: block; }
.recent-post a.title:hover { color: var(--accent); }

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}
@media (max-width: 980px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-channel {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    padding-block: 1.3rem;
    border-bottom: 1px solid var(--border);
}
.contact-channel:first-child { padding-top: 0; }
.contact-channel .card__icon { margin: 0; flex: none; }
.contact-channel h3 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; margin-bottom: 0.2rem; }
.contact-channel p { color: var(--muted); font-size: 0.96rem; }
.contact-channel a:hover { color: var(--accent); }

.form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(1.6rem, 4vw, 2.6rem);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid .full { grid-column: 1 / -1; }

.field label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}
.field input, .field textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--ground);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(179, 58, 38, 0.14);
}
.field textarea { min-height: 150px; resize: vertical; }

.form-alert {
    border-radius: var(--radius-sm);
    padding: 0.9rem 1.2rem;
    margin-bottom: 1.4rem;
    font-size: 0.95rem;
    border: 1px solid;
}
.form-alert--success { background: #EAF3E4; border-color: #B9D3A8; color: #33551F; }
.form-alert--error { background: #F9E8E4; border-color: #E4B4A8; color: #7C2717; }
.form-alert ul { list-style: disc; padding-left: 1.2rem; }

.map-frame {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    line-height: 0;
}
.map-frame iframe { width: 100%; height: 420px; border: 0; }

/* ---------- Team ---------- */
.team-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.team-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: top;
    background: var(--surface-2);
}
.team-card__body { padding: 1.2rem 1rem 1.4rem; }
.team-card__body h3 { font-size: 1.08rem; margin-bottom: 0.2rem; }
.team-card__body p { color: var(--muted); font-size: 0.88rem; }

/* ---------- Process (numbered — a real sequence) ---------- */
.process { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
@media (max-width: 980px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .process { grid-template-columns: 1fr; } }
.process li { counter-increment: step; padding-top: 1.2rem; border-top: 2px solid var(--border); position: relative; }
.process li::before {
    content: "0" counter(step);
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--accent);
    display: block;
    margin-bottom: 0.6rem;
}
.process h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.process p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--ink);
    color: var(--muted-on-ink);
    margin-top: var(--section-pad);
}
.site-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 2.5rem;
    padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
}
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

.site-footer__brand img { width: 110px; margin-bottom: 1.2rem; }
.site-footer__brand p { font-size: 0.96rem; max-width: 26em; }

.site-footer h2 {
    font-size: 0.85rem;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sand-on-ink);
    margin-bottom: 1.1rem;
}
.site-footer li { margin-bottom: 0.6rem; font-size: 0.96rem; }
.site-footer a:hover { color: var(--gold); }
.site-footer address { font-style: normal; font-size: 0.96rem; line-height: 1.7; }

.footer-social { display: flex; gap: 0.7rem; margin-top: 1.4rem; }
.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(246, 239, 223, 0.25);
    display: grid;
    place-items: center;
    color: var(--sand-on-ink);
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: #FFF3E0; }
.footer-social svg { width: 18px; height: 18px; }

.site-footer__bar {
    border-top: 1px solid rgba(246, 239, 223, 0.14);
    padding-block: 1.4rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.8rem;
    font-size: 0.88rem;
}

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed;
    right: 1.4rem;
    bottom: 1.4rem;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--sand-on-ink);
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
    z-index: 90;
    box-shadow: var(--shadow-card);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top svg { width: 18px; height: 18px; }

/* ---------- Scroll reveal (hidden state only when JS is running) ---------- */
html.js .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
    transition-delay: var(--reveal-delay, 0s);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .marquee__track { animation: none; flex-wrap: wrap; }
    html.js .reveal { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
