/* ============================================================================
   portfolio.css — "Reservation Console" dark theme for the `portfolio` theme.

   Grounded in the subject's world (hotel reservation / booking-distribution /
   revenue systems): a midnight-ink console with a warm signal accent, cool
   channel accent, monospaced data labels, panel depth and a node-graph hero
   signature. Loaded ONLY by templates/public/themes/portfolio/base.html.twig,
   so every rule is scoped to this theme and cannot leak to other tenants.

   Palette-agnostic: canvas/chrome come from the theme base; --primary (signal)
   and --accent (cool) are tenant-driven via layout_config.
   ========================================================================== */

/* ── Console tokens (derive from --primary / --accent) ──────────────────── */
:root {
    --pf-panel: linear-gradient(160deg, var(--bg-elevated) 0%, var(--bg-secondary) 100%);
    --pf-panel-border: var(--border);
    --pf-glow-primary: color-mix(in srgb, var(--primary) 60%, transparent);
    --pf-hairline: color-mix(in srgb, var(--text) 9%, transparent);
}

/* ── Typography ─────────────────────────────────────────────────────────── */
body { font-family: var(--site-font-family, 'Inter', system-ui, sans-serif); letter-spacing: -0.005em; }
h1, h2, h3, h4, h5, h6 { font-family: var(--pf-font-head); letter-spacing: -0.03em; color: var(--text); }
::selection { background: var(--primary); color: #0a0e18; }

/* ── Ambient background: faint console grid + warm/cool glows ────────────── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(820px 520px at 88% -8%, color-mix(in srgb, var(--primary) 13%, transparent), transparent 60%),
        radial-gradient(760px 520px at -8% 12%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 58%),
        linear-gradient(transparent 0 96%, var(--pf-hairline) 96% 100%) 0 0 / 100% 64px,
        linear-gradient(90deg, transparent 0 96%, var(--pf-hairline) 96% 100%) 0 0 / 64px 100%;
}
body > * { position: relative; z-index: 1; }

/* ── Sticky translucent header ──────────────────────────────────────────── */
.site-header {
    backdrop-filter: saturate(150%) blur(14px);
    -webkit-backdrop-filter: saturate(150%) blur(14px);
    border-bottom: 1px solid var(--header-border);
}

/* ── Eyebrow / section labels (mono, console-style) ─────────────────────── */
.pf-eyebrow {
    font-family: var(--pf-font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--primary);
    margin: 0 0 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}
.pf-eyebrow::before {
    content: '';
    width: 1.6rem;
    height: 1px;
    background: var(--primary);
    opacity: 0.8;
}

.pf-wrap { max-width: 1180px; margin: 0 auto; padding: 0 2rem; }
.pf-narrow { max-width: 880px; }
.pf-head { max-width: 760px; margin: 0 auto 3rem; text-align: center; }
.pf-head .pf-eyebrow { justify-content: center; }
.pf-head .pf-section-lead { margin-inline: auto; }
.pf-section-title { font-size: clamp(1.75rem, 1rem + 2.6vw, 2.6rem); font-weight: 700; line-height: 1.08; margin: 0 0 0.85rem; }
.pf-section-lead { color: var(--text-secondary); font-size: 1.06rem; line-height: 1.75; max-width: 660px; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.pf-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.75rem; }
.pf-btn,
.page-content a.pf-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1.6rem;
    border-radius: 0.6rem;
    font-family: var(--pf-font-mono);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.pf-btn--primary,
.page-content a.pf-btn--primary {
    background: var(--primary);
    color: #0a0e18;
    border: 1px solid var(--primary);
    box-shadow: 0 6px 22px -10px var(--pf-glow-primary);
}
.pf-btn--primary:hover,
.page-content a.pf-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px -10px var(--pf-glow-primary);
}
.pf-btn--ghost,
.page-content a.pf-btn--ghost {
    background: color-mix(in srgb, var(--text) 3%, transparent);
    color: var(--text);
    border: 1px solid var(--border);
}
.pf-btn--ghost:hover,
.page-content a.pf-btn--ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.pf-btn__key { font-size: 0.78rem; opacity: 0.7; }

/* Block-section buttons keep their themed colour inside .page-content */
.page-content a.cms-section-btn { text-decoration: none; color: var(--site-btn-text, #0a0e18); }

/* Content links (excluding themed buttons/tags) */
.page-content a:not(.pf-btn):not(.cms-section-btn):not(.pf-tag):not(.pf-chip) {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
    transition: border-color 0.18s ease;
}
.page-content a:not(.pf-btn):not(.cms-section-btn):not(.pf-tag):not(.pf-chip):hover { border-bottom-color: var(--accent); }

/* ========================================================================== */
/*  HERO                                                                       */
/* ========================================================================== */
.pf-hero { position: relative; overflow: hidden; padding: clamp(4rem, 3rem + 7vw, 7.5rem) 0 clamp(3.5rem, 3rem + 4vw, 5.5rem); }
.pf-hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; }
.pf-hero__main { min-width: 0; }

.pf-hero__prompt { font-family: var(--pf-font-mono); color: var(--primary); font-size: 0.92rem; margin: 0 0 1rem; }
.pf-hero__prompt::before { content: '> '; opacity: 0.65; }
.pf-hero__title { font-size: clamp(2.6rem, 1.4rem + 5.4vw, 4.6rem); font-weight: 700; line-height: 1.0; margin: 0 0 0.85rem; letter-spacing: -0.04em; }
.pf-hero__title .pf-accent { color: var(--primary); }
.pf-hero__role {
    font-family: var(--pf-font-mono);
    font-size: clamp(0.95rem, 0.8rem + 0.7vw, 1.2rem);
    color: var(--text-secondary);
    margin: 0 0 1.4rem;
    letter-spacing: 0.01em;
}
.pf-hero__role .pf-cursor { display: inline-block; width: 0.55ch; background: var(--primary); color: transparent; animation: pf-blink 1.05s steps(1) infinite; }
@keyframes pf-blink { 50% { opacity: 0; } }

/* staggered load-in */
.pf-hero__main > * { animation: pf-rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.pf-hero__main > *:nth-child(1) { animation-delay: 0.02s; }
.pf-hero__main > *:nth-child(2) { animation-delay: 0.08s; }
.pf-hero__main > *:nth-child(3) { animation-delay: 0.14s; }
.pf-hero__main > *:nth-child(4) { animation-delay: 0.20s; }
.pf-hero__main > *:nth-child(5) { animation-delay: 0.26s; }
.pf-hero__main > *:nth-child(6) { animation-delay: 0.32s; }
@keyframes pf-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ── Stat strip (status-bar feel) ───────────────────────────────────────── */
.pf-stats { display: flex; flex-wrap: wrap; gap: clamp(1.25rem, 0.5rem + 3vw, 3rem); margin-top: 2.25rem; padding-top: 1.75rem; border-top: 1px solid var(--border); }
.pf-stat__num { font-family: var(--pf-font-head); font-size: 1.95rem; font-weight: 700; color: var(--primary); line-height: 1; }
.pf-stat__label { font-family: var(--pf-font-mono); font-size: 0.74rem; letter-spacing: 0.04em; color: var(--text-secondary); margin-top: 0.4rem; text-transform: uppercase; }

/* ── Terminal card signature ────────────────────────────────────────────── */
.pf-term {
    max-width: 460px;
    margin-inline: auto;
    font-family: var(--pf-font-mono);
    background: linear-gradient(180deg, #0c1322, #0a0f1c);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 34px 64px -34px rgba(0, 0, 0, 0.95), inset 0 1px 0 color-mix(in srgb, var(--text) 7%, transparent);
}
.pf-term__bar { display: flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1rem; background: color-mix(in srgb, var(--text) 4%, transparent); border-bottom: 1px solid var(--border); }
.pf-term__dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--border); }
.pf-term__dot:nth-child(1) { background: #ff5f57; }
.pf-term__dot:nth-child(2) { background: #febc2e; }
.pf-term__dot:nth-child(3) { background: #28c840; }
.pf-term__title { margin-left: 0.45rem; font-size: 0.76rem; color: var(--text-secondary); }
.pf-term__body { padding: 1.3rem 1.3rem 1.5rem; font-size: 0.85rem; line-height: 1.85; }
.pf-term__line { margin: 0; color: var(--text); white-space: nowrap; }
.pf-term__prompt { color: var(--primary); margin-right: 0.5rem; }
.pf-term__cmd { color: var(--accent); }
.pf-term__out { margin: 0.05rem 0 0.7rem; color: var(--text-secondary); padding-left: 1.15rem; white-space: normal; }
.pf-term__name { color: var(--text); font-weight: 700; }
.pf-term__num { color: var(--primary); }
.pf-term__ok { color: #2fd07a; }
.pf-term__caret { display: inline-block; width: 0.6ch; height: 1em; vertical-align: -0.15em; background: var(--primary); margin-left: 0.3rem; animation: pf-blink 1.05s steps(1) infinite; }
/* line-by-line reveal */
.pf-term__body > * { animation: pf-rise 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.pf-term__body > *:nth-child(1) { animation-delay: 0.15s; }
.pf-term__body > *:nth-child(2) { animation-delay: 0.30s; }
.pf-term__body > *:nth-child(3) { animation-delay: 0.45s; }
.pf-term__body > *:nth-child(4) { animation-delay: 0.60s; }
.pf-term__body > *:nth-child(5) { animation-delay: 0.75s; }
.pf-term__body > *:nth-child(6) { animation-delay: 0.90s; }
.pf-term__body > *:nth-child(7) { animation-delay: 1.05s; }
.pf-term__body > *:nth-child(8) { animation-delay: 1.20s; }

/* ========================================================================== */
/*  CARD GRIDS (services / capabilities)                                       */
/* ========================================================================== */
.pf-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.pf-card {
    position: relative;
    background: var(--pf-panel);
    border: 1px solid var(--pf-panel-border);
    border-radius: 16px;
    padding: 1.75rem 1.6rem;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.pf-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--primary), var(--accent)); opacity: 0; transition: opacity 0.2s ease; }
.pf-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); box-shadow: 0 22px 48px -28px rgba(0,0,0,0.9); }
.pf-card:hover::before { opacity: 1; }
.pf-card__icon { font-size: 1.6rem; width: 3rem; height: 3rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: color-mix(in srgb, var(--primary) 10%, transparent); border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent); margin-bottom: 1.1rem; }
.pf-card__title { font-size: 1.15rem; font-weight: 600; margin: 0 0 0.5rem; }
.pf-card__text { color: var(--text-secondary); font-size: 0.93rem; line-height: 1.65; margin: 0; }
.pf-card__list { list-style: none; padding: 0; margin: 0.9rem 0 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pf-card__list li { font-family: var(--pf-font-mono); font-size: 0.72rem; color: var(--text-secondary); border: 1px solid var(--border); border-radius: 6px; padding: 0.2rem 0.5rem; }

/* Generic CMS grid cards (demo tenant) get the same depth + hover */
.section-grid .cms-grid > div,
.section-grid .cms-grid-news-item { transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.section-grid .cms-grid > div:hover,
.section-grid .cms-grid-news-item:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--primary) 45%, var(--border)) !important; box-shadow: 0 20px 44px -26px rgba(0,0,0,0.9); }

/* ========================================================================== */
/*  PROJECT CARDS                                                              */
/* ========================================================================== */
.pf-projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; margin-top: 2.5rem; }
.pf-project {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--pf-panel);
    border: 1px solid var(--pf-panel-border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.pf-project:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--primary) 50%, var(--border)); box-shadow: 0 26px 54px -28px rgba(0,0,0,0.95); }
.pf-project__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0a1020; }
.pf-project__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s cubic-bezier(0.2,0.7,0.2,1); }
.pf-project:hover .pf-project__media img { transform: scale(1.06); }
.pf-project__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, color-mix(in srgb, var(--bg-elevated) 92%, transparent) 100%); }
.pf-chip { position: absolute; top: 0.85rem; left: 0.85rem; z-index: 2; font-family: var(--pf-font-mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary); background: color-mix(in srgb, var(--bg) 70%, transparent); border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent); backdrop-filter: blur(6px); border-radius: 999px; padding: 0.3rem 0.7rem; }
.pf-project__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.pf-project__title { font-size: 1.2rem; font-weight: 600; margin: 0; }
.pf-project__text { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.6; margin: 0; }
.pf-project__meta { margin-top: auto; padding-top: 0.8rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pf-project__meta span { font-family: var(--pf-font-mono); font-size: 0.7rem; color: var(--text-secondary); border: 1px solid var(--border); border-radius: 6px; padding: 0.18rem 0.5rem; }

/* ── Tech tags ──────────────────────────────────────────────────────────── */
.pf-tags { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.25rem; }
.pf-tag { font-family: var(--pf-font-mono); font-size: 0.8rem; color: var(--text-secondary); background: color-mix(in srgb, var(--text) 4%, transparent); border: 1px solid var(--border); border-radius: 7px; padding: 0.4rem 0.85rem; transition: color 0.18s ease, border-color 0.18s ease; }
.pf-tag:hover { color: var(--primary); border-color: color-mix(in srgb, var(--primary) 50%, var(--border)); }

/* ── Personal-details console panel ─────────────────────────────────────── */
/* fixed 3 columns → 6 cells fill 2 rows evenly (no stray gap), same on About & Contact */
.pf-detail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 2rem; background: var(--border); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
@media (max-width: 680px) { .pf-detail { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .pf-detail { grid-template-columns: 1fr; } }
.pf-detail__cell { background: var(--bg-secondary); padding: 1.1rem 1.25rem; }
.pf-detail__k { font-family: var(--pf-font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); margin: 0 0 0.35rem; }
.pf-detail__v { font-size: 0.98rem; color: var(--text); margin: 0; }
.pf-detail__v a { color: var(--accent); text-decoration: none; }
.pf-status { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--pf-font-mono); font-size: 0.82rem; color: var(--text); }
.pf-status__dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: #2fd07a; box-shadow: 0 0 0 0 rgba(47,208,122,0.6); animation: pf-avail 2s ease-out infinite; }
@keyframes pf-avail { 0% { box-shadow: 0 0 0 0 rgba(47,208,122,0.55); } 70%,100% { box-shadow: 0 0 0 8px rgba(47,208,122,0); } }

/* ── Resume timeline ────────────────────────────────────────────────────── */
.pf-timeline { position: relative; margin: 2rem 0 0; padding-left: 2rem; }
.pf-timeline::before { content: ''; position: absolute; left: 0.34rem; top: 0.5rem; bottom: 0.5rem; width: 2px; background: linear-gradient(180deg, var(--primary), color-mix(in srgb, var(--primary) 8%, transparent)); }
.pf-tl-item { position: relative; padding: 0 0 2.25rem 1.75rem; }
.pf-tl-item:last-child { padding-bottom: 0; }
.pf-tl-item::before { content: ''; position: absolute; left: -1.78rem; top: 0.3rem; width: 0.78rem; height: 0.78rem; border-radius: 50%; background: var(--bg); border: 2px solid var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 13%, transparent); }
.pf-tl-item--now::before { background: var(--primary); }
.pf-tl-date { font-family: var(--pf-font-mono); font-size: 0.78rem; color: var(--primary); letter-spacing: 0.02em; display: inline-flex; align-items: center; gap: 0.5rem; }
.pf-tl-now { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em; color: #0a0e18; background: var(--primary); border-radius: 5px; padding: 0.05rem 0.4rem; }
.pf-tl-role { font-size: 1.18rem; font-weight: 600; margin: 0.3rem 0 0.1rem; }
.pf-tl-org { font-family: var(--pf-font-mono); color: var(--accent); font-size: 0.88rem; margin: 0 0 0.55rem; }
.pf-tl-desc { color: var(--text-secondary); line-height: 1.7; font-size: 0.95rem; margin: 0; }
.pf-tl-stack { list-style: none; padding: 0; margin: 0.8rem 0 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pf-tl-stack li { font-family: var(--pf-font-mono); font-size: 0.7rem; color: var(--text-secondary); border: 1px solid var(--border); border-radius: 6px; padding: 0.16rem 0.5rem; }

/* ── Skill meters ───────────────────────────────────────────────────────── */
.pf-skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 2.5rem; margin-top: 2rem; }
.pf-skill__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.55rem; }
.pf-skill__name { font-weight: 600; }
.pf-skill__pct { font-family: var(--pf-font-mono); font-size: 0.8rem; color: var(--primary); }
.pf-skill__track { height: 7px; border-radius: 999px; background: var(--bg-secondary); border: 1px solid var(--border); overflow: hidden; }
.pf-skill__fill { display: block; height: 100%; width: var(--pf-w, 0%); border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--accent)); animation: pf-grow 1.1s cubic-bezier(0.16, 0.84, 0.44, 1) both; }
@keyframes pf-grow { from { width: 0; } to { width: var(--pf-w, 0%); } }

/* ── Tech-stack chip grid ───────────────────────────────────────────────── */
.pf-stack__grid { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }
.pf-stack__chip {
    font-family: var(--pf-font-mono);
    font-size: 0.92rem;
    color: var(--text-secondary);
    padding: 0.7rem 1.2rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: color-mix(in srgb, var(--text) 3%, transparent);
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.pf-stack__chip:hover {
    border-color: var(--primary);
    color: var(--text);
    transform: translateY(-2px);
    background: color-mix(in srgb, var(--primary) 8%, transparent);
}

/* ── Contact form on dark ───────────────────────────────────────────────── */
.section-contact .cms-form-control { background: var(--bg-secondary); border: 1px solid var(--border); color: var(--text); }
.section-contact .cms-form-control::placeholder { color: var(--text-secondary); }
.section-contact .cms-form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent); outline: none; }

/* ── Blog listing cards (reuse .pf-project) + long-form post ─────────────── */
/* auto-fill (not auto-fit) so a single post stays card-sized instead of stretching */
.pf-blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; margin-top: 2.5rem; }
.pf-blog-date { font-family: var(--pf-font-mono); font-size: 0.76rem; color: var(--primary); letter-spacing: 0.02em; margin-bottom: 0.3rem; }

.pf-post__title { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.03em; margin: 0.6rem 0 1.6rem; }
.pf-post__body { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.85; }
.pf-post__body h2 { color: var(--text); font-size: 1.45rem; margin: 2.4rem 0 0.8rem; }
.pf-post__body h3 { color: var(--text); font-size: 1.12rem; margin: 1.7rem 0 0.5rem; }
.pf-post__body p { margin: 0 0 1.1rem; }
.pf-post__body ul { margin: 0 0 1.2rem; padding-left: 1.3rem; }
.pf-post__body li { margin: 0 0 0.45rem; }
.pf-post__body li::marker { color: var(--primary); }
.pf-post__body strong { color: var(--text); }
.pf-post__back { margin-top: 2.5rem; }
/* Footer legal-links row (rendered inside .cms-footer__extra, above copyright) */
.pf-legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; justify-content: center; font-family: var(--pf-font-mono); font-size: 0.78rem; margin-top: 0.5rem; }
.pf-legal a { color: var(--text-secondary); text-decoration: none; }
.pf-legal a:hover { color: var(--primary); }
.pf-post__body .pf-callout { background: color-mix(in srgb, var(--primary) 7%, transparent); border-left: 3px solid var(--primary); border-radius: 0 10px 10px 0; padding: 0.9rem 1.25rem; margin: 0 0 1.4rem; color: var(--text); font-size: 1rem; }
.pf-post__body .pf-callout strong { color: var(--primary); }
.pf-post__body figure { margin: 1.9rem 0; }
.pf-post__body figure img { width: 100%; border: 1px solid var(--border); border-radius: 12px; display: block; }
.pf-post__body figcaption { font-family: var(--pf-font-mono); font-size: 0.76rem; color: var(--text-secondary); margin-top: 0.55rem; text-align: center; }
.pf-post__body :not(pre) > code { font-family: var(--pf-font-mono); font-size: 0.86em; background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--text); padding: 0.12em 0.42em; border-radius: 5px; }
.pf-post__body pre { background: color-mix(in srgb, var(--text) 4%, transparent); border: 1px solid var(--border); border-radius: 12px; padding: 1.1rem 1.3rem; margin: 0 0 1.5rem; overflow-x: auto; }
.pf-post__body pre code { font-family: var(--pf-font-mono); font-size: 0.84rem; line-height: 1.65; color: var(--text); background: none; padding: 0; white-space: pre; }
.pf-post__body pre .pf-code-lang { display: block; font-family: var(--pf-font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 0.6rem; }
.pf-post__body .pf-table-wrap { overflow-x: auto; margin: 0 0 1.6rem; }
.pf-post__body table { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
.pf-post__body th, .pf-post__body td { text-align: left; padding: 0.7rem 1rem; border-bottom: 1px solid var(--border); }
.pf-post__body thead th { color: var(--text); font-weight: 600; border-bottom: 2px solid var(--border); }
.pf-post__body tbody td:last-child { color: var(--primary); font-family: var(--pf-font-mono); font-size: 0.86rem; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .pf-hero__grid { grid-template-columns: 1fr; }
    .pf-hero__aside { order: -1; max-width: 360px; margin-inline: auto; }
    .pf-skills { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .pf-wrap { padding: 0 1.25rem; }
    .pf-stats { gap: 1.25rem 1.75rem; }
}

/* ── Resume section: console refinement of the theme-agnostic .cms-resume base ── */
.section-resume .cms-resume { max-width: 880px; }
.section-resume .cms-resume-eyebrow {
    font-family: var(--pf-font-mono); letter-spacing: 0.16em; color: var(--primary);
    display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 400;
}
.section-resume .cms-resume-eyebrow::before { content: ''; width: 1.6rem; height: 1px; background: var(--primary); opacity: 0.8; }
.section-resume .cms-resume-heading { font-family: var(--pf-font-head); letter-spacing: -0.03em; }
.section-resume .cms-resume-cv-btn { font-family: var(--pf-font-mono); font-weight: 500; border-radius: 0.6rem; box-shadow: 0 6px 22px -10px var(--pf-glow-primary); }
.section-resume .cms-resume-timeline::before { opacity: 1; background: linear-gradient(180deg, var(--primary), color-mix(in srgb, var(--primary) 8%, transparent)); }
.section-resume .cms-resume-item::before { box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 13%, transparent); }
.section-resume .cms-resume-period { font-family: var(--pf-font-mono); font-weight: 400; }
.section-resume .cms-resume-now { color: #0a0e18; }
.section-resume .cms-resume-org { font-family: var(--pf-font-mono); color: var(--accent); }
.section-resume .cms-resume-skills li { font-family: var(--pf-font-mono); }

/* ── Skills section: console refinement of the .cms-skill* base ── */
.section-skills .cms-skills-eyebrow {
    font-family: var(--pf-font-mono); letter-spacing: 0.16em; color: var(--primary);
    display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 400;
}
.section-skills .cms-skills-eyebrow::before { content: ''; width: 1.6rem; height: 1px; background: var(--primary); opacity: 0.8; }
.section-skills .cms-skills-heading { font-family: var(--pf-font-head); letter-spacing: -0.03em; }
.section-skills .cms-skill-pct { font-family: var(--pf-font-mono); }
.section-skills .cms-skill-tech { font-family: var(--pf-font-mono); }

/* ── Respect reduced motion ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .pf-hero__main > *, .pf-skill__fill, .cms-skill-fill, .pf-term__body > *, .pf-term__caret, .pf-status__dot, .pf-hero__role .pf-cursor { animation: none !important; }
    .pf-project__media img { transition: none; }
}
