/* ============================================================
   consovenio2 - "storm" layout, DARK (eywo.cz-inspired)
   Loaded after site.css. Everything is scoped under body.storm-dark
   (set on the homepage only) so inner pages keep the original light
   design untouched.

   Near-black ground, FLUID viewport-scaled type (grows/shrinks with
   the window like eywo), full-width content bounded only by
   proportional padding, lime keyword highlights, mono micro-labels,
   hairline structure, subtle scroll reveal.
   ============================================================ */

.storm-dark {
    --st-bg: #0E0E11;
    --st-bg2: #15151A;      /* tint bands */
    --st-ink: #F3F3F5;
    --st-grey: #8C8C94;      /* secondary voice */
    --st-mute: #9E9EA6;
    --st-line: #26262C;      /* hairlines on dark */
    --st-accent: #D5E04D;    /* brand lime keyword / accent */
    --st-pad: clamp(20px, 5.5vw, 160px);   /* proportional side padding */

    /* flip the site.css semantic palette so the legacy (inner-page)
       components render dark automatically. Dark-surface components that
       use var(--ink) as a background are pinned dark separately below. */
    --ink: #F3F3F5;
    --ink-soft: #C5C5CC;
    --mute: #8C8C94;
    --paper: #0E0E11;
    --card: #16161B;
    --line: #26262C;
    --line-soft: #1E1E24;
    --lime-wash: #23261A;
    --lime-deep: #C3D63F;
    --mono: "Plex Mono", ui-monospace, monospace;

    background: var(--st-bg);
    color: var(--st-ink);
}

/* dark-surface pins: these used background:var(--ink) (dark in the light
   theme) and would invert now that --ink is light. */
.storm-dark .spotlight,
.storm-dark .quote-result,
.storm-dark .cta-band { background: #16161B; }
.storm-dark .site-footer { background: #0B0B0E; }
.storm-dark .tile.ink { background: #2A2A30; border-color: #2A2A30; }
.storm-dark .alert.err { background: #2A1618; border-color: #7A3A40; color: #F1C9CD; }

.storm-dark ::selection { background: var(--st-accent); color: #14140A; }

/* full-width content: no hard max, only proportional padding */
.storm-dark .st-wrap {
    max-width: none;
    margin-inline: auto;
    padding-inline: var(--st-pad);
}

.storm-dark .key { color: var(--st-accent); }

/* mono micro-label (fluid) */
.storm-dark .st-eyebrow {
    font-family: "Plex Mono", ui-monospace, monospace;
    text-transform: uppercase;
    letter-spacing: .2em;
    font-size: clamp(.72rem, .82vw, 1.1rem);
    color: var(--st-grey);
    margin: 0 0 clamp(18px, 1.6vw, 34px);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.storm-dark .st-eyebrow::before {
    content: "";
    width: .55em; height: .55em; border-radius: 2px;
    background: var(--st-accent);
    flex: none;
}

/* ---------- header (dark, wordmark + hamburger) ---------- */
.storm-dark .site-header {
    background: var(--st-bg);
    backdrop-filter: none;              /* a filtered ancestor would break the fixed overlay */
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid var(--st-line);
}
.storm-dark .site-header .wrap {
    max-width: none;
    padding-inline: var(--st-pad);
    min-height: clamp(72px, 6vw, 104px);
}
.storm-dark .brand img { filter: brightness(0) invert(1); height: clamp(26px, 2vw, 40px); }
.storm-dark .nav-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--st-ink);
    font-family: "Plex Mono", ui-monospace, monospace;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-weight: 500;
    font-size: clamp(.8rem, .8vw, 1.05rem);
    padding: 8px 4px;
}
.storm-dark .nav-toggle::after { content: "Menu"; }
.storm-dark .nav-toggle[aria-expanded="true"]::after { content: "Close"; }

/* full-screen overlay menu */
.storm-dark .site-nav {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    background: var(--st-bg);
    padding: clamp(60px, 12vh, 140px) var(--st-pad);
    font-family: var(--display);
}
.storm-dark .site-nav.open { display: flex; }
.storm-dark .site-nav a:not(.btn) {
    font-weight: 500;
    font-size: clamp(2rem, 7vw, 6rem);
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: var(--st-ink);
    text-decoration: none;
    padding: 6px 0;
    border: none;
    transition: color .15s;
}
.storm-dark .site-nav a:not(.btn):hover { color: var(--st-accent); }
.storm-dark .site-nav .btn { margin-top: 34px; font-size: 1.05rem; padding: 14px 28px; }
.storm-dark .site-nav::before {
    content: "";
    position: absolute;
    top: clamp(30px, 4.4vh, 46px);
    left: var(--st-pad);
    width: clamp(140px, 12vw, 200px); height: clamp(24px, 2vw, 32px);
    background: var(--st-accent);
    -webkit-mask: url(/img/conso_logo.svg) left center / contain no-repeat;
    mask: url(/img/conso_logo.svg) left center / contain no-repeat;
}

/* ---------- oversized fluid hero ---------- */
.storm-dark .st-hero { padding: clamp(64px, 12vh, 190px) 0 clamp(44px, 8vh, 130px); }
.storm-dark .st-hero h1 {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(2.5rem, 8.6vw, 11rem);   /* eywo-like ~9vw, keeps scaling wide */
    line-height: 1.02;
    letter-spacing: -0.035em;
    margin: 0;
    max-width: 18ch;                            /* measure cap keeps line length sane */
    text-wrap: balance;
    color: var(--st-ink);
}
.storm-dark .st-hero-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 18px clamp(28px, 3vw, 60px);
    align-items: center;
    margin-top: clamp(34px, 4vw, 68px);
}
.storm-dark .st-hero-foot .lede {
    color: var(--st-mute);
    font-size: clamp(1.05rem, 1.4vw, 1.7rem);
    max-width: 46ch;
    margin: 0;
    line-height: 1.5;
}
.storm-dark .st-cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* buttons on dark */
.storm-dark .btn-solid { background: var(--st-accent); color: #14140A; border-color: var(--st-accent); }
.storm-dark .btn-solid:hover { background: #E0EA61; border-color: #E0EA61; }
.storm-dark .btn-ghost { color: var(--st-ink); border-color: #3A3A42; background: transparent; }
.storm-dark .btn-ghost:hover { border-color: var(--st-ink); background: transparent; }
.storm-dark .btn-lime { background: var(--st-accent); color: #14140A; border-color: var(--st-accent); }
.storm-dark .btn { font-size: clamp(.95rem, 1vw, 1.2rem); }

/* ---------- section shell ---------- */
.storm-dark .st-band { padding: clamp(54px, 8vw, 150px) 0; }
.storm-dark .st-band.tint { background: var(--st-bg2); border-block: 1px solid var(--st-line); }

.storm-dark .st-head {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) 3fr;
    gap: clamp(20px, 4vw, 90px);
    padding-top: clamp(22px, 2vw, 40px);
    border-top: 1px solid var(--st-line);
}
.storm-dark .st-head .st-statement {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(1.5rem, 3.4vw, 4rem);
    line-height: 1.13;
    letter-spacing: -0.02em;
    color: var(--st-ink);
    margin: 0;
    text-wrap: balance;
}

/* ---------- services: large stacked rows ---------- */
.storm-dark .st-services { margin-top: clamp(34px, 5vw, 90px); display: flex; flex-direction: column; }
.storm-dark .st-svc {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) 3fr;
    gap: clamp(20px, 4vw, 90px);
    padding: clamp(32px, 4vw, 68px) 0;
    border-top: 1px solid var(--st-line);
    text-decoration: none;
    color: inherit;
}
.storm-dark .st-svc:last-child { border-bottom: 1px solid var(--st-line); }
.storm-dark .st-svc .st-idx {
    font-family: "Plex Mono", ui-monospace, monospace;
    font-weight: 500;
    font-size: clamp(1rem, 1.1vw, 1.4rem);
    color: var(--st-accent);
    letter-spacing: .1em;
}
.storm-dark .st-svc h3 {
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(1.5rem, 3.4vw, 4rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 .4em;
    color: var(--st-ink);
}
.storm-dark .st-svc p { color: var(--st-mute); font-size: clamp(1.05rem, 1.3vw, 1.5rem); margin: 0 0 1em; max-width: 56ch; line-height: 1.55; }
.storm-dark .st-svc .more {
    font-family: "Plex Mono", ui-monospace, monospace;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: clamp(.78rem, .85vw, 1rem);
    color: var(--st-ink);
    display: inline-flex;
    gap: 8px;
    transition: gap .15s, color .15s;
}
.storm-dark .st-svc:hover .more { gap: 14px; color: var(--st-accent); }
.storm-dark .st-svc:hover h3 { color: var(--st-accent); }

/* ---------- work grid ---------- */
.storm-dark .st-work {
    margin-top: clamp(34px, 5vw, 90px);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-left: 1px solid var(--st-line);
    border-top: 1px solid var(--st-line);
}
.storm-dark .st-cell {
    border-right: 1px solid var(--st-line);
    border-bottom: 1px solid var(--st-line);
    padding: clamp(24px, 2.4vw, 52px);
    min-height: clamp(240px, 20vw, 400px);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: background .18s;
}
.storm-dark .st-cell:hover { background: #1B1B21; }
.storm-dark .st-cell .st-ind {
    font-family: "Plex Mono", ui-monospace, monospace;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: clamp(.74rem, .8vw, 1rem);
    color: var(--st-grey);
    margin: 0 0 auto;
}
.storm-dark .st-cell h3 {
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(1.35rem, 1.9vw, 2.4rem);
    line-height: 1.14;
    letter-spacing: -0.02em;
    margin: clamp(20px, 2vw, 40px) 0 .4em;
    color: var(--st-ink);
}
.storm-dark .st-cell p { color: var(--st-mute); font-size: clamp(1rem, 1.15vw, 1.35rem); margin: 0 0 1em; line-height: 1.5; }
.storm-dark .st-cell .more {
    font-family: "Plex Mono", ui-monospace, monospace;
    text-transform: uppercase; letter-spacing: .12em;
    font-size: clamp(.76rem, .82vw, 1rem); color: var(--st-ink);
}
.storm-dark .st-cell:hover .more { color: var(--st-accent); }

/* ---------- facts ---------- */
.storm-dark .st-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(24px, 3vw, 64px);
    margin-top: clamp(34px, 5vw, 90px);
}
.storm-dark .st-fact b {
    display: block;
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(2.2rem, 5vw, 6rem);
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: clamp(10px, 1vw, 20px);
    color: var(--st-accent);
}
.storm-dark .st-fact span { color: var(--st-mute); font-size: clamp(1rem, 1.15vw, 1.35rem); line-height: 1.45; display: block; max-width: 24ch; }

/* ---------- tech tags ---------- */
.storm-dark .st-tech { display: flex; flex-wrap: wrap; gap: clamp(10px, .8vw, 16px); margin-top: clamp(30px, 4vw, 70px); padding: 0; list-style: none; }
.storm-dark .st-tech li {
    font-family: "Plex Mono", ui-monospace, monospace;
    font-size: clamp(.86rem, 1vw, 1.2rem);
    letter-spacing: .02em;
    color: var(--st-ink);
    border: 1px solid var(--st-line);
    border-radius: 999px;
    padding: .6em 1.1em;
}

/* ---------- closing CTA ---------- */
.storm-dark .st-close { padding: clamp(70px, 11vw, 200px) 0; border-top: 1px solid var(--st-line); }
.storm-dark .st-close h2 {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(2rem, 6.2vw, 8rem);
    line-height: 1.03;
    letter-spacing: -0.03em;
    margin: 0 0 .5em;
    color: var(--st-ink);
}
.storm-dark .st-close .btn { padding: 15px 30px; }

/* ---------- subtle scroll reveal ---------- */
.storm-dark .st-reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.storm-dark .st-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .storm-dark .st-reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   INNER PAGES - full-width storm layout over the legacy markup
   (services, work, about, contact, quote, legal). Driven entirely
   by these overrides; the page .cshtml keeps its original markup.
   ============================================================ */

/* full-width container, proportional padding */
.storm-dark .wrap { max-width: none; padding-inline: var(--st-pad); }

/* page head -> big fluid, left-aligned */
.storm-dark .section-head {
    max-width: none;
    margin-inline: 0;
    text-align: left;
    margin-bottom: clamp(30px, 4vw, 64px);
}
.storm-dark .section-head h1 {
    font-size: clamp(2.5rem, 7vw, 8.5rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
    max-width: 20ch;
}
.storm-dark .section-head h2 {
    font-size: clamp(1.8rem, 4vw, 4rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
    max-width: 24ch;
}
.storm-dark .section-head p {
    color: var(--st-mute);
    font-size: clamp(1.1rem, 1.5vw, 1.6rem);
    max-width: 64ch;
    line-height: 1.5;
    margin-top: clamp(16px, 2vw, 32px);
}

/* eyebrow -> storm mono micro-label */
.storm-dark .eyebrow {
    justify-content: flex-start;
    font-family: "Plex Mono", ui-monospace, monospace;
    letter-spacing: .2em;
    font-size: clamp(.72rem, .82vw, 1.05rem);
    color: var(--st-grey);
}

/* feature list -> full-width, two-up, larger */
.storm-dark .svc-list {
    max-width: none;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(16px, 1.6vw, 26px);
    margin-top: clamp(28px, 3vw, 50px);
}
.storm-dark .svc-list li { padding: clamp(24px, 2.2vw, 40px); border-radius: 16px; }
.storm-dark .svc-list b { font-size: clamp(1.15rem, 1.5vw, 1.6rem); margin-bottom: 10px; }
.storm-dark .svc-list p { font-size: clamp(1rem, 1.1vw, 1.28rem); line-height: 1.5; }

/* proof / case-study cards */
.storm-dark .card-grid { gap: clamp(16px, 1.6vw, 26px); }
.storm-dark .card { border-radius: 16px; padding: clamp(26px, 2.4vw, 44px); }
.storm-dark .card h3 { font-size: clamp(1.25rem, 1.7vw, 2rem); letter-spacing: -0.02em; }
.storm-dark .card p { font-size: clamp(1rem, 1.1vw, 1.25rem); }

/* prose / case body -> readable measure, big fluid headings */
.storm-dark .prose, .storm-dark .case-body { max-width: 74ch; margin-inline: 0; }
.storm-dark .prose h1, .storm-dark .case-body h1 {
    font-size: clamp(2.2rem, 5.4vw, 6rem);
    line-height: 1.03; letter-spacing: -0.035em; margin-bottom: .4em; max-width: 18ch;
}
.storm-dark .prose h2, .storm-dark .case-body h2 {
    font-size: clamp(1.5rem, 2.4vw, 2.5rem); letter-spacing: -0.02em;
}
.storm-dark .prose p, .storm-dark .case-body p { font-size: clamp(1.05rem, 1.1vw, 1.28rem); line-height: 1.62; }
.storm-dark .prose li, .storm-dark .case-body li { font-size: clamp(1.02rem, 1.05vw, 1.22rem); }
.storm-dark .back-link { margin: 0 0 clamp(20px, 2vw, 34px); }

/* contact mail cards + spotlight */
.storm-dark .mail-grid { max-width: none; }
.storm-dark .spotlight h3 { font-size: clamp(1.5rem, 2.4vw, 2.7rem); letter-spacing: -0.02em; }

/* closing CTA band -> big fluid */
.storm-dark .cta-band .wrap { align-items: flex-end; }
.storm-dark .cta-band h2 { font-size: clamp(1.8rem, 4.5vw, 4.6rem); line-height: 1.04; letter-spacing: -0.03em; max-width: 20ch; }
.storm-dark .cta-band p { font-size: clamp(1.05rem, 1.3vw, 1.4rem); }

@media (max-width: 820px) {
    .storm-dark .st-head, .storm-dark .st-svc { grid-template-columns: 1fr; }
    .storm-dark .st-work { grid-template-columns: 1fr; }
    .storm-dark .st-facts { grid-template-columns: repeat(2, 1fr); }
    .storm-dark .st-hero h1 { max-width: none; }
    .storm-dark .svc-list { grid-template-columns: 1fr; }
}
