/**
 * Base primitives — built entirely on tokens.css custom properties.
 * Every page template and every block reuses these instead of redefining
 * its own grid/button/section-header rules. Requires tokens.css first.
 */

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

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

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--fs-300);
    line-height: var(--lh-normal);
    color: var(--color-text);
    background-color: var(--color-surface);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

a {
    color: inherit;
    text-decoration: none;
}

:focus-visible {
    outline: 2px solid var(--color-focus-ring);
    outline-offset: 3px;
}

/* ---------------------------------------------------------------------- */
/* Typography                                                               */
/* ---------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-heading);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-tight);
    letter-spacing: -.02em;
    margin: 0;
}

p {
    margin: 0;
}

.section-heading {
    font-size: var(--fs-800);
}

.lead {
    color: var(--color-muted);
    font-size: var(--fs-400);
    line-height: var(--lh-normal);
}

.text-muted { color: var(--color-muted); }
.text-subtle { color: var(--color-subtle); }
.text-accent { color: var(--accent-soft); }
.text-center { text-align: center; }

/* The eyebrow/tag/label treatment used above nearly every heading */
.mono {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: var(--mono-tracking-wide);
    text-transform: uppercase;
}

.sec-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: var(--mono-tracking-wide);
    text-transform: uppercase;
    color: var(--mut-2);
    display: block;
}

.sec-num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: var(--mono-tracking);
    color: var(--accent-soft);
}

/* Long-form prose (legal pages, SEO copy sections) */
.prose {
    max-width: var(--container-max-narrow);
    margin-inline: auto;
    font-size: var(--fs-400);
    line-height: var(--lh-loose);
    color: var(--color-muted);
}

.prose > * + * {
    margin-top: var(--space-4);
}

.prose h2 {
    font-size: var(--fs-700);
    color: var(--color-heading);
    line-height: var(--lh-tight);
    margin-top: var(--space-8);
    margin-bottom: var(--space-3);
}

.prose h3 {
    font-size: var(--fs-500);
    color: var(--color-heading);
    margin-top: var(--space-6);
    margin-bottom: var(--space-2);
}

.prose strong {
    color: var(--ink);
    font-weight: var(--fw-semibold);
}

.prose a {
    color: var(--accent-soft);
}

.prose ul,
.prose ol {
    padding-left: 1.25em;
}

.prose ul {
    list-style: disc;
}

.prose ol {
    list-style: decimal;
}

.prose li + li {
    margin-top: var(--space-2);
}

.prose blockquote {
    border-left: 2px solid var(--accent-soft);
    padding-left: var(--space-4);
    font-style: italic;
    color: var(--ink);
}

.prose code {
    font-family: var(--font-mono);
    font-size: .9em;
    color: var(--accent-soft);
    background: var(--panel-2);
    padding: .15em .4em;
    border-radius: 4px;
}

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

.container--narrow {
    max-width: var(--container-max-narrow);
}

.section {
    padding-block: var(--space-9);
}

.section--tight {
    padding-block: var(--space-8);
}

.section--ruled {
    border-top: 1px solid var(--line);
}

.section--panel {
    background: var(--panel);
}

/* ---------------------------------------------------------------------- */
/* Accent track — a thin gradient line that draws in across the top of a  */
/* bordered step/feature row once it scrolls into view, plus a looping    */
/* comet pulse that travels along it. Shared by pm/approach and           */
/* pm/process-steps (any [data-track] element site.js's IntersectionObs-  */
/* erver hooks into to add "is-drawn"). Element needs position:relative.  */
/* ---------------------------------------------------------------------- */
.pm-track {
    position: relative;
    overflow: hidden;
}

.pm-track::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, var(--accent-soft), rgba(200, 68, 12, 0));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.5s var(--ease-standard);
    z-index: 3;
}

.pm-track.is-drawn::before {
    transform: scaleX(1);
}

.pm-track::after {
    content: '';
    position: absolute;
    top: -2.5px;
    left: -12%;
    width: 90px;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(90deg, transparent, var(--accent-soft), var(--accent));
    box-shadow: 0 0 16px 3px rgba(255, 138, 92, .45);
    z-index: 4;
    opacity: 0;
    pointer-events: none;
}

.pm-track.is-drawn::after {
    animation: pm-track-comet 3.6s linear .7s infinite;
}

@keyframes pm-track-comet {
    0% { left: -12%; opacity: 0; }
    9% { opacity: 1; }
    91% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .pm-track::before,
    .pm-track::after {
        display: none;
    }
}

/* ---------------------------------------------------------------------- */
/* Hero heading gradient — shared by pm/hero and pm/case-hero (any block   */
/* rendering a <h1 class="hero-h1">), so this rule must live somewhere    */
/* always-loaded rather than a single block's own style.css.              */
/* ---------------------------------------------------------------------- */
.hero-h1 {
    font-family: var(--font-heading);
    font-weight: var(--fw-semibold);
    font-size: clamp(2.6rem, 6.4vw, 5.4rem);
    line-height: .98;
    letter-spacing: -.03em;
    margin-top: 22px;
    background: linear-gradient(168deg, #F7EFE9 0%, #FFE1CE 24%, #FF9E5C 62%, #FF5E1A 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ---------------------------------------------------------------------- */
/* Glow — the soft blurred radial-gradient blob every hero/CTA scatters   */
/* behind its content. Shared base positioning; each block defines only   */
/* its own glow-a/glow-b/glow-c size, color and placement.                 */
/* ---------------------------------------------------------------------- */
.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

/* ---------------------------------------------------------------------- */
/* Breadcrumb — shared by any block-level page hero (pm/case-hero, and a  */
/* compact pm/hero used on service/sub-pages).                            */
/* ---------------------------------------------------------------------- */
.crumb {
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: var(--mono-tracking);
    color: var(--mut-2);
}

.crumb a {
    color: var(--mut);
}

.crumb a:hover {
    color: var(--accent-soft);
}

.crumb span {
    margin: 0 6px;
}

.sec-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--space-5);
    margin-bottom: var(--space-7);
}

@media (max-width: 700px) {
    .sec-head {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-4);
    }

    .sec-head .section-heading,
    .sec-head > p {
        max-width: none !important;
    }
}

.grid {
    display: grid;
    gap: var(--space-6);
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid--2 { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(3, 1fr); }
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* Bordered grid skeleton shared by KPI/disciplines/steps-style blocks —
   each block sets its own grid-template-columns + nth-child border
   suppression, since that depends on its specific column/row count. */
.bgrid {
    display: grid;
    border: 1px solid var(--line);
}

.bgrid > * {
    padding: var(--space-5);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.cluster {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4);
}

.cluster--center {
    justify-content: center;
}

.display-code {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: var(--fw-bold);
    color: var(--line-2);
    line-height: 1;
    margin-bottom: var(--space-4);
}

/* ---------------------------------------------------------------------- */
/* Buttons                                                                  */
/* ---------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 13px 24px;
    border-radius: var(--radius-sm);
    border: none;
    font-family: var(--font-body);
    font-weight: var(--fw-semibold);
    font-size: 0.906rem;
    line-height: 1;
    min-width: 0;
    cursor: pointer;
    transition: all var(--transition-base) var(--ease-standard);
}

.btn svg {
    width: 1em;
    height: 1em;
}

.btn--lg {
    font-size: 0.97rem;
    padding: 15px 30px;
}

.btn--primary {
    background-color: var(--accent);
    color: #fff;
}

.btn--primary:hover {
    filter: brightness(1.1);
}

.btn--secondary {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line-2);
}

.btn--secondary:hover {
    border-color: var(--accent);
    color: var(--accent-soft);
}

/* ---------------------------------------------------------------------- */
/* Device mockups — shared by pm/case-hero and pm/case-gallery so a       */
/* framed screenshot (or its "add screenshot" placeholder) looks the      */
/* same wherever a case-study block frames one.                          */
/* ---------------------------------------------------------------------- */
.browser-mock {
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: var(--panel);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}

.browser-bar {
    height: 38px;
    background: var(--panel-2);
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 15px;
    border-bottom: 1px solid var(--line);
}

.browser-bar i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--mut-2);
    opacity: .5;
}

.phone-mock {
    border: 9px solid var(--panel-2);
    border-radius: 30px;
    overflow: hidden;
    background: var(--panel);
    max-width: 240px;
    margin-inline: auto;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
}

.phone-mock .shot {
    aspect-ratio: 9 / 18;
}

.shot {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.shot img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.shot-ph {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    background: rgba(255, 255, 255, .015);
}

.shot-lbl {
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: var(--mono-tracking);
    text-transform: uppercase;
    color: var(--mut);
    padding: 8px 14px;
    border: 1px dashed var(--line-2);
    border-radius: 8px;
    background: rgba(0, 0, 0, .28);
}

.shot-cap {
    font-size: .9rem;
    color: var(--mut-2);
    max-width: 70%;
}

/* ---------------------------------------------------------------------- */
/* Portrait / photo frames — a real (or placeholder) photo in a rounded    */
/* bordered box with a shadow. Shared by pm/hero's portrait mode and       */
/* pm/photo-gallery. Placeholder background is a diagonal stripe so it     */
/* reads as "no image yet" rather than a broken image.                    */
/* ---------------------------------------------------------------------- */
.portrait {
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    max-width: 360px;
    margin-inline: auto;
    position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
}

.portrait img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo {
    position: relative;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: var(--panel);
    transition: transform .3s ease, box-shadow .3s ease;
}

.photo:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
}

.photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portrait-ph,
.photo-ph {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    background: repeating-linear-gradient(45deg, var(--panel), var(--panel) 14px, var(--panel-2) 14px, var(--panel-2) 28px);
}

/* ---------------------------------------------------------------------- */
/* Cards (still used by testimonials/embed and anything simple)            */
/* ---------------------------------------------------------------------- */
.card {
    display: flex;
    flex-direction: column;
    background-color: var(--color-surface-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition-base) var(--ease-standard),
                border-color var(--transition-base) var(--ease-standard);
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--line-2);
}

.card__media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: var(--panel-2);
}

.card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card__body {
    padding: var(--space-5);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card__title {
    font-size: var(--fs-500);
    margin-bottom: var(--space-2);
}

.card__meta {
    color: var(--color-muted);
    font-size: var(--fs-200);
    margin-bottom: var(--space-3);
}

.card__excerpt {
    color: var(--color-muted);
    margin-bottom: var(--space-4);
    flex: 1;
}

/* ---------------------------------------------------------------------- */
/* Notices                                                                  */
/* ---------------------------------------------------------------------- */
.notice {
    padding: var(--space-4) var(--space-5);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--color-muted);
    text-align: center;
}

/* ---------------------------------------------------------------------- */
/* Media loading (skeleton placeholder)                                    */
/* ---------------------------------------------------------------------- */
.skeleton-placeholder {
    position: relative;
    overflow: hidden;
    background-color: var(--panel-2);
}

.skeleton-placeholder img {
    opacity: 0;
    transition: opacity var(--transition-base) ease;
}

.skeleton-placeholder img.loaded {
    opacity: 1;
}

/* ---------------------------------------------------------------------- */
/* Reveal-on-scroll (driven by site.js IntersectionObserver, with a        */
/* per-sibling stagger computed in JS via --stagger)                       */
/* ---------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.85s var(--ease-standard),
                transform 0.85s var(--ease-standard);
    transition-delay: calc(var(--stagger, 0) * 90ms);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------------------------------------------------------------------- */
/* Site chrome — header (sticky "ops bar")                                 */
/* ---------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(21, 22, 26, .86);
    backdrop-filter: blur(10px);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.site-header__brand {
    font-family: var(--font-heading);
    font-weight: var(--fw-semibold);
    font-size: 1.1875rem;
    letter-spacing: -.015em;
    color: var(--ink);
}

.site-header .custom-logo-link img {
    display: block;
    width: auto;
    height: auto;
    max-height: 32px;
    max-width: 100%;
}

.site-header__right {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 26px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    letter-spacing: .02em;
    font-weight: var(--fw-medium);
    color: var(--mut);
}

.nav-menu a:hover {
    color: var(--ink);
}

/* nested submenu -> dropdown */
.nav-menu li {
    position: relative;
}

.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: -10px;
    margin-top: 12px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 8px;
    min-width: 224px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
}

.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.nav-menu .sub-menu a {
    padding: 9px 12px;
    font-family: var(--font-body);
    font-size: 0.84375rem;
    letter-spacing: 0;
    border-radius: 4px;
    color: var(--mut);
    display: block;
}

.nav-menu .sub-menu a:hover {
    background: var(--panel-2);
    color: var(--accent-soft);
}

.nav-menu li.menu-item-has-children > a::after {
    content: '\25BE';
    font-size: 8px;
    margin-left: 6px;
    opacity: .55;
    position: relative;
    top: -1px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--ink);
    cursor: pointer;
    padding: 4px;
    line-height: 0;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px 18px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
}

.mobile-nav.is-open {
    display: flex;
}

.mobile-nav .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.mobile-nav .nav-menu > li {
    position: static;
}

.mobile-nav .nav-menu a {
    display: block;
    padding: 14px 2px;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: var(--fw-regular);
    border-bottom: 1px solid var(--line);
}

.mobile-nav .nav-menu .sub-menu {
    display: none;
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 var(--space-4);
    margin: 0;
}

.mobile-nav .nav-menu li.is-open > .sub-menu {
    display: flex;
}

.mobile-nav .nav-menu .sub-menu a {
    font-size: 14px;
    color: var(--mut);
}

.mobile-nav .nav-menu li.menu-item-has-children > a::after {
    transition: transform .2s ease;
}

.mobile-nav .nav-menu li.is-open > a::after {
    transform: rotate(180deg);
}

.mobile-nav .btn {
    border: none;
    justify-content: center;
    text-align: center;
    margin-top: 14px;
}

.mobile-nav .btn--secondary {
    border: 1px solid var(--line-2);
}

.mobile-nav__ticker {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    text-align: center;
    color: var(--mut-2);
    font-size: .8125rem;
    letter-spacing: .03em;
    text-transform: none;
}

.mobile-nav__ticker b {
    color: var(--accent-soft);
    font-weight: 500;
}

@media (max-width: 820px) {
    .nav-menu { display: none; }
    .site-header__right .btn { display: none; }
    .nav-toggle { display: inline-flex; }
    .site-subbar.is-hidden-mobile-nav { display: none; }
}

/* ---------------------------------------------------------------------- */
/* Site chrome — subbar (rotating "Pulse" KPI ticker under the header)     */
/* ---------------------------------------------------------------------- */
.site-subbar {
    border-bottom: 1px solid var(--line);
    background: rgba(21, 22, 26, .72);
    backdrop-filter: blur(10px);
}

.site-subbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 42px;
    gap: 20px;
}

.site-subbar__pulse-label {
    color: var(--mut);
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.site-subbar__pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-soft);
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(255, 138, 92, .55);
    animation: site-subbar-pulse 2.2s infinite;
}

@keyframes site-subbar-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 138, 92, .5); }
    70% { box-shadow: 0 0 0 7px rgba(255, 138, 92, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 138, 92, 0); }
}

.site-subbar__ticker {
    font-family: var(--font-mono);
    font-size: .8125rem;
    letter-spacing: .03em;
    color: var(--ink);
    transition: opacity .35s;
    text-align: center;
    flex: 1;
    min-width: 0;
}

.site-subbar__ticker b {
    color: var(--accent-soft);
    font-weight: 500;
}

.site-subbar__meta {
    color: var(--mut-2);
    white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    .site-subbar__pulse {
        animation: none;
    }
}

@media (min-width: 821px) {
    .site-subbar {
        position: sticky;
        top: 56px;
        z-index: 49;
    }
}

@media (max-width: 820px) {
    .site-subbar__meta { display: none; }
}

@media (max-width: 560px) {
    .site-subbar__pulse-label { display: none; }
    .site-subbar__ticker { text-align: center; }
}

/* ---------------------------------------------------------------------- */
/* Site chrome — footer                                                    */
/* ---------------------------------------------------------------------- */
.site-footer {
    border-top: 1px solid var(--line);
}

.site-footer a {
    color: var(--mut);
}

.site-footer a:hover {
    color: var(--accent-soft);
}

.site-footer__cols {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 36px;
    padding: 52px var(--container-padding) 40px;
    max-width: var(--container-max);
    margin-inline: auto;
}

.site-footer__brand-mark {
    font-family: var(--font-heading);
    font-weight: var(--fw-semibold);
    font-size: 1.375rem;
    color: var(--ink);
}

.site-footer .custom-logo-link {
    display: inline-block;
}

.site-footer .custom-logo-link img {
    display: block;
    width: auto;
    height: auto;
    max-height: 36px;
    max-width: 100%;
}

.site-footer__blurb {
    color: var(--mut);
    font-size: 0.95rem;
    line-height: var(--lh-normal);
    margin-top: var(--space-4);
    max-width: 22rem;
}

.site-footer__address {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: var(--mono-tracking);
    color: var(--mut-2);
    margin-top: var(--space-5);
}

.site-footer__address svg {
    width: 13px;
    height: 13px;
    flex: none;
}

.site-footer__heading {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--mut-2);
    margin-bottom: var(--space-4);
}

.site-footer__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.site-footer__menu a {
    font-size: 0.96rem;
}

.site-footer__mark {
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    font-size: clamp(1.8rem, 9vw, 8rem);
    line-height: .78;
    letter-spacing: -.04em;
    color: rgba(255, 255, 255, .045);
    padding: 24px 28px 26px;
    white-space: nowrap;
    overflow: hidden;
    user-select: none;
}

.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px var(--container-padding);
    max-width: var(--container-max);
    margin-inline: auto;
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: var(--mono-tracking);
    color: var(--mut-2);
}

.site-footer__legal-menu {
    display: flex;
    gap: var(--space-5);
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 900px) {
    .site-footer__cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
    .site-footer__cols { grid-template-columns: 1fr; }
    .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------------------------------------------------------------------- */
/* Single post (single.php) — deliberately not styled via a pm/* block's   */
/* own style.css, since a raw template like this never triggers a         */
/* block's auto-enqueue. Keeps its own compact hero treatment instead of  */
/* depending on pm/hero's block-scoped .pm-hero--compact modifier.        */
/* ---------------------------------------------------------------------- */
.entry-hero {
    padding-block: clamp(34px, 5vw, 54px) clamp(40px, 5vw, 64px);
}

.entry-hero .hero-h1 {
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    margin-top: 14px;
    max-width: 26ch;
}

.entry-meta {
    display: flex;
    justify-content: flex-start;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
    color: var(--mut-2);
    margin-top: 20px;
}

.entry-meta__dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--mut-2);
    display: inline-block;
}

.entry-layout {
    margin-top: clamp(24px, 4vw, 40px);
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 40px;
    align-items: center;
}

.entry-layout--full {
    grid-template-columns: 1fr;
}

@media (max-width: 960px) {
    .entry-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

.entry-thumbnail {
    width: 100%;
    aspect-ratio: 4 / 5;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
}

.entry-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.entry-cta {
    text-align: center;
}

/* Overrides .prose's own narrower max-width (720px, shared with legal.php's
   short-copy pages) so the article body fills the same .container width
   (1180px) as the hero header above it, instead of reading noticeably
   narrower than the title/breadcrumb it sits under. */
.entry-content {
    max-width: none;
}
