/* ============================================================================
   JAVAID — Dennis-clone motion styles (site-wide)
   Page-wipe panel + greeting intro + scroll reveals + magnetic. Pairs with
   assets/js/dennis.js. Dark panel = --dark (#1C1D20), reveal text = --reverse.
   ============================================================================ */

/* Force the Dennis blue accent. functions.php injects --accent from a stored
   theme-mod (still olive in the DB); this sheet loads after that inline style,
   so it wins the cascade without touching the accent-picker feature. */
:root {
    --accent:      #2c3ebe;
    --accent-soft: rgba(69, 92, 233, 0.10);
    --accent-deep: #2C3EBE;
	--white: #ffffff;
}

/* ── Page-wipe panel (also the first-visit greeting plate) ──────────────────
   Hidden by default. An inline <head> script adds html.flip-cover (arriving via
   a wipe) or html.flip-greet (first visit) so the panel covers from first paint
   — no flash — then dennis.js retracts it. On no-JS the classes are never added,
   so the panel stays hidden and the page is fully usable. */
.pageflip {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 12000;
    background: var(--dark, #1C1D20);
    align-items: center;
    justify-content: center;
    transform: translateY(100%);
    will-change: transform;
    border-top-left-radius: 42px;
    border-top-right-radius: 42px;
}
/* Cover-from-first-paint (set in <head> before dennis.js runs). After that,
   dennis.js owns the panel via inline transform/transition styles. */
html.flip-cover .pageflip,
html.flip-greet .pageflip { display: flex; transform: translateY(0); border-radius: 0; }

/* Greeting word. */
.pageflip__greet {
    font-family: var(--heading);
    font-weight: 460;
    font-size: clamp(40px, 6vw, 76px);
    letter-spacing: -0.02em;
    color: var(--reverse, #F1F1F1);
    opacity: 0;
    display: flex;
    align-items: center;
    gap: 0.5em;
}
.pageflip__greet::before {
    content: '';
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--accent, #455CE9);
    display: inline-block;
    transform: translateY(-0.1em);
}
.pageflip__greet.g-in { animation: greetIn 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes greetIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.dwork-home {
	display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink, #1C1D20);
    text-decoration: none;
    border: 1px solid rgba(28, 29, 32, 0.25);
    border-radius: 999px;
    padding: 10px 18px;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    margin: 30px auto 0;
    width: 100%;
    justify-content: center;
    max-width: 150px;
}

.dwork-home:hover {
	background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
/* ── Scroll reveals ─────────────────────────────────────────────────────────
   .reveal-up  — rise + fade (default per element; add data-delay via style var)
   .reveal-mask — clip-mask wipe (headline lines). Both settle on .is-inview. */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(34px);
        transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
        transition-delay: var(--reveal-delay, 0ms);
    }
    .reveal-up.is-inview { opacity: 1; transform: none; }

    .reveal-mask { clip-path: inset(0 0 100% 0); transition: clip-path 0.9s cubic-bezier(0.76, 0, 0.24, 1); transition-delay: var(--reveal-delay, 0ms); }
    .reveal-mask.is-inview { clip-path: inset(0 0 0 0); }
}

/* ── Magnetic ───────────────────────────────────────────────────────────── */
.magnetic { transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); will-change: transform; }

/* ── Footer (Dennis-style, site-wide) ───────────────────────────────────── */
.dfooter {
    position: relative;
    background: var(--dark, #1C1D20);
    color: #F1F1F1;
    padding-block: clamp(56px, 8vw, 130px);
    margin-top: clamp(50px, 7vw, 120px);   /* room for the curved dome to rise */
}
/* Curved top — a wide dark ellipse rising above the footer; dennis.js scrubs its
   scaleY on scroll so it "unrolls" as you reach the footer (Dennis's rounded-div). */
.dfooter__curve {
    position: absolute;
    left: -14%;
    right: -14%;
    bottom: 100%;
    height: clamp(60px, 8vw, 140px);
    background: var(--dark, #1C1D20);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    transform-origin: bottom center;
    transform: scaleY(1);
    pointer-events: none;
}
.dfooter__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: clamp(24px, 4vw, 56px);
    flex-wrap: wrap;
}
.dfooter__eyebrow {
    display: flex; align-items: center; gap: 12px;
    font-family: var(--mono);
    font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
	color: var(--white);
/*  color: var(--accent); */
    margin: 0 0 clamp(20px, 2.6vw, 34px);
}
.dfooter__eyebrow .tick { width: 28px; height: 1px; background: var(--accent); }
.dfooter__cta {
    font-family: var(--heading);
    font-weight: 500;
    font-size: clamp(38px, 6.6vw, 116px);
    line-height: 0.96;
    letter-spacing: -0.035em;
    color: #F1F1F1;
    max-width: 13ch;
    margin: 0;
    text-wrap: balance;
}
.dfooter__cta em { font-style: italic; font-weight: 450; color: var(--accent); }
.dfooter__badge {
    flex: none;
    position: relative;
    width: clamp(116px, 12vw, 168px);
    height: clamp(116px, 12vw, 168px);
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: grid;
    place-items: center;
    text-align: center;
    text-decoration: none;
    font-family: var(--heading);
    font-weight: 500;
    font-size: clamp(16px, 1.3vw, 20px);
    line-height: 1.05;
    transition: background 0.3s ease;
}
.dfooter__badge:hover { background: #fff; color: var(--dark, #1C1D20); }
.dfooter__badge-arr { position: absolute; top: 22%; right: 24%; font-size: 15px; }
.dfooter__email {
    display: inline-block;
    font-family: var(--heading);
    font-weight: 400;
    font-size: clamp(26px, 5vw, 74px);
    letter-spacing: -0.03em;
    color: #F1F1F1;
    text-decoration: none;
    margin-top: clamp(44px, 7vw, 104px);
    padding-bottom: 6px;
    border-bottom: 2px solid rgba(241, 241, 241, 0.2);
    transition: color 0.3s ease, border-color 0.3s ease;
}
.dfooter__email:hover { color: var(--accent); border-color: var(--accent); }
.dfooter__socials {
    display: flex; flex-wrap: wrap;
    gap: clamp(18px, 3vw, 46px);
    margin-top: clamp(38px, 5vw, 68px);
}
.dfooter__socials a {
    display: inline-flex; align-items: center; gap: 5px;
    font-family: var(--mono);
    font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
    color: rgba(241, 241, 241, 0.72);
    text-decoration: none;
    transition: color 0.25s ease;
}
.dfooter__socials a:hover { color: #fff; }
.dfooter__social-arr { font-size: 11px; }
.dfooter__bottom {
    display: flex; flex-wrap: wrap;
    justify-content: space-between; align-items: center;
    gap: 18px 40px;
    margin-top: clamp(52px, 8vw, 116px);
    padding-top: 26px;
    border-top: 1px solid rgba(241, 241, 241, 0.14);
    font-family: var(--mono);
    font-size: 12px; letter-spacing: 0.04em;
    color: rgba(241, 241, 241, 0.55);
}
.dfooter__meta { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.dfooter__brand { color: rgba(241, 241, 241, 0.85); }
.dfooter__nav { display: flex; flex-wrap: wrap; gap: 14px 20px; }
.dfooter__nav a, .dfooter__totop {
    color: rgba(241, 241, 241, 0.7);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.25s ease;
}
.dfooter__nav a:hover, .dfooter__totop:hover { color: var(--accent); }
.dfooter__legal { display: flex; align-items: center; gap: 20px 32px; flex-wrap: wrap; }
.dfooter__totop { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
@media (max-width: 640px) {
    .dfooter__badge { width: 108px; height: 108px; }
    .dfooter__bottom { flex-direction: column; align-items: flex-start; }
}

/* ══ Work index — Dennis-style rows + cursor image preview (site-wide) ══════ */
.dwork { border-top: 1px solid var(--rule); }
.dwork__row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto 28px;
    align-items: center;
    gap: clamp(14px, 2.5vw, 44px);
    padding: clamp(20px, 2.8vw, 38px) clamp(16px, 2vw, 32px);
    border-bottom: 1px solid var(--rule);
    color: var(--ink);
    text-decoration: none;
    position: relative;
}
.dwork__num { font-family: var(--mono); font-size: 13px; color: var(--mute-2); letter-spacing: 0.04em; transition: color 0.3s ease; }
.dwork__title {
    font-family: var(--heading);
    font-weight: 500;
    font-size: clamp(26px, 4.2vw, 60px);
    line-height: 1.0;
    letter-spacing: -0.03em;
    color: var(--ink);
    transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), color 0.3s ease;
    min-width: 0;
}
.dwork__meta {
    font-family: var(--mono);
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.09em;
    color: var(--mute); text-align: right; max-width: 26ch; line-height: 1.3;
    transition: color 0.3s ease;
}
.dwork__year { font-family: var(--mono); font-size: 13px; color: var(--ink-mute); letter-spacing: 0.04em; transition: color 0.3s ease; }
.dwork__arrow {
    font-size: 20px; color: var(--accent); opacity: 0;
    transform: translate(-8px, 8px);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), color 0.3s ease;
    justify-self: end;
}
@media (hover: hover) {
    .dwork__row:hover .dwork__title { transform: translateX(20px); color: var(--accent); }
    .dwork__row:hover .dwork__arrow { opacity: 1; transform: translate(0, 0); }
    .dwork:hover .dwork__row:not(:hover) .dwork__title { color: var(--mute-2); }
}

/* Cursor-following image preview with the magnetic View button. */
.dwork__preview {
    position: fixed; top: 0; left: 0;
    width: clamp(230px, 22vw, 360px);
    aspect-ratio: 4 / 3;
    pointer-events: none; z-index: 60;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition: opacity 0.35s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
    will-change: left, top;
}
.dwork__preview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.dwork__preview-inner {
    position: absolute; inset: 0;
    overflow: hidden; border-radius: 8px;
    box-shadow: 0 30px 70px -30px rgba(28, 29, 32, 0.55);
    background: var(--canvas-2);
}
.dwork__pv-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; will-change: transform; }
.dwork__view {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%); z-index: 3;
    width: clamp(78px, 6vw, 96px); height: clamp(78px, 6vw, 96px);
    border-radius: 50%; background: var(--accent); color: #FFFFFF;
    display: grid; place-items: center;
    font-family: var(--heading); font-size: 15px; font-weight: 500; letter-spacing: 0.01em;
}

/* ── /work page variant: 4 data columns + a column header (PROJECT/…/YEAR).
      No number column and no side padding, so the title aligns with the page
      margin and the filter pills above it. ──────────────────────────────────── */
.dwork--page .dwork__row,
.dwork--page .dwork__head {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) 84px 28px;
    display: grid;
    align-items: center;
    gap: clamp(12px, 2vw, 36px);
    padding-inline: 0;
}
.dwork--page .dwork__head {
    padding: clamp(16px, 2vw, 22px) 0;
    border-bottom: 1px solid var(--rule);
}
.dwork--page .dwork__head span {
    font-family: var(--mono);
    font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--mute-2);
}
.dwork--page .dwork__title { font-size: clamp(22px, 3.2vw, 46px); }
.dwork__sector, .dwork__role {
    font-family: var(--mono);
    font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase;
    color: var(--mute); line-height: 1.35;
}
.dwork--page .dwork__year { justify-self: start; }
@media (max-width: 860px) {
    .dwork--page .dwork__head { display: none; }
    .dwork--page .dwork__row { grid-template-columns: auto 1fr auto; }
    .dwork--page .dwork__sector, .dwork--page .dwork__role { display: none; }
}

/* ── Filter pills (Dennis-style) ─────────────────────────────────────────── */
.dwork-filters { display: flex; flex-wrap: wrap; gap: 10px;padding-top:20px; }
.dwork-filter {
    font-family: var(--mono);
    font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--ink-mute);
    background: transparent;
    border: 1px solid var(--rule);
    border-radius: 999px;
    padding: 10px 18px;
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.dwork-filter span { color: var(--mute-2); }
.dwork-filter:hover { border-color: var(--ink); }
.dwork-filter.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.dwork-filter.is-active span { color: rgba(255, 255, 255, 0.7); }
/* Superscript project counts (Dennis-style: "Development ¹¹"). */
.dwork-filter sup { font-size: 0.62em; font-weight: 500; margin-left: 3px; color: var(--mute-2); }
.dwork-filter.is-active sup { color: rgba(255, 255, 255, 0.75); }

/* Controls row — filters on the left, list/grid toggle on the right. */
.dwork-controls { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.dwork-views { display: flex; gap: 10px; }
.dwork-view {
    width: 48px; height: 48px; border-radius: 50%;
    border: 1px solid var(--rule);
    background: transparent; color: var(--ink);
    display: grid; place-items: center; cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.dwork-view:hover { border-color: var(--ink); }
.dwork-view.is-active { background: var(--dark, #1C1D20); border-color: var(--dark, #1C1D20); color: #fff; }

/* The `hidden` attribute must win over the grid display when list view is active. */
.dwork-grid[hidden] { display: none; }
.dwork-tile { text-decoration: none; color: var(--ink); display: block; }
.dwork-tile.is-hidden { display: none; }
.dwork-tile__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--canvas-2);
    background-size: cover;
    background-position: center;
}
.dwork-tile__media::before {
    content: '';
    position: absolute; inset: 0;
    background-image: inherit;
    background-size: cover; background-position: center;
    transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Grid / tiles view. */
.dwork-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(28px, 4vw, 64px) clamp(20px, 2.5vw, 40px);
    padding-top: clamp(20px, 3vw, 40px);
}
.dwork-tile { text-decoration: none; color: var(--ink); display: block; }
.dwork-tile.is-hidden { display: none; }
.dwork-tile__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--canvas-2);
    background-size: cover;
    background-position: center;
}
.dwork-tile__media::before {
    content: '';
    position: absolute; inset: 0;
    background-image: inherit;
    background-size: cover; background-position: center;
    transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.dwork-tile__view {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    z-index: 1;
    width: clamp(72px, 6vw, 92px); height: clamp(72px, 6vw, 92px);
    border-radius: 50%; background: var(--accent); color: #fff;
    display: grid; place-items: center;
    font-family: var(--heading); font-size: 14px; font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (hover: hover) {
    .dwork-tile:hover .dwork-tile__media::before { transform: scale(1.06); }
    .dwork-tile:hover .dwork-tile__view { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.dwork-tile__cap { display: flex; flex-direction: column; gap: 5px; margin-top: 16px; }
.dwork-tile__title {
    font-family: var(--heading); font-weight: 500;
    font-size: clamp(19px, 2vw, 28px); line-height: 1.1; letter-spacing: -0.02em;
    color: var(--ink);
}
.dwork-tile__meta {
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.07em;
    text-transform: uppercase; color: var(--mute);
}
.dwork-tile__yr { color: var(--mute-2); }
@media (max-width: 720px) {
    .dwork-grid { grid-template-columns: 1fr; }
    .dwork-view { width: 42px; height: 42px; }
}

.dwork__row.is-hidden { display: none; }

@media (max-width: 720px) {
    .dwork__row { grid-template-columns: auto 1fr auto; gap: 12px 16px; padding: 20px 8px; }
    .dwork__meta { display: none; }
    .dwork__arrow { display: none; }
    .dwork__title { font-size: clamp(24px, 8vw, 40px); }
    .dwork__preview { display: none; }
}

/* ══ Single case study — Dennis-style project page ═════════════════════════ */
.csd-hero {
    padding-top: clamp(72px, 11vh, 150px);
    padding-bottom: clamp(32px, 5vw, 64px);
}
.csd-hero__title {
    font-family: var(--heading);
    font-weight: 500;
    font-size: clamp(38px, 6.4vw, 104px);
    line-height: 0.98;
    letter-spacing: -0.035em;
    color: var(--ink);
    margin: 0 0 clamp(40px, 6vw, 72px);
    max-width: 18ch;
    text-wrap: balance;
}
.csd-hero__meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(24px, 4vw, 72px);
}
.csd-meta-col { display: flex; flex-direction: column; min-width: 0; }
.csd-meta-label {
    font-family: var(--mono);
    font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--mute-2);
    padding-bottom: 14px;
    border-bottom: 1px solid var(--rule);
    margin-bottom: 18px;
}
.csd-meta-val {
    font-family: var(--sans);
    font-size: clamp(15px, 1.3vw, 19px);
    line-height: 1.4;
    color: var(--ink);
}
.csd-hero__lede {
    margin: clamp(40px, 6vw, 72px) 0 0;
    max-width: 60ch;
    font-size: clamp(18px, 1.6vw, 24px);
    line-height: 1.5;
    color: var(--ink-mute);
}
@media (max-width: 720px) {
    .csd-hero__meta { grid-template-columns: 1fr; gap: 26px; }
}

/* Hero image — large, rounded. */
.csd-hero-img { padding-block: clamp(24px, 4vw, 56px); }
.csd-hero-img__media {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    background-size: cover;
    background-position: center top;
    background-color: var(--canvas-2);
}

/* Content images (gallery) — big full-width blocks like Dennis's mockups. */
.cs-gallery__grid { display: grid; grid-template-columns: 1fr; gap: clamp(20px, 3vw, 48px); }
.cs-gallery__item {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    background-size: cover;
    background-position: center top;
    background-color: var(--canvas-2);
}

/* ── Case study: shared eyebrow label (plain mono, no lead-in dash) ──────── */
.csd-eyebrow {
    display: block;
    font-family: var(--mono);
    font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 clamp(24px, 3vw, 40px);
}

/* ── Overview / What I shipped ──────────────────────────────────────────── */
.csd-body { padding-block: clamp(56px, 8vw, 120px); }
.csd-body__grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(40px, 7vw, 120px);
    align-items: start;
}
.csd-body__text {
    font-family: var(--heading);
    font-weight: 400;
    font-size: clamp(21px, 2.3vw, 33px);
    line-height: 1.34;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0;
    text-wrap: pretty;
}
.csd-ship__list { list-style: none; margin: 0; padding: 0; }
.csd-ship__list li {
    position: relative;
    padding: 18px 0 18px 28px;
    border-top: 1px solid rgba(28, 29, 32, 0.14);
    font-size: clamp(15px, 1.15vw, 17px);
    line-height: 1.5;
    color: var(--ink-mute, #52535a);
}
.csd-ship__list li:last-child { border-bottom: 1px solid rgba(28, 29, 32, 0.14); }
.csd-ship__list li::before {
    content: "\25C6";
    position: absolute; left: 0; top: 19px;
    font-size: 9px; line-height: 1; color: var(--accent);
}
@media (max-width: 820px) { .csd-body__grid { grid-template-columns: 1fr; gap: 44px; } }

/* ── Stack & tags ───────────────────────────────────────────────────────── */
.csd-stack { padding-block: clamp(28px, 4vw, 60px); border-top: 1px solid rgba(28, 29, 32, 0.12); }
.csd-pills { display: flex; flex-wrap: wrap; gap: 12px; }
.csd-pill {
    display: inline-flex; align-items: center;
    padding: 10px 20px;
    border: 1px solid rgba(28, 29, 32, 0.2);
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--ink);
}
.csd-pill--tag { border-color: rgba(69, 92, 233, 0.45); color: var(--accent); }

/* ── Results — clean editorial list (hairline rows, matching Related) ────── */
.csd-results { padding-block: clamp(40px, 6vw, 96px); border-top: 1px solid rgba(28, 29, 32, 0.12); }
.csd-results__list { list-style: none; margin: clamp(8px, 1.5vw, 20px) 0 0; padding: 0; }
.csd-result {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: clamp(20px, 4vw, 64px);
    padding: clamp(24px, 3vw, 44px) 0;
    border-top: 1px solid rgba(28, 29, 32, 0.14);
}
.csd-results__list li:last-child .csd-result { border-bottom: 1px solid rgba(28, 29, 32, 0.14); }
.csd-result__num {
    font-family: var(--heading);
    font-weight: 500;
    font-size: clamp(48px, 6.4vw, 108px);
    line-height: 0.88;
    letter-spacing: -0.045em;
    color: var(--accent);
}
.csd-result__lbl {
    justify-self: end;
    text-align: right;
    font-family: var(--mono);
    font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
    line-height: 1.5;
    color: var(--ink-mute, #52535a);
    max-width: 34ch;
}
.csd-results__note {
    margin: clamp(28px, 4vw, 48px) 0 0;
    max-width: 48ch;
    font-size: 15px; line-height: 1.6;
    color: var(--ink-mute, #52535a);
}
@media (max-width: 620px) {
    .csd-result { grid-template-columns: 1fr; align-items: start; gap: 10px; padding: clamp(22px, 5vw, 32px) 0; }
    .csd-result__lbl { justify-self: start; text-align: left; }
}

/* ── Related services — clean editorial list (hairline rows, no boxes) ───── */
.csd-related { padding-block: clamp(40px, 6vw, 96px); border-top: 1px solid rgba(28, 29, 32, 0.12); }
.csd-related__list { list-style: none; margin: clamp(8px, 1.5vw, 20px) 0 0; padding: 0; }
.csd-related__row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: clamp(16px, 3vw, 56px);
    padding: clamp(22px, 2.6vw, 36px) 0;
    border-top: 1px solid rgba(28, 29, 32, 0.14);
    text-decoration: none;
    color: var(--ink, #1C1D20);
}
.csd-related__list li:last-child .csd-related__row { border-bottom: 1px solid rgba(28, 29, 32, 0.14); }
.csd-related__name {
    font-family: var(--heading);
    font-weight: 500;
    font-size: clamp(22px, 2.5vw, 38px);
    letter-spacing: -0.025em;
    line-height: 1;
    transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), color 0.25s ease;
}
.csd-related__cat {
    justify-self: end;
    font-family: var(--mono);
    font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--ink-mute, #52535a);
}
.csd-related__arr {
    justify-self: end;
    font-size: 20px; line-height: 1;
    color: var(--ink-mute, #52535a);
    transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), color 0.25s ease;
}
@media (hover: hover) {
    .csd-related__row:hover .csd-related__name { color: var(--accent); transform: translateX(12px); }
    .csd-related__row:hover .csd-related__arr { color: var(--accent); transform: translate(7px, -7px); }
    .csd-related__row:hover .csd-related__cat { color: var(--ink, #1C1D20); }
}
@media (max-width: 620px) {
    .csd-related__row { grid-template-columns: 1fr auto; }
    .csd-related__cat { display: none; }
}

/* ── Next-case panel — solid grey block matching the hero grey. Its light-grey
   plane sits clearly apart from the dark site footer directly below. No gradients. */
.csd-next {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: clamp(320px, 40vw, 540px);
    padding-block: clamp(48px, 7vw, 96px);
    overflow: hidden;
    text-decoration: none;
    background: #e4e4e4;
    border-radius: clamp(18px, 2.6vw, 36px) clamp(18px, 2.6vw, 36px) 0 0;
    margin-top: clamp(56px, 8vw, 120px);
}
.csd-next__inner { position: relative; z-index: 2; width: 100%; }
.csd-next__eyebrow {
    display: block;
    font-family: var(--mono);
    font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--ink, #1C1D20);
    margin-bottom: clamp(20px, 3vw, 34px);
}
.csd-next__title {
    font-family: var(--heading);
    font-weight: 500;
    font-size: clamp(40px, 6.6vw, 104px);
    line-height: 0.98;
    letter-spacing: -0.035em;
    color: var(--ink, #1C1D20);
    margin: 0;
    max-width: 18ch;
    transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
    text-wrap: balance;
}
.csd-next__title em { font-style: italic; font-weight: 450; color: var(--accent); }
.csd-next__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: clamp(28px, 4vw, 48px);
    font-family: var(--mono);
    font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
    color: rgba(28, 29, 32, 0.68);
    transition: color 0.25s ease;
}
.csd-next__cta .arr { transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); }
@media (hover: hover) {
    .csd-next:hover .csd-next__title { transform: translateX(16px); }
    .csd-next:hover .csd-next__cta { color: var(--accent); }
    .csd-next:hover .csd-next__cta .arr { transform: translateX(8px); }
}

/* Genuine code keeps a real monospace even though --mono is now the grotesque. */
code, pre, kbd, samp, .prose code, .prose pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
}

/* ══ About page — Dennis-style ═════════════════════════════════════════════ */
.dabout-hero { padding-block: clamp(36px, 6vw, 96px) clamp(24px, 4vw, 52px); }
.dabout-hero__label {
    display: block;
    font-family: var(--mono);
    font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 clamp(20px, 3vw, 40px);
}
.dabout-hero__title {
    font-family: var(--heading);
    font-weight: 500;
    font-size: clamp(38px, 6.8vw, 128px);
    line-height: 0.98;
    letter-spacing: -0.04em;
    color: var(--ink, #1C1D20);
    margin: 0;
    max-width: 15ch;
    text-wrap: balance;
}
.dabout-hero__title em { font-style: italic; font-weight: 450; color: var(--accent); }

/* Trust row — quiet hairline strip of verified profiles. */
.dabout-trust { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; padding: clamp(16px, 2vw, 22px) 0; border-block: 1px solid rgba(28, 29, 32, 0.14); }
.dabout-trust__label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute, #52535a); }
.dabout-trust a { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink, #1C1D20); text-decoration: none; transition: color 0.2s ease; }
.dabout-trust a:hover { color: var(--accent); }
.dabout-trust__updated { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--ink-mute, #52535a); }

/* Big full-bleed portrait. */
.dabout-image { padding-block: clamp(32px, 5vw, 72px); }
/* .dabout-image__media { width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--canvas-2); } */
.dabout-image__media img { height: 100%; object-fit: contain; display: block; }

/* Intro / essay — sticky label left, essay right. */
.dabout-intro { padding-block: clamp(24px, 4vw, 64px); }
.dabout-intro__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 100px); align-items: start; }
.dabout-intro__aside { position: sticky; top: 100px; }
.dabout-lead { font-family: var(--heading); font-weight: 400; font-size: clamp(23px, 2.6vw, 40px); line-height: 1.28; letter-spacing: -0.02em; color: var(--ink, #1C1D20); margin: 0 0 clamp(24px, 3vw, 40px); text-wrap: pretty; }
.dabout-essay p { font-size: clamp(16px, 1.2vw, 19px); line-height: 1.62; color: var(--ink-mute, #52535a); margin: 0 0 20px; max-width: 64ch; }
.dabout-essay p strong { color: var(--ink, #1C1D20); font-weight: 600; }
.dabout-sig { font-family: var(--heading); font-style: italic; font-size: clamp(18px, 1.6vw, 24px); color: var(--ink, #1C1D20); margin-top: clamp(28px, 4vw, 44px); }
.dabout-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: clamp(28px, 4vw, 44px); }

/* Facts grid (marginalia). */
.dabout-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: clamp(24px, 3vw, 44px) clamp(20px, 3vw, 40px); }
.dabout-fact h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(28, 29, 32, 0.14); }
.dabout-fact ul { list-style: none; margin: 0; padding: 0; }
.dabout-fact li { font-size: 14px; line-height: 1.5; color: var(--ink-mute, #52535a); margin-bottom: 5px; }
.dabout-fact .dmd { color: var(--accent); }

/* Experience — numbered hairline rows (Dennis "I can help you with …"). */
.dabout-exp { padding-block: clamp(40px, 6vw, 100px); }
.dabout-exp__head { font-family: var(--heading); font-weight: 500; font-size: clamp(30px, 4vw, 64px); line-height: 1.02; letter-spacing: -0.03em; color: var(--ink, #1C1D20); margin: clamp(12px, 2vw, 20px) 0 clamp(28px, 4vw, 52px); max-width: 20ch; text-wrap: balance; }
.dabout-exp__head em { font-style: italic; font-weight: 450; color: var(--accent); }
.dabout-exp__list { list-style: none; margin: 0; padding: 0; }
.dabout-exp-row { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(20px, 4vw, 64px); padding: clamp(28px, 3.4vw, 52px) 0; border-top: 1px solid rgba(28, 29, 32, 0.14); align-items: start; }
.dabout-exp__list li:last-child .dabout-exp-row { border-bottom: 1px solid rgba(28, 29, 32, 0.14); }
.dabout-exp__num { font-family: var(--mono); font-size: 13px; color: var(--accent); padding-top: 6px; }
.dabout-exp__title { font-family: var(--heading); font-weight: 500; font-size: clamp(22px, 2.4vw, 34px); letter-spacing: -0.02em; line-height: 1.04; color: var(--ink, #1C1D20); margin: 0 0 10px; }
.dabout-exp__title em { font-style: italic; font-weight: 450; color: var(--accent); }
.dabout-exp__meta { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-mute, #52535a); margin: 0 0 16px; }
.dabout-exp__desc { font-size: clamp(15px, 1.1vw, 17px); line-height: 1.55; color: var(--ink-mute, #52535a); margin: 0; max-width: 60ch; }
.dabout-exp__tags { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; text-align: right; }
.dabout-exp__tags li { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute, #52535a); }
@media (max-width: 820px) {
    .dabout-intro__grid { grid-template-columns: 1fr; gap: 32px; }
    .dabout-intro__aside { position: static; }
    .dabout-exp-row { grid-template-columns: auto 1fr; }
    .dabout-exp__tags { grid-column: 2; flex-direction: row; flex-wrap: wrap; gap: 8px 14px; text-align: left; margin-top: 14px; }
}

/* ══ Contact page — Dennis-style ═══════════════════════════════════════════ */
.dcontact-hero { padding-block: clamp(36px, 6vw, 96px) clamp(28px, 4vw, 56px); }
.dcontact-hero__title {
    font-family: var(--heading);
    font-weight: 500;
    font-size: clamp(44px, 8vw, 150px);
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: var(--ink, #1C1D20);
    margin: 0;
    max-width: 14ch;
    text-wrap: balance;
}
.dcontact-hero__title em { font-style: italic; font-weight: 450; color: var(--accent); }
.dcontact-hero__lede { font-size: clamp(17px, 1.5vw, 22px); line-height: 1.5; color: var(--ink-mute, #52535a); max-width: 54ch; margin: clamp(28px, 4vw, 48px) 0 0; }
.dcontact-links { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 80px); margin-top: clamp(28px, 4vw, 44px); }
.dcontact-link__label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute, #52535a); margin-bottom: 10px; }
.dcontact-link a { font-family: var(--heading); font-size: clamp(20px, 2vw, 30px); letter-spacing: -0.02em; color: var(--ink, #1C1D20); text-decoration: none; border-bottom: 1px solid rgba(28, 29, 32, 0.25); padding-bottom: 4px; transition: color 0.25s ease, border-color 0.25s ease; }
.dcontact-link a:hover { color: var(--accent); border-color: var(--accent); }

/* Numbered brief form. */
.dcontact-form { padding-block: clamp(32px, 5vw, 80px); border-top: 1px solid rgba(28, 29, 32, 0.12); }
/* Full-width stacked numbered rows (override the shared two-column .form grid). */
.dcontact-form .form { display: block; }
.dcontact-form__head { font-family: var(--heading); font-weight: 500; font-size: clamp(26px, 3vw, 48px); letter-spacing: -0.025em; line-height: 1.06; color: var(--ink, #1C1D20); margin: 0 0 clamp(28px, 4vw, 52px); max-width: 24ch; text-wrap: balance; }
.dcontact-form__head em { font-style: italic; font-weight: 450; color: var(--accent); }
.dc-field { display: grid; grid-template-columns: auto 1fr; gap: clamp(16px, 3vw, 48px); align-items: start; padding: clamp(22px, 2.6vw, 34px) 0;  }
.dc-field:last-of-type { border-bottom: 1px solid rgba(28, 29, 32, 0.14); }
.dc-field__num { font-family: var(--mono); font-size: 13px; color: var(--accent); padding-top: 4px; }
.dc-field__label { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink, #1C1D20); margin-bottom: 16px; }
.dc-field__label .req { color: var(--accent); text-transform: none; letter-spacing: 0; }
.dc-field__label .muted { color: var(--ink-mute, #52535a); text-transform: none; letter-spacing: 0; }
.dc-field input, .dc-field textarea, .dc-field select {
    width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(28, 29, 32, 0.2);
    font-family: var(--heading); font-weight: 400; font-size: clamp(18px, 1.7vw, 25px); color: var(--ink, #1C1D20);
    padding: 6px 0 12px; outline: none; border-radius: 0; transition: border-color 0.25s ease;
}
.dc-field select { cursor: pointer; }
.dc-field input::placeholder, .dc-field textarea::placeholder { color: rgba(28, 29, 32, 0.32); }
.dc-field input:focus, .dc-field textarea:focus, .dc-field select:focus { border-color: var(--accent); }
.dc-field textarea { resize: vertical; min-height: 96px; line-height: 1.4; }
.dcontact-form__submit { display: flex; align-items: center; gap: 20px; margin-top: clamp(32px, 4vw, 52px); flex-wrap: wrap; }
.dcontact-form__intro { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 4vw, 72px); align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.dcontact-form__intro .dcontact-form__head { margin-bottom: 0; }
.dcontact-form__meta p { font-size: 15px; line-height: 1.6; color: var(--ink-mute, #52535a); margin: 0 0 18px; max-width: 46ch; }
.dcontact-form__meta p:last-child { margin-bottom: 0; }
.dc-field.has-error input, .dc-field.has-error textarea, .dc-field.has-error select { border-color: #c0392b; }
.dc-field .field__err { color: #c0392b; text-transform: none; letter-spacing: 0; margin-left: 6px; }
@media (max-width: 720px) { .dcontact-form__intro { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 640px) { .dc-field { grid-template-columns: 1fr; gap: 10px; } .dc-field__num { display: none; } }

/* ══ Inner content pages (Products / Expertise / Blog) — Dennis-style ══════ */
.dpage-hero { padding-block: clamp(36px, 6vw, 96px) clamp(28px, 4vw, 60px); }
.dpage-hero__label { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin: 0 0 clamp(20px, 3vw, 40px); }
.dpage-hero__title { font-family: var(--heading); font-weight: 500; font-size: clamp(38px, 6.8vw, 124px); line-height: 0.98; letter-spacing: -0.04em; color: var(--ink, #1C1D20); margin: 0; max-width: 16ch; text-wrap: balance; }
.dpage-hero__title em { font-style: italic; font-weight: 450; color: var(--accent); }
.dpage-hero__lede { font-size: clamp(17px, 1.5vw, 22px); line-height: 1.5; color: var(--ink-mute, #52535a); max-width: 62ch; margin: clamp(28px, 4vw, 48px) 0 0; }
.dpage-body { padding-block: clamp(8px, 2vw, 24px) clamp(48px, 7vw, 110px); }

/* Products — numbered hairline rows. */
.dprod-list { list-style: none; margin: 0; padding: 0; }
.dprod-row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: clamp(18px, 3vw, 56px); padding: clamp(26px, 3vw, 44px) 0; border-top: 1px solid rgba(28, 29, 32, 0.14); text-decoration: none; color: var(--ink, #1C1D20); }
.dprod-list li:last-child .dprod-row { border-bottom: 1px solid rgba(28, 29, 32, 0.14); }
.dprod-row__num { font-family: var(--mono); font-size: 13px; color: var(--accent); align-self: start; padding-top: 8px; }
.dprod-row__title { font-family: var(--heading); font-weight: 500; font-size: clamp(22px, 2.5vw, 38px); letter-spacing: -0.025em; line-height: 1.04; transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), color 0.25s ease; }
.dprod-row__title em { font-style: italic; font-weight: 450; color: var(--accent); }
.dprod-row__sub { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-mute, #52535a); margin-top: 12px; }
.dprod-row__meta { justify-self: end; text-align: right; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-mute, #52535a); line-height: 1.5; white-space: nowrap; }
.dprod-row__stars { color: var(--accent); display: block; margin-top: 4px; }
.dprod-row__arr { justify-self: end; font-size: 20px; color: var(--ink-mute, #52535a); transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), color 0.25s ease; }
@media (hover: hover) {
    .dprod-row:hover .dprod-row__title { color: var(--accent); transform: translateX(10px); }
    .dprod-row:hover .dprod-row__arr { color: var(--accent); transform: translate(6px, -6px); }
}
@media (max-width: 760px) { .dprod-row { grid-template-columns: auto 1fr auto; } .dprod-row__meta { display: none; } }

/* Expertise — group sections + capability hairline rows with level dots. */
.dexp-legend { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: clamp(22px, 3vw, 34px); padding: 0; }
.dexp-legend li { list-style: none; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute, #52535a); display: inline-flex; align-items: center; gap: 8px; }
.dexp-legend .dot-on { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }
.dexp-group { padding-block: clamp(36px, 5vw, 72px); border-top: 1px solid rgba(28, 29, 32, 0.12); }
.dexp-group__head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(18px, 2.5vw, 32px); }
.dexp-group__num { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.dexp-group__title { font-family: var(--heading); font-weight: 500; font-size: clamp(26px, 3.4vw, 52px); letter-spacing: -0.03em; line-height: 1.02; color: var(--ink, #1C1D20); margin: 0; }
.dexp-group__title em { font-style: italic; font-weight: 450; color: var(--accent); }
.dexp-group__count { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-mute, #52535a); }
.dexp-cap { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: clamp(16px, 3vw, 48px); padding: clamp(15px, 1.8vw, 22px) 0; border-top: 1px solid rgba(28, 29, 32, 0.1); }
.dexp-cap__name { font-family: var(--heading); font-weight: 450; font-size: clamp(17px, 1.4vw, 22px); letter-spacing: -0.01em; color: var(--ink, #1C1D20); }
.dexp-cap__level { justify-self: end; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute, #52535a); }
.dexp-cap__dots { justify-self: end; display: inline-flex; gap: 5px; }
.dexp-cap__dots span { width: 7px; height: 7px; border-radius: 50%; }
.dexp-cap__dots .dot-on { background: var(--accent); }
.dexp-cap__dots .dot-off { background: rgba(28, 29, 32, 0.18); }
@media (max-width: 600px) { .dexp-cap { grid-template-columns: 1fr auto; } .dexp-cap__level { display: none; } }

/* Blog — article hairline rows. */
.dblog-list { list-style: none; margin: 0; padding: 0; }
.dblog-row { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: clamp(20px, 4vw, 64px); padding: clamp(26px, 3vw, 44px) 0; border-top: 1px solid rgba(28, 29, 32, 0.14); text-decoration: none; color: var(--ink, #1C1D20); }
.dblog-list li:last-child .dblog-row { border-bottom: 1px solid rgba(28, 29, 32, 0.14); }
.dblog-row__date { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-mute, #52535a); white-space: nowrap; }
.dblog-row__title { font-family: var(--heading); font-weight: 500; font-size: clamp(22px, 2.6vw, 40px); letter-spacing: -0.025em; line-height: 1.06; transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), color 0.25s ease; }
.dblog-row__title em { font-style: italic; font-weight: 450; color: var(--accent); }
.dblog-row__excerpt { display: block; font-family: var(--sans); font-size: clamp(14px, 1.1vw, 16px); font-weight: 400; line-height: 1.55; letter-spacing: 0; text-transform: none; color: var(--ink-mute, #52535a); margin-top: 12px; max-width: 64ch; }
.dblog-row__arr { font-size: 20px; color: var(--ink-mute, #52535a); transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), color 0.25s ease; }
@media (hover: hover) {
    .dblog-row:hover .dblog-row__title { color: var(--accent); transform: translateX(10px); }
    .dblog-row:hover .dblog-row__arr { color: var(--accent); transform: translate(6px, -6px); }
}
@media (max-width: 720px) { .dblog-row { grid-template-columns: 1fr auto; align-items: start; } .dblog-row__date { grid-column: 1 / -1; margin-bottom: 6px; } }
.dpage-pagination { margin-top: clamp(40px, 5vw, 64px); }

/* ══ Single blog post — Dennis-style article ══════════════════════════════ */
.dpost-hero { padding-block: clamp(32px, 5vw, 80px) 0; max-width: 900px; margin: 0 auto; }
.dpost-hero__eyebrow { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin: 0 0 clamp(18px, 2.5vw, 30px); }
.dpost-hero__title { font-family: var(--heading); font-weight: 500; font-size: clamp(34px, 5.2vw, 84px); line-height: 1.0; letter-spacing: -0.035em; color: var(--ink, #1C1D20); margin: 0; text-wrap: balance; }
.dpost-hero__title em { font-style: italic; font-weight: 450; color: var(--accent); }
.dpost-hero__byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: clamp(22px, 3vw, 38px); font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-mute, #52535a); }
.dpost-hero__byline strong { font-weight: 500; color: var(--ink, #1C1D20); }
.dpost-hero__byline a { color: var(--ink, #1C1D20); text-decoration: none; transition: color 0.2s ease; }
.dpost-hero__byline a:hover { color: var(--accent); }
.dpost-hero__byline .dmd { color: var(--accent); }

.dpost-img { margin: clamp(40px, 5vw, 72px) auto 0; max-width: 1120px; }
.dpost-img__media { width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--canvas-2); }
.dpost-img__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.dpost-tldr { margin: clamp(40px, 5vw, 64px) auto 0; max-width: 68ch; padding: clamp(22px, 2.4vw, 30px) clamp(24px, 2.6vw, 34px); background: rgba(69, 92, 233, 0.06); border-radius: 14px; }
.dpost-tldr__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.dpost-tldr p { margin: 0; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.55; color: var(--ink, #1C1D20); }

.dpost-prose { margin-top: clamp(40px, 5vw, 64px); }

.dpost-author { margin: clamp(48px, 6vw, 80px) auto 0; max-width: 820px; padding: clamp(26px, 3vw, 36px); border: 1px solid rgba(28, 29, 32, 0.16); border-radius: 16px; display: grid; grid-template-columns: 88px 1fr; gap: clamp(20px, 2.5vw, 32px); align-items: start; }
.dpost-author__img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; background: var(--canvas-2); }
.dpost-author__label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.dpost-author__name { font-family: var(--heading); font-weight: 500; font-size: clamp(20px, 1.7vw, 26px); letter-spacing: -0.02em; color: var(--ink, #1C1D20); margin: 0 0 10px; }
.dpost-author__bio { font-size: 15px; line-height: 1.6; color: var(--ink-mute, #52535a); margin: 0 0 14px; }
.dpost-author__links { display: flex; gap: 18px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.dpost-author__links a { color: var(--ink, #1C1D20); text-decoration: none; transition: color 0.2s ease; }
.dpost-author__links a:hover { color: var(--accent); }
@media (max-width: 560px) { .dpost-author { grid-template-columns: 1fr; } }

.dpost-related { margin: clamp(56px, 7vw, 110px) auto 0; max-width: 900px; }

/* Pre-footer CTA panel — light grey #e0e0e0 with dark ink text (Products/Expertise). */
.dcta-panel { background: #e0e0e0; }
.dcta-panel .eyebrow { color: var(--accent); }
.dcta-panel .cta-billboard__head,
.dcta-panel .display { color: var(--ink, #1C1D20); }
.dcta-panel .cta-billboard__head em,
.dcta-panel .display em { color: var(--accent); }
.dcta-panel .cta-billboard__deck { color: var(--ink-mute, #52535a); }
.dcta-panel .cta-billboard__alt { color: var(--ink, #1C1D20); }
.dcta-panel .cta-billboard__diamond { color: var(--accent); }

/* ══ Header — Dennis-style minimal bar + full-screen overlay ══════════════ */
.dnav {
    position: sticky; top: 0; z-index: 1000;
    padding-block: clamp(14px, 1.8vw, 24px);
    pointer-events: none;
}
.dnav__inner {
    max-width: var(--max); margin: 0 auto; padding-inline: var(--pad-x);
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    pointer-events: none;
}
.dnav__inner > * { pointer-events: auto; }
.dnav__brand {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--heading); font-weight: 600; font-size: 18px; letter-spacing: -0.01em;
    color: var(--ink, #1C1D20); text-decoration: none;
    transition: color 0.3s ease;
}
.dnav__brand .brand__logo { height: clamp(34px, 3vw, 44px); width: auto; display: block; }
.dnav__right { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.dnav__cta {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--ink, #1C1D20); text-decoration: none;
    border: 1px solid rgba(28, 29, 32, 0.25); border-radius: 999px; padding: 10px 18px;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.dnav__cta:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Menu toggle + animated burger. */
.dnav__toggle {
    display: inline-flex; align-items: center; gap: 12px;
    background: none; border: 0; cursor: pointer; padding: 6px 0;
    font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--ink, #1C1D20);
    transition: color 0.3s ease;
}
.dnav__toggle-label { display: inline-block; min-width: 3.4em; text-align: right; }
.dnav__burger { position: relative; width: 26px; height: 12px; display: inline-block; }
.dnav__burger span { position: absolute; left: 0; width: 100%; height: 1.6px; background: var(--ink, #1C1D20); border-radius: 2px; transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.3s ease, top 0.3s ease, bottom 0.3s ease; }
.dnav__burger span:first-child { top: 2px; }
.dnav__burger span:last-child { bottom: 2px; }

/* Open state — bar text/burger go light, burger morphs to an X, label swaps. */
html.nav-open .dnav__brand,
html.nav-open .dnav__toggle { color: #F1F1F1; }
html.nav-open .dnav__burger span { background: #F1F1F1; }
html.nav-open .dnav__burger span:first-child { top: 50%; transform: translateY(-50%) rotate(45deg); }
html.nav-open .dnav__burger span:last-child { bottom: auto; top: 50%; transform: translateY(-50%) rotate(-45deg); }
html.nav-open .dnav__cta { color: #F1F1F1; border-color: rgba(241, 241, 241, 0.3); }
html.nav-open .dnav__cta:hover { background: var(--accent); border-color: var(--accent); }

/* Overlay panel. */
.dnav-overlay {
    position: fixed; inset: 0; z-index: 990;
    background: var(--dark, #1C1D20); color: #F1F1F1;
    display: flex; align-items: center;
    padding: clamp(96px, 13vh, 150px) 0 clamp(40px, 6vh, 80px);
    overflow-x: hidden; overflow-y: auto;
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform 0.72s cubic-bezier(0.76, 0, 0.24, 1), visibility 0s linear 0.72s;
}
html.nav-open .dnav-overlay { transform: translateY(0); visibility: visible; transition: transform 0.72s cubic-bezier(0.76, 0, 0.24, 1); }
/* Curved bottom edge (the Dennis "rounded-div" — a dark bulge under the panel). */
.dnav-overlay__curve {
    position: absolute; top: 100%; left: -8%; right: -8%;
    height: clamp(40px, 8vh, 90px);
    background: var(--dark, #1C1D20);
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
    pointer-events: none;
}
.dnav-overlay__inner {
    position: relative;
    width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--pad-x);
    display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 5vw, 96px); align-items: end;
}

/* Big top-level links with hover text-swap + magnetic. */
.dnav-menu { display: flex; flex-direction: column; }
.dnav-menu__link { position: relative; display: flex; align-items: center; padding: clamp(3px, 0.6vw, 9px) 0; text-decoration: none; color: #F1F1F1; }
.dnav-menu__num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: rgba(241, 241, 241, 0.45); flex: none; }
/* Chevron marking a mega item. */
.dnav-menu__arr { display: inline-flex; align-items: center; margin-left: 0.4em; color: rgba(241, 241, 241, 0.5); transition: color 0.25s ease, transform 0.3s ease; }
.dnav-menu__arr svg { width: clamp(16px, 1.9vw, 28px); height: auto; display: block; }
@media (hover: hover) {
    .dnav-menu__link:hover .dnav-menu__arr { color: var(--accent); transform: translateY(2px); }
}
.dnav-menu__text {
    position: relative; display: inline-block; overflow: hidden; vertical-align: bottom;
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.55s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: calc(var(--i, 0) * 0.045s + 0.14s);
}
html.nav-open .dnav-menu__text { opacity: 1; transform: none; }
.dnav-menu__text-in { display: block; font-family: var(--heading); font-weight: 500; font-size: clamp(30px, 4.6vw, 76px); line-height: 1.06; letter-spacing: -0.03em; transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1); }
.dnav-menu__text-in::after { content: attr(data-text); position: absolute; left: 0; top: 100%; color: var(--accent); }
.dnav-menu__link.is-current .dnav-menu__text-in { color: var(--accent); }
@media (hover: hover) {
    .dnav-menu__link:hover .dnav-menu__text-in { transform: translateY(-100%); }
}

/* Overlay aside — contact block (bottom-right). */
.dnav-overlay__aside { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 52px); opacity: 0; transition: opacity 0.5s ease 0.32s; }
html.nav-open .dnav-overlay__aside { opacity: 1; }

/* Mega panels — float on the right, vertically aligned to the hovered item
   (dennis.js sets each active panel's top). One visible at a time. */
.dnav-overlay__panels { position: absolute; top: 0; bottom: 0; left: 52%; right: 0; pointer-events: none; z-index: 1; }
.dnav-overlay__panel {
    position: absolute; top: 0; left: 0; right: 0;
    display: none; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: clamp(20px, 2.5vw, 40px);
    pointer-events: auto;
}
.dnav-overlay__panel.is-active { display: grid; animation: dnavPanelIn 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes dnavPanelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.dnav-overlay__col { display: flex; flex-direction: column; gap: 9px; }
.dnav-overlay__col-title { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.dnav-overlay__col a,
.dnav-overlay__socials a { font-size: 14px; line-height: 1.35; color: rgba(241, 241, 241, 0.7); text-decoration: none; transition: color 0.2s ease; }
.dnav-overlay__col a:hover,
.dnav-overlay__socials a:hover { color: #F1F1F1; }
.dnav-overlay__email {
    display: inline-block; font-family: var(--heading); font-weight: 400;
    font-size: clamp(22px, 2.4vw, 34px); letter-spacing: -0.02em; color: #F1F1F1;
    text-decoration: none; padding-bottom: 5px; border-bottom: 1px solid rgba(241, 241, 241, 0.25);
    transition: color 0.25s ease, border-color 0.25s ease; margin-bottom: 18px;
}
.dnav-overlay__email:hover { color: var(--accent); border-color: var(--accent); }
.dnav-overlay__socials { display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }

@media (max-width: 900px) {
    .dnav-overlay { align-items: flex-start; }
    .dnav-overlay__inner { grid-template-columns: 1fr; gap: clamp(36px, 7vw, 60px); align-items: start; }
    /* No hover on touch — surface the mega links via their parent page instead. */
    .dnav-overlay__panels { display: none; }
    /* Generous vertical rhythm + larger type for the level-1 items. */
    .dnav-menu__link { padding: clamp(9px, 2.2vw, 15px) 0; }
    .dnav-menu__text-in { font-size: clamp(34px, 8.5vw, 60px); line-height: 1.04; }
    .dnav-menu__arr svg { width: 20px; }
}
@media (max-width: 560px) {
    .dnav__cta { display: none; }
}

/* ── Smooth-scroll base ─────────────────────────────────────────────────── */