/* ======================================================================
   budiak.net  v8 — dark editorial, magazine-cover treatment
   Photo full-viewport via #bg-fixed (kept as-is from pre-rebrand).
   Central narrow column (max 820px) with semi-transparent warm-black
   background. Content scrolls over the fixed photo.
   Type system: Fraunces (display+body, allcaps for hero impact).
   Inter (UI, eyebrows, nav). JBM only for the budiak· wordmark.
   Single accent: oxblood #B83434, brightened for legibility on dark.
   No CRT, no glitch, no orange, no ASCII brackets.
   ====================================================================== */

@import url("fonts.css");

:root {
    --serif:   "Fraunces", "Iowan Old Style", "Charter", Georgia, serif;
    --sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    --mono:    "JetBrains Mono", ui-monospace, "IBM Plex Mono", Menlo, monospace;

    --bg:           #0B0908;
    --column:       rgba(11, 9, 7, 0.91);

    --text:         #ECE6D8;
    --text-mute:    #A8A096;
    --text-faint:   #6E685D;

    --rule:         rgba(236, 230, 216, 0.16);
    --rule-soft:    rgba(236, 230, 216, 0.08);

    --oxblood:      #B83434;
    --oxblood-soft: #D45353;
    --oxblood-tint: rgba(184, 52, 52, 0.22);

    --max-shell:    820px;
    --max-read:     660px;
    --gutter:       2.4rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.62;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern", "liga", "calt", "ss01";
}

/* ── Photo backdrop (kept from pre-rebrand mechanics) ──────────── */
#bg-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -999;
    background-image: url("Assets/budiaksec-main.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
}
@media (max-width: 768px) {
    #bg-fixed { opacity: 0.34; }
}

a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 1px;
    transition: color .15s, border-color .15s;
}
a:hover { color: var(--oxblood-soft); border-bottom-color: var(--oxblood-soft); }
::selection { background: var(--oxblood); color: var(--text); }

/* ── Central column ────────────────────────────────────────────── */
.shell {
    position: relative;
    background: var(--column);
    max-width: var(--max-shell);
    margin: 0 auto;
    padding: 0;
    box-shadow:
        0 0 0 1px rgba(236, 230, 216, 0.04),
        0 0 80px rgba(0, 0, 0, 0.55);
    border-left: 1px solid rgba(236, 230, 216, 0.04);
    border-right: 1px solid rgba(236, 230, 216, 0.04);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.shell > footer.site { margin-top: auto; }

/* ── Topbar ────────────────────────────────────────────────────── */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 9, 7, 0.96);
    backdrop-filter: saturate(0.95) blur(8px);
    -webkit-backdrop-filter: saturate(0.95) blur(8px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem var(--gutter) 0.9rem;
    border-bottom: 1px solid var(--rule);
    gap: 2rem;
    margin-left: -1px;
    margin-right: -1px;
}
.wordmark {
    display: inline-flex;
    align-items: center;
    color: var(--text);
    border: none;
    padding: 0;
    line-height: 0;
}
.wordmark img { display: block; height: 80px; width: auto; }
.wordmark:hover img { opacity: 0.86; }
@media (max-width: 600px) { .wordmark img { height: 60px; } }

.topbar nav {
    display: flex;
    gap: 1.4rem;
    font-family: var(--sans);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: .005em;
}
.topbar nav a {
    color: var(--text-mute);
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}
.topbar nav a:hover { color: var(--text); border-bottom-color: var(--text); }
.topbar nav a.active { color: var(--text); border-bottom-color: var(--oxblood); }

@media (max-width: 600px) {
    .topbar { flex-direction: column; align-items: flex-start; gap: .6rem; padding: 1.2rem 1.4rem 1rem; }
    .topbar nav { gap: 1rem; flex-wrap: wrap; font-size: 12px; }
}

/* ── Eyebrow ───────────────────────────────────────────────────── */
.eyebrow {
    font-family: var(--sans);
    font-weight: 500;
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--text-faint);
    display: inline-block;
    margin-bottom: 1.2rem;
}
.eyebrow .ox { color: var(--oxblood); }
.eyebrow .sep { color: var(--rule); margin: 0 .55rem; }

/* ── Type ──────────────────────────────────────────────────────── */
.h1 {
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1.02;
    letter-spacing: -.022em;
    color: var(--text);
    margin-bottom: 1rem;
    text-transform: uppercase;
}
.h2 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(26px, 3.4vw, 40px);
    line-height: 1.08;
    letter-spacing: -.018em;
    color: var(--text);
    margin-bottom: .8rem;
}
.h2 .stop { color: var(--oxblood); }
.h3 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -.012em;
    color: var(--text);
    margin-bottom: .4rem;
}
.h3 .stop { color: var(--oxblood); }

p.lede {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 19px;
    line-height: 1.5;
    color: var(--text-mute);
    max-width: var(--max-read);
    margin-bottom: 1.4rem;
}
p.body {
    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    max-width: var(--max-read);
    margin-bottom: 1rem;
}
p.body strong { font-weight: 600; }
p.body em { font-style: italic; color: var(--text); }

/* ── Hero (magazine cover) ─────────────────────────────────────── */
.hero {
    padding: 4.2rem var(--gutter) 4rem;
    border-bottom: 1px solid var(--rule);
}
.hero-headline { font-family: var(--serif); font-weight: 700; font-size: clamp(38px, 9vw, 108px);
    line-height: 0.96;
    letter-spacing: -.028em;
    text-transform: uppercase;
    color: var(--text);
    margin: .4rem 0 1.6rem;
}
.hero-headline .stop { color: var(--oxblood); }
.hero-bio {
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1.55;
    color: var(--text-mute);
    margin-bottom: 1.8rem;
    max-width: 580px;
}
.hero-bio strong { font-weight: 600; color: var(--text); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

@media (max-width: 600px) { .hero { padding: 2.8rem 1.4rem 2.6rem; } }

/* ── Section / row ─────────────────────────────────────────────── */
section.row {
    padding: 3.6rem var(--gutter);
    border-bottom: 1px solid var(--rule-soft);
}
section.row:last-of-type { border-bottom: none; }
.row-head { margin-bottom: 2rem; max-width: var(--max-read); }
.row-head .eyebrow { margin-bottom: .5rem; }

@media (max-width: 600px) { section.row { padding: 2.6rem 1.4rem; } }

/* ── Page header (subpages) ────────────────────────────────────── */
.page-head { padding: 3.2rem var(--gutter) 2.2rem; border-bottom: 1px solid var(--rule); }
.page-head .h1 { margin-bottom: .8rem; }
.page-head p.lede { margin-bottom: 0; }
@media (max-width: 600px) { .page-head { padding: 2.4rem 1.4rem 1.8rem; } }

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    background: var(--text);
    color: var(--bg);
    padding: 12px 22px;
    font-family: var(--sans);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: .005em;
    border: 1px solid var(--text);
    transition: all .15s;
    line-height: 1;
    cursor: pointer;
}
.btn:hover { background: var(--oxblood); border-color: var(--oxblood); color: var(--text); }
.btn-ghost {
    display: inline-block;
    background: transparent;
    color: var(--text-mute);
    padding: 11px 20px;
    font-family: var(--sans);
    font-weight: 500;
    font-size: 13px;
    border: 1px solid var(--rule);
    transition: all .15s;
    line-height: 1;
}
.btn-ghost:hover { border-color: var(--text); color: var(--text); }

/* ── Do-list (3 services) ──────────────────────────────────────── */
.do-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); }
.do-item { padding: 1.6rem 1.2rem 1.6rem 0; border-right: 1px solid var(--rule-soft); }
.do-item:last-child { border-right: none; padding-right: 0; }
.do-item .num { font-family: var(--sans); font-weight: 500; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--oxblood); margin-bottom: .7rem; display: block; }
.do-item h3 { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.1; color: var(--text); margin-bottom: .5rem; letter-spacing: -.012em; }
.do-item h3 .stop { color: var(--oxblood); }
.do-item p { font-family: var(--serif); font-size: 15px; line-height: 1.5; color: var(--text-mute); }
@media (max-width: 768px) {
    .do-list { grid-template-columns: 1fr; }
    .do-item { padding: 1.4rem 0; border-right: none; border-bottom: 1px solid var(--rule-soft); }
    .do-item:last-child { border-bottom: none; }
}

/* ── Stack list (products) ─────────────────────────────────────── */
.stack-list { list-style: none; margin-top: 1rem; }
.stack-list li { border-bottom: 1px solid var(--rule-soft); }
.stack-list li:first-child { border-top: 1px solid var(--rule-soft); }
.stack-list a {
    display: grid;
    grid-template-columns: 200px 1fr 32px;
    gap: 1.6rem;
    padding: 1.2rem .4rem 1.2rem 0;
    align-items: baseline;
    border: none;
    transition: padding-left .18s, background .12s;
}
.stack-list a:hover { background: rgba(236, 230, 216, 0.04); padding-left: .8rem; color: var(--text); }
.stack-list strong { font-family: var(--serif); font-weight: 600; font-size: 21px; color: var(--text); letter-spacing: -.012em; }
.stack-list a:hover strong { color: var(--oxblood-soft); }
.stack-list .desc { font-family: var(--serif); font-size: 15px; color: var(--text-mute); line-height: 1.45; }
.stack-list .arrow { font-family: var(--sans); font-size: 18px; color: var(--text-faint); text-align: right; }
.stack-list a:hover .arrow { color: var(--oxblood-soft); }
@media (max-width: 768px) {
    .stack-list a { grid-template-columns: 1fr; gap: .25rem; padding: 1rem .3rem; }
    .stack-list .arrow { display: none; }
}

/* ── Reach ─────────────────────────────────────────────────────── */
.reach { display: flex; align-items: baseline; gap: 1.4rem; flex-wrap: wrap; }
.reach .email {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 28px;
    letter-spacing: -.014em;
    color: var(--text);
    border-bottom: 2px solid var(--oxblood-tint);
    padding-bottom: 1px;
}
.reach .email:hover { color: var(--oxblood-soft); border-bottom-color: var(--oxblood-soft); }
.reach .note { font-family: var(--serif); font-size: 16px; color: var(--text-mute); padding: 0; border: none; max-width: 360px; }
@media (max-width: 600px) { .reach .email { font-size: 22px; } }

/* ── Cases / work ──────────────────────────────────────────────── */
.case { padding: 2.4rem 0; border-bottom: 1px solid var(--rule-soft); }
.case:last-of-type { border-bottom: none; }
.case-meta { display: flex; flex-wrap: wrap; font-family: var(--sans); font-weight: 500; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: .9rem; }
.case-meta span { padding: 0 .9rem; border-right: 1px solid var(--rule); }
.case-meta span:first-child { padding-left: 0; color: var(--oxblood); }
.case-meta span:last-child { border-right: none; }
.case-title { font-family: var(--serif); font-weight: 600; font-size: clamp(22px, 3.2vw, 32px); line-height: 1.1; color: var(--text); margin-bottom: .8rem; letter-spacing: -.022em; max-width: var(--max-read); }
.case-lede { font-family: var(--serif); font-size: 17px; line-height: 1.5; color: var(--text); margin-bottom: 1rem; max-width: var(--max-read); }
.case-prose { font-family: var(--serif); font-size: 16px; line-height: 1.65; color: var(--text-mute); }
.case-prose p { margin-bottom: .9rem; max-width: var(--max-read); }
.case-prose p strong { color: var(--text); font-weight: 600; }
.case-prose h4 { font-family: var(--sans); font-weight: 600; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--oxblood); margin: 1.4rem 0 .5rem; }

/* ── Shapes (services breakdown) ───────────────────────────────── */
.shapes { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 1rem; border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); }
.shape { padding: 1.5rem 1.1rem 1.5rem 0; border-right: 1px solid var(--rule-soft); }
.shape:last-child { border-right: none; padding-right: 0; }
.shape .num { font-family: var(--sans); font-weight: 500; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--oxblood); margin-bottom: .5rem; display: block; }
.shape h3 { font-family: var(--serif); font-weight: 600; font-size: 19px; line-height: 1.15; color: var(--text); margin-bottom: .25rem; letter-spacing: -.01em; }
.shape h3 .stop { color: var(--oxblood); }
.shape .sub { font-family: var(--sans); font-size: 11px; color: var(--text-faint); margin-bottom: .7rem; letter-spacing: .14em; text-transform: uppercase; }
.shape p { font-family: var(--serif); font-size: 15px; line-height: 1.5; color: var(--text-mute); }
@media (max-width: 768px) {
    .shapes { grid-template-columns: 1fr; }
    .shape { padding: 1.2rem 0; border-right: none; border-bottom: 1px solid var(--rule-soft); }
    .shape:last-child { border-bottom: none; }
}

/* ── Refusals ──────────────────────────────────────────────────── */
.refusal { border: 1px solid var(--rule); background: rgba(20, 18, 14, 0.4); padding: 1.4rem 1.4rem; margin: 1.4rem 0 .4rem; max-width: var(--max-read); }
.refusal ul { list-style: none; }
.refusal li { font-family: var(--serif); font-size: 15px; line-height: 1.5; color: var(--text); padding: .6rem 0; border-bottom: 1px dashed var(--rule); display: flex; gap: 1rem; }
.refusal li:last-child { border-bottom: none; }
.refusal li::before { content: "—"; color: var(--oxblood-soft); flex-shrink: 0; font-weight: 600; }

/* ── About spec list ───────────────────────────────────────────── */
.spec-list { display: flex; flex-direction: column; }
.spec-row { display: grid; grid-template-columns: 180px 1fr; gap: 1.6rem; padding: 1rem 0; border-bottom: 1px solid var(--rule-soft); align-items: baseline; }
.spec-row:first-child { border-top: 1px solid var(--rule-soft); }
.spec-key { font-family: var(--sans); font-weight: 500; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-faint); }
.spec-val { font-family: var(--serif); font-size: 16px; line-height: 1.5; color: var(--text); }
.spec-val em { font-style: italic; }
.spec-val small { display: block; font-family: var(--sans); font-size: 12px; color: var(--text-faint); margin-top: .3rem; }
@media (max-width: 600px) { .spec-row { grid-template-columns: 1fr; gap: .25rem; padding: .8rem 0; } }

/* ── Cert row (verified credly badges, locally hosted) ────────── */
.cert-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 1.4rem; border: 1px solid var(--rule); }
@media (max-width: 600px) { .cert-row { grid-template-columns: repeat(2, 1fr); } }
.cert-row a {
    background: rgba(20, 18, 14, 0.4);
    padding: 1.4rem .8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: .8rem;
    min-height: 132px;
    border: none;
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    transition: background .15s, transform .15s;
}
.cert-row a:nth-child(3n) { border-right: none; }
.cert-row a:nth-last-child(-n+3):nth-child(3n+1),
.cert-row a:nth-last-child(-n+3):nth-child(3n+1) ~ a { border-bottom: none; }
.cert-row a:hover {
    background: rgba(236, 230, 216, 0.06);
    transform: translateY(-1px);
}
.cert-row img {
    max-width: 64px;
    max-height: 64px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(1.05) contrast(.96);
    transition: filter .15s, transform .15s;
}
/* SVG vendor logos (the 5 non-CISM) need brightening on dark bg */
.cert-row a:not(:first-child) img {
    filter: brightness(0) invert(.92) opacity(.78);
    max-height: 36px;
}
.cert-row a:not(:first-child):hover img {
    filter: brightness(0) invert(1) opacity(1);
}
.cert-row a:first-child:hover img {
    filter: brightness(1.1) contrast(1);
    transform: scale(1.04);
}
.cert-row span {
    font-family: var(--sans);
    font-weight: 500;
    font-size: 11px;
    letter-spacing: .14em;
    color: var(--text-mute);
    text-transform: uppercase;
    text-align: center;
}
.cert-row a:hover span { color: var(--oxblood-soft); }

/* ── Privacy ───────────────────────────────────────────────────── */
.privacy-row { padding: 1.2rem 0; border-bottom: 1px solid var(--rule-soft); }
.privacy-row:last-child { border-bottom: none; }
.privacy-row h3 { font-family: var(--sans); font-weight: 600; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--oxblood); margin-bottom: .4rem; }
.privacy-row p { font-family: var(--serif); font-size: 16px; line-height: 1.6; color: var(--text); max-width: var(--max-read); margin: 0; }

/* ── Footer ────────────────────────────────────────────────────── */
footer.site {
    border-top: 1px solid var(--rule);
    padding: 1.4rem var(--gutter);
    background: var(--column);
    font-family: var(--sans);
    font-size: 12px;
    color: var(--text-faint);
}
footer.site .inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}
footer.site .wm { display: inline-flex; align-items: center; line-height: 0; border: none; padding: 0; }
footer.site .wm img { display: block; height: 32px; width: auto; opacity: 0.92; }
footer.site .wm:hover img { opacity: 0.7; }
@media (max-width: 600px) { footer.site .wm img { height: 28px; } }

/* ── Proof one-liners (home page) ──────────────────────────────── */
.proof { padding: 2.8rem var(--gutter) 3.4rem; }
.proof-list { display: flex; flex-direction: column; }
.proof-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1.6rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--rule-soft);
    align-items: baseline;
}
.proof-row:first-child { border-top: 1px solid var(--rule-soft); }
.proof-meta {
    font-family: var(--sans);
    font-weight: 500;
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--oxblood);
}
.proof-line {
    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.5;
    color: var(--text);
}
@media (max-width: 600px) {
    .proof { padding: 2.2rem 1.4rem 2.6rem; }
    .proof-row { grid-template-columns: 1fr; gap: .3rem; padding: .9rem 0; }
}
footer.site a { color: var(--text-mute); border: none; padding: 0; }
footer.site a:hover { color: var(--text); }
@media (max-width: 600px) { footer.site { padding: 1.4rem 1.4rem; } }

/* ── Reveal + back-to-top ──────────────────────────────────────── */
.reveal-item { opacity: 1; transform: none; }
.reveal-item.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal-item { opacity: 1; transform: none; transition: none; } }

#btn-top {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    border: 1px solid var(--rule);
    background: rgba(14, 12, 10, 0.92);
    color: var(--text-mute);
    cursor: pointer;
    width: 36px;
    height: 36px;
    font-family: var(--sans);
    font-size: 13px;
    line-height: 1;
    border-radius: 0;
    padding: 0;
    transition: all .15s;
}
#btn-top:hover { background: var(--oxblood); color: var(--text); border-color: var(--oxblood); }
#btn-top.show { display: block; }
@media (max-width: 600px) { #btn-top { bottom: 18px; right: 18px; } }

