/* =========================================================================
   FTSC Consulting — design system
   Phoenix/flame brand: warm gradient accents on near-black + warm paper.
   ========================================================================= */

:root {
    /* Ink / neutrals */
    --ink:        #0d0d10;
    --ink-soft:   #16161b;
    --ink-2:      #1f1f26;
    --ash:        #3a3a44;
    --smoke:      #6a6a76;
    --mist:       #c9c6c0;
    --line:       #e7e3dc;
    --paper:      #faf8f4;
    --paper-2:    #ffffff;
    --paper-warm: #f3efe8;

    /* Flame gradient (matches the logo) */
    --flame-1: #ffce4a;
    --flame-2: #ff9d2e;
    --flame-3: #ff6a1a;
    --flame-4: #e8431f;
    --flame-5: #c81e16;
    --flame: linear-gradient(135deg, var(--flame-1) 0%, var(--flame-3) 48%, var(--flame-4) 78%, var(--flame-5) 100%);
    --flame-soft: linear-gradient(135deg, #ffb24a, #ff5a1f);

    --ember: #ff6a1a;
    --ember-ink: #b8350f;

    /* Type */
    --font-display: 'Archivo', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Shape */
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 28px;
    --shadow-sm: 0 1px 2px rgba(13,13,16,.06), 0 4px 14px rgba(13,13,16,.05);
    --shadow-md: 0 10px 30px rgba(13,13,16,.10);
    --shadow-flame: 0 14px 40px rgba(232,67,31,.30);

    --container: 1160px;
    --gutter: clamp(20px, 5vw, 48px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--ember-ink); text-decoration: none; }
a:hover { color: var(--flame-4); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; color: var(--ink); }
ul { padding: 0; list-style: none; }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 200;
    background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
    --btn-bg: var(--ink);
    display: inline-flex; align-items: center; gap: .55em;
    font-family: var(--font-display); font-weight: 700; font-size: .98rem;
    letter-spacing: .01em;
    padding: .85em 1.5em; border-radius: 999px; border: 0; cursor: pointer;
    background: var(--btn-bg); color: #fff; text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); color: #fff; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-flame { background-image: var(--flame); color: #1a0a04; box-shadow: var(--shadow-flame); }
.btn-flame:hover { color: #1a0a04; box-shadow: 0 18px 48px rgba(232,67,31,.42); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }

.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: transparent; }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { color: var(--ink); }

.btn-lg { font-size: 1.05rem; padding: 1em 1.8em; }

.link-button { background: none; border: 0; color: inherit; cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 16px; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 38px; width: auto; }

.primary-nav { display: flex; align-items: center; gap: 6px; }
.primary-nav a {
    font-family: var(--font-display); font-weight: 600; font-size: .96rem;
    color: var(--ink); padding: 10px 14px; border-radius: 999px;
    transition: background .15s ease, color .15s ease;
}
.primary-nav a:hover { background: rgba(13,13,16,.06); }
.primary-nav a.is-active { color: var(--flame-4); }
.primary-nav .nav-cta { background: var(--ink); color: #fff; margin-left: 8px; }
.primary-nav .nav-cta:hover { background-image: var(--flame); color: #1a0a04; }

/* Bold header: transparent over the dark hero with a white logo + white nav at the top,
   transitioning to a frosted light bar with the color logo + dark nav once scrolled. */
.site-header:not(.is-scrolled) .brand-logo--light { display: none; }
.site-header:not(.is-scrolled) .brand-logo--dark { display: block !important; }
.site-header:not(.is-scrolled) .primary-nav a { color: #f4f1ec; }
.site-header:not(.is-scrolled) .primary-nav a.is-active { color: var(--flame-2); }
.site-header:not(.is-scrolled) .primary-nav a:hover { background: rgba(255,255,255,.10); }
.site-header:not(.is-scrolled) .primary-nav .nav-cta { background: #fff; color: var(--ink); }
.site-header:not(.is-scrolled) .primary-nav .nav-cta:hover { background-image: var(--flame); color: #1a0a04; }
.site-header:not(.is-scrolled) .nav-toggle span { background: #fff; }

.site-header.is-scrolled {
    background: rgba(250,248,244,.85);
    backdrop-filter: saturate(180%) blur(14px);
    box-shadow: 0 1px 0 var(--line);
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background: radial-gradient(120% 100% at 80% -10%, #2a1409 0%, var(--ink) 42%, #08080a 100%);
    color: #f4f1ec;
    padding-top: clamp(108px, 13vw, 150px);
    padding-bottom: clamp(80px, 12vw, 140px);
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background:
      radial-gradient(40% 55% at 88% 18%, rgba(255,106,26,.40), transparent 70%),
      radial-gradient(34% 40% at 78% 8%, rgba(255,206,74,.30), transparent 70%);
    pointer-events: none;
}
.hero::after {
    content: ""; position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23ffffff' fill-opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px, 5vw, 64px); align-items: center; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: var(--font-display); font-weight: 700; font-size: .78rem;
    text-transform: uppercase; letter-spacing: .16em;
    color: var(--flame-1);
    padding: 7px 14px; border-radius: 999px;
    border: 1px solid rgba(255,206,74,.30); background: rgba(255,138,0,.08);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--flame-3); box-shadow: 0 0 12px var(--flame-3); }

.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 900; color: #fff; margin-top: 22px; }
.hero h1 .flame-text { background: var(--flame); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(1.06rem, 2vw, 1.28rem); color: #cdc8c0; max-width: 36ch; margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-meta { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hero-meta .stat .n { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; background: var(--flame); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-meta .stat .l { font-size: .85rem; color: #a8a39b; }

.hero-visual { position: relative; display: grid; place-items: center; }
.hero-orb { display: none; }
.hero-mark {
    width: min(300px, 70%);
    filter: drop-shadow(0 0 60px rgba(255,138,0,.45)) drop-shadow(0 0 24px rgba(255,206,74,.30)) drop-shadow(0 18px 40px rgba(232,67,31,.30));
    animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(-8px); } 50% { transform: translateY(10px); } }

/* ---------- Section scaffolding ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
:where(section, [id]) { scroll-margin-top: 88px; }
.section.alt { background: var(--paper-warm); }
.section.ink { background: var(--ink); color: #ece8e1; }
.section-head { max-width: 64ch; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .kicker {
    font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .15em; text-transform: uppercase;
    color: var(--flame-4); display: inline-block; margin-bottom: 14px;
}
.section.ink .section-head .kicker { color: var(--flame-2); }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--smoke); font-size: 1.12rem; margin-top: 16px; }
.section.ink .section-head h2 { color: #fff; }
.section.ink .section-head p { color: #b3aea6; }

/* ---------- Trust strip ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.trust .container { display: flex; flex-direction: column; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 30px; text-align: center; }
.trust p { font-family: var(--font-display); font-weight: 600; color: var(--ash); font-size: .96rem; }
.trust ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 26px; }
.trust li { font-weight: 600; color: var(--smoke); display: flex; align-items: center; gap: 9px; font-size: .95rem; }
.trust li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background-image: var(--flame); }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.card {
    position: relative; background: var(--paper-2); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 30px; overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    display: flex; flex-direction: column;
}
.card::before {
    content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
    background-image: var(--flame); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card .icon {
    width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
    background: linear-gradient(135deg, rgba(255,157,46,.16), rgba(232,67,31,.14));
    color: var(--flame-4); margin-bottom: 20px;
}
.card .icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.3rem; }
.card p { color: var(--smoke); margin-top: 10px; font-size: 1rem; }
.card .card-link { margin-top: auto; padding-top: 18px; font-family: var(--font-display); font-weight: 700; color: var(--ember-ink); display: inline-flex; align-items: center; gap: 7px; }
.card .card-link .arrow { transition: transform .2s ease; }
.card:hover .card-link .arrow { transform: translateX(4px); }

.badge-soon {
    align-self: flex-start; margin-top: 14px;
    font-family: var(--font-display); font-weight: 700; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
    color: var(--ember-ink); background: rgba(255,106,26,.12); border: 1px solid rgba(255,106,26,.28);
    padding: 4px 10px; border-radius: 999px;
}

/* ---------- Approach / steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; counter-reset: step; }
.step { padding: 28px; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.section.ink .step h3 { color: #fff; }
.step .num {
    counter-increment: step; font-family: var(--font-display); font-weight: 900; font-size: 1.1rem;
    width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
    background-image: var(--flame); color: #1a0a04;
}
.step .num::before { content: "0" counter(step); }
.step h3 { font-size: 1.18rem; }
.step p { color: #b3aea6; margin-top: 10px; font-size: .98rem; }

/* ---------- Feature split (about teaser / featured work) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split .media { border-radius: var(--radius-lg); overflow: hidden; position: relative; min-height: 320px;
    background: radial-gradient(120% 120% at 20% 10%, #2a1409, var(--ink)); display: grid; place-items: center; box-shadow: var(--shadow-md); }
.split .media .mark { width: 46%; filter: drop-shadow(0 16px 36px rgba(232,67,31,.4)); }
.split .media .glow { position: absolute; inset: 0; background: radial-gradient(45% 45% at 70% 30%, rgba(255,106,26,.45), transparent 70%); }
.feature-list { display: grid; gap: 16px; margin-top: 24px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .tick { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background-image: var(--flame); color: #1a0a04; margin-top: 2px; }
.feature-list strong { font-family: var(--font-display); }
.feature-list span { color: var(--smoke); }

/* ---------- Featured work card ---------- */
.work-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-sm); }
.work-card .tag { font-family: var(--font-display); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .74rem; color: var(--flame-4); }
.work-card h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: 12px; }
.work-card p { color: var(--smoke); margin-top: 14px; max-width: 60ch; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 72px); background-image: var(--flame); color: #1a0a04; }
.cta-band::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 280px; height: 280px; background: rgba(255,255,255,.18); border-radius: 50%; }
.cta-band .inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); color: #190a03; max-width: 18ch; }
.cta-band p { color: #4a1c08; font-weight: 500; margin-top: 10px; max-width: 42ch; }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: radial-gradient(120% 120% at 85% -20%, #2a1409, var(--ink) 55%, #09090b); color: #f1ede6; padding-top: clamp(104px, 10vw, 132px); padding-bottom: clamp(48px, 7vw, 80px); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(36% 50% at 85% 10%, rgba(255,106,26,.35), transparent 70%); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); color: #fff; }
.page-hero h1 .flame-text { background: var(--flame); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero p { color: #c5c0b8; font-size: 1.15rem; margin-top: 16px; max-width: 60ch; }
.breadcrumb { font-size: .85rem; color: #9a948b; margin-bottom: 16px; }
.breadcrumb a { color: var(--flame-2); }

/* ---------- Service detail blocks ---------- */
.svc-block { display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding: clamp(28px, 4vw, 40px) 0; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.svc-block:first-child { border-top: 0; }
.svc-block .svc-icon { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(255,157,46,.18), rgba(232,67,31,.14)); color: var(--flame-4); }
.svc-block .svc-icon svg { width: 30px; height: 30px; }
.svc-block h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.svc-block p { color: var(--smoke); margin-top: 12px; max-width: 68ch; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.svc-tags span { font-size: .86rem; font-weight: 600; color: var(--ash); background: var(--paper-warm); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }

/* ---------- Values grid ---------- */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.value { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper-2); }
.value .v-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background-image: var(--flame); color: #1a0a04; margin-bottom: 16px; }
.value h3 { font-size: 1.2rem; }
.value p { color: var(--smoke); margin-top: 8px; font-size: .98rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 56px); align-items: start; }
.contact-aside h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.contact-aside p { color: var(--smoke); margin-top: 14px; }
.contact-points { display: grid; gap: 18px; margin-top: 28px; }
.contact-points li { display: flex; gap: 14px; align-items: flex-start; }
.contact-points .c-icon { flex: none; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--paper-warm); border: 1px solid var(--line); color: var(--flame-4); }
.contact-points strong { font-family: var(--font-display); display: block; }
.contact-points a, .contact-points span { color: var(--smoke); }

.form-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
.field .req { color: var(--flame-4); }
.field input, .field select, .field textarea {
    width: 100%; font: inherit; color: var(--ink);
    padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    background: var(--paper); transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--flame-3); box-shadow: 0 0 0 4px rgba(255,106,26,.14); background: #fff;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: .85rem; color: var(--smoke); margin-top: 4px; }

/* Checkable service chips */
.field-legend { display: block; font-family: var(--font-display); font-weight: 600; font-size: .92rem; margin-bottom: 10px; }
.svc-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.svc-check { position: relative; cursor: pointer; }
.svc-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.svc-chip {
    display: flex; align-items: center; gap: 11px;
    padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    background: var(--paper); font-weight: 600; font-size: .92rem; color: var(--ash);
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.svc-chip::before {
    content: ""; flex: none; width: 19px; height: 19px; border-radius: 6px;
    border: 1.5px solid var(--mist); display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 900; color: #1a0a04; transition: background .15s ease, border-color .15s ease;
}
.svc-check:hover .svc-chip { border-color: var(--smoke); }
.svc-check input:checked + .svc-chip { border-color: var(--flame-3); background: rgba(255, 106, 26, .07); color: var(--ember-ink); }
.svc-check input:checked + .svc-chip::before { content: "\2713"; background-image: var(--flame); border-color: transparent; }
.svc-check input:focus-visible + .svc-chip { outline: none; box-shadow: 0 0 0 4px rgba(255, 106, 26, .14); border-color: var(--flame-3); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 20px; font-size: .96rem; }
.alert-ok { background: #e9f7ee; border: 1px solid #b8e3c6; color: #1f6b3a; }
.alert-err { background: #fdecec; border: 1px solid #f3c2c2; color: #a32424; }

/* ---------- Legal / prose ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 40px; }
.prose h3 { font-size: 1.18rem; margin-top: 26px; }
.prose p, .prose li { color: var(--ash); margin-top: 14px; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose li { margin-top: 8px; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.legal-meta { color: var(--smoke); font-size: .92rem; }
.toc { background: var(--paper-warm); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 36px; }
.toc h2 { font-size: 1rem; margin: 0 0 12px; text-transform: uppercase; letter-spacing: .08em; }
.toc ul { columns: 2; column-gap: 28px; }
.toc a { color: var(--ember-ink); font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b9b4ab; padding-top: clamp(56px, 8vw, 84px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer-brand img { height: 34px; width: auto; }
.footer-brand p { margin-top: 18px; max-width: 34ch; font-size: .96rem; color: #8f8a82; }
.footer-col h3 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.footer-col a { display: block; color: #b9b4ab; padding: 5px 0; font-size: .96rem; }
.footer-col a:hover { color: var(--flame-2); }
.footer-contact .footer-cta { margin-top: 14px; display: inline-flex; padding: 11px 18px; border-radius: 999px; background-image: var(--flame); color: #1a0a04; font-family: var(--font-display); font-weight: 700; }
.footer-contact .footer-cta:hover { color: #1a0a04; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 24px; border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom p { font-size: .88rem; color: #807b73; }
.footer-bottom .link-button { color: #807b73; font-size: .88rem; }
.footer-bottom .link-button:hover { color: var(--flame-2); }

/* ---------- Consent banner ---------- */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; padding: 18px; display: flex; justify-content: center; }
.consent[hidden] { display: none; }
.consent-card { background: var(--ink); color: #e7e3dc; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 22px 26px; max-width: 640px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.consent-card h2 { color: #fff; font-size: 1.15rem; }
.consent-card p { font-size: .92rem; color: #b3aea6; margin-top: 8px; }
.consent-card p a { color: var(--flame-2); }
.consent-actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.consent-actions .btn { font-size: .9rem; }
.consent-actions .btn-ghost { color: #e7e3dc; border-color: rgba(255,255,255,.25); }
.consent-actions .btn-ghost:hover { color: #fff; border-color: #fff; }

/* ---------- Admin ---------- */
.admin-body { background: var(--paper-warm); min-height: 100vh; }
.admin-topbar { background: var(--ink); color: #fff; }
.admin-topbar .container { display: flex; align-items: center; justify-content: space-between; padding-block: 14px; }
.admin-topbar .brand img { height: 30px; filter: brightness(0) invert(1); }
.admin-topbar nav { display: flex; gap: 6px; align-items: center; }
.admin-topbar nav a { color: #c9c4bc; padding: 8px 14px; border-radius: 8px; font-family: var(--font-display); font-weight: 600; font-size: .92rem; }
.admin-topbar nav a:hover, .admin-topbar nav a.is-active { background: rgba(255,255,255,.10); color: #fff; }
.admin-topbar nav .logout { color: var(--flame-2); }
.admin-main { padding-block: 36px; }
.admin-h1 { font-size: 1.7rem; margin-bottom: 4px; }
.admin-sub { color: var(--smoke); margin-bottom: 28px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; margin-bottom: 30px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.stat-card .k { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--smoke); font-weight: 600; }
.stat-card .v { font-family: var(--font-display); font-weight: 800; font-size: 2rem; margin-top: 6px; }
.stat-card .v .accent { background: var(--flame); -webkit-background-clip: text; background-clip: text; color: transparent; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.panel h2 { font-size: 1.15rem; margin-bottom: 16px; }

.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 200px 1fr 56px; gap: 12px; align-items: center; font-size: .92rem; }
.bar-row .label { color: var(--ash); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { background: var(--paper-warm); border-radius: 6px; height: 12px; overflow: hidden; }
.bar-fill { height: 100%; background-image: var(--flame); border-radius: 6px; }
.bar-row .count { text-align: right; font-weight: 600; color: var(--ash); }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); font-size: .94rem; vertical-align: top; }
.table th { font-family: var(--font-display); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--smoke); }
.table tr.unread td { background: rgba(255,106,26,.04); }
.table tr:hover td { background: var(--paper); }
.table a.row-link { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.pill { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; font-family: var(--font-display); letter-spacing: .03em; }
.pill.new { background: rgba(255,106,26,.14); color: var(--ember-ink); }
.pill.read { background: #eceae5; color: var(--ash); }
.pill.replied { background: #e9f7ee; color: #1f6b3a; }
.pill.archived { background: #ecebe8; color: var(--smoke); }

.msg-meta { display: grid; gap: 10px; margin-bottom: 22px; }
.msg-meta .row { display: flex; gap: 10px; }
.msg-meta .row .lbl { width: 110px; color: var(--smoke); font-weight: 600; flex: none; }
.msg-body { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; white-space: pre-wrap; line-height: 1.7; }
.thread-reply { border-left: 3px solid var(--flame-3); padding: 6px 0 6px 18px; margin-top: 18px; }
.thread-reply .when { font-size: .82rem; color: var(--smoke); }

.login-wrap { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(120% 120% at 80% -10%, #2a1409, var(--ink) 55%, #08080a); padding: 20px; }
.login-card { background: #fff; border-radius: var(--radius-lg); padding: 40px; width: 100%; max-width: 410px; box-shadow: var(--shadow-md); }
.login-card .brand { display: grid; place-items: center; margin-bottom: 22px; }
.login-card .brand img { height: 40px; }
.login-card h1 { font-size: 1.4rem; text-align: center; }
.login-card p.sub { text-align: center; color: var(--smoke); margin: 6px 0 24px; font-size: .94rem; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-s { margin-top: 14px; } .mt-m { margin-top: 28px; } .mt-l { margin-top: 48px; }
.flame-rule { height: 4px; width: 64px; border-radius: 4px; background-image: var(--flame); }
.muted { color: var(--smoke); }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .split { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .bar-row { grid-template-columns: 130px 1fr 44px; }
}
@media (max-width: 820px) {
    .dash-cols { grid-template-columns: 1fr !important; }
}
@media (max-width: 720px) {
    .nav-toggle { display: flex; }
    .primary-nav {
        position: fixed; top: 0; right: 0; left: auto;
        height: 100vh; height: 100dvh; width: min(320px, 84vw);
        background: var(--ink); flex-direction: column; align-items: stretch; justify-content: flex-start;
        padding: 90px 24px 24px; gap: 6px; transform: translateX(100%); transition: transform .3s ease;
        z-index: 90; overflow-y: auto;
    }
    .primary-nav.open { transform: translateX(0); box-shadow: -20px 0 60px rgba(0,0,0,.4); }
    .primary-nav a { color: #f1ede6 !important; font-size: 1.05rem; padding: 14px 16px; }
    .primary-nav a:hover { background: rgba(255,255,255,.08) !important; }
    .primary-nav .nav-cta { background-image: var(--flame); color: #1a0a04 !important; margin-top: 10px; text-align: center; }
    .nav-open { overflow: hidden; }
    .field-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-band .inner { flex-direction: column; align-items: flex-start; }
    .table th:nth-child(3), .table td:nth-child(3) { display: none; }
    .toc ul { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; scroll-behavior: auto !important; }
}
