/* ==========================================================================
   Ruksana Mustafa — Operations & Finance Portfolio
   Palette: white + royal beige, charcoal anchor
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/source-serif-4-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/manrope-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2"); }

:root {
    --white: #ffffff;
    --ivory: #faf8f4;
    --sand: #f3ece1;
    --sand-deep: #ece2d2;
    --line: #ebe5dc;
    --line-strong: #dcd2c3;

    --gold: #8b6b3f;        /* royal beige — text-safe on white */
    --gold-deep: #745830;
    --gold-soft: #b89b72;
    --gold-pale: #e7dbc7;
    --gold-light: #d8c19c;  /* beige text on charcoal */

    --charcoal: #23201c;
    --charcoal-2: #2e2a25;
    --ink: #1f1c19;
    --text: #4a433d;
    --muted: #6e655d;
    --on-dark: #e9e3da;
    --on-dark-muted: #b3aaa0;

    --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
    --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    --container: 1180px;
    --gutter: 1.25rem;
    --radius: 6px;
    --header-h: 80px;
    --shadow: 0 24px 50px -28px rgba(35, 32, 28, .28);
    --shadow-sm: 0 10px 28px -18px rgba(35, 32, 28, .22);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
    margin: 0;
    background: var(--white);
    color: var(--text);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a, button { -webkit-tap-highlight-color: transparent; }
img { height: auto; }
a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-deep); }
h1, h2, h3, h4 {
    margin: 0 0 .55em;
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.15;
    color: var(--ink);
    letter-spacing: -.015em;
    font-variant-numeric: lining-nums;
}
h1 em, h2 em, h3 em { font-style: normal; color: var(--gold); }
p { margin: 0 0 1.25em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
::selection { background: var(--gold-pale); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; color: #fff; }

.container { width: min(100% - (var(--gutter) * 2), var(--container)); margin-inline: auto; }

/* ---------- Typography helpers ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: .75rem;
    margin: 0 0 1rem;
    font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
    color: var(--gold);
}
.eyebrow::before { content: ""; width: 1.75rem; height: 2px; background: var(--gold-soft); }
.eyebrow-num { color: var(--ink); letter-spacing: .08em; margin-right: .1rem; }
.eyebrow-num + * { margin-left: 0; }
.eyebrow--light { color: var(--gold-light); }
.eyebrow--light::before { background: var(--gold-soft); }
.h2 { font-size: clamp(2rem, 3.6vw, 2.85rem); }
.lead { font-size: 1.1rem; color: var(--text); }

.section { padding: clamp(4.5rem, 8.5vw, 7rem) 0; position: relative; }
.section--ivory { background: var(--ivory); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head p:last-child { margin-bottom: 0; }
.section-head .h2 { margin-bottom: 0; }
.section-head--split { max-width: none; display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem 4rem; align-items: end; }
.section-intro { margin: 0; color: var(--muted); font-size: 1.02rem; max-width: 30rem; justify-self: end; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
    padding: 1rem 1.7rem;
    font: 700 .8rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
    border: 1px solid transparent; border-radius: var(--radius);
    cursor: pointer; white-space: nowrap;
    transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--gold); color: #fff; }
.btn--primary:hover { background: var(--gold-deep); color: #fff; box-shadow: 0 12px 24px -14px rgba(116, 88, 48, .9); }
.btn--outline { border-color: var(--line-strong); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }
.btn--light { background: var(--gold-light); color: var(--charcoal); }
.btn--light:hover { background: #fff; color: var(--charcoal); }
.btn--sm { padding: .78rem 1.2rem; font-size: .74rem; }
.btn--primary.is-current { background: var(--charcoal); color: var(--gold-light); }
.btn[disabled] { opacity: .7; cursor: progress; }

.link-arrow {
    display: inline-flex; align-items: center; gap: .55rem;
    font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--gold); border-bottom: 1px solid var(--gold-pale); padding-bottom: .3rem;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.25rem; }
.chip {
    font-size: .74rem; font-weight: 600; letter-spacing: .02em;
    padding: .32rem .7rem; border-radius: 4px;
    color: var(--gold-deep); background: var(--sand); border: 1px solid var(--gold-pale);
}

/* ---------- Top bar ---------- */
.topbar { background: var(--charcoal); color: var(--on-dark-muted); font-size: .8rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar-note { margin: 0; display: inline-flex; align-items: center; gap: .6rem; letter-spacing: .02em; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #7fb27a; box-shadow: 0 0 0 3px rgba(127, 178, 122, .2); }
.topbar-mail { display: inline-flex; align-items: center; gap: .5rem; color: var(--gold-light); font-weight: 600; }
.topbar-mail:hover { color: #fff; }
.topbar-mail svg { width: 15px; height: 15px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -22px rgba(35, 32, 28, .35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .85rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
    flex: none; display: grid; place-items: center;
    width: 44px; height: 44px; border-radius: var(--radius);
    background: var(--charcoal);
    font-family: var(--serif); font-size: 1.05rem; font-weight: 600; letter-spacing: .04em;
    color: var(--gold-light);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-size: 1.22rem; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.brand-sub { font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-top: .25rem; }

.nav { display: flex; align-items: center; gap: 2.25rem; }
.nav-list { display: flex; gap: 2rem; }
.nav-link { position: relative; padding: .4rem 0; font-size: .9rem; font-weight: 600; color: var(--text); }
.nav-link::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
    background: var(--gold); transform: scaleX(0); transform-origin: left;
    transition: transform .3s var(--ease);
}
.nav-link:hover, .nav-link.is-active { color: var(--ink); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }

.nav-toggle {
    display: none; position: relative;
    width: 44px; height: 44px; padding: 0;
    background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius);
    cursor: pointer;
}
.nav-toggle-bar { position: absolute; left: 50%; width: 18px; height: 2px; margin-left: -9px; background: var(--ink); transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle-bar:nth-of-type(2) { top: 17px; }
.nav-toggle-bar:nth-of-type(3) { top: 24px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-of-type(2) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-of-type(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(1.75rem, 3.5vw, 2.75rem) 0 clamp(2.25rem, 4vw, 3rem); background: linear-gradient(180deg, #fff 0%, var(--ivory) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.hero-title { font-size: clamp(2.6rem, 5vw, 3.9rem); line-height: 1.04; margin-bottom: .3em; letter-spacing: -.025em; }
.hero-cred {
    display: flex; flex-wrap: wrap; align-items: center; gap: .75rem;
    margin: 0 0 1.1rem;
    font-size: .86rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
}
.hero-cred .sep { color: var(--gold-pale); font-weight: 400; }
.hero-text { max-width: 36rem; font-size: 1.08rem; color: var(--text); margin-bottom: 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero-facts {
    display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0;
    margin-top: 1.75rem; max-width: 36rem;
    border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.hero-facts > div { padding: .8rem 1.4rem; border-left: 1px solid var(--line); }
.hero-facts > div:first-child { border-left: 0; }
.hero-facts dt { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero-facts dd { margin-top: .2rem; font-family: var(--serif); font-size: 1.1rem; font-weight: 600; color: var(--ink); font-variant-numeric: lining-nums; }

.portrait { position: relative; justify-self: end; width: min(100%, 360px); padding: 0 0 18px 18px; }
.portrait::before {
    content: ""; position: absolute; left: 0; bottom: 0; width: 72%; height: 78%;
    background: var(--gold-pale); border-radius: var(--radius);
}
.portrait-frame {
    position: relative; z-index: 1;
    aspect-ratio: 5 / 6; overflow: hidden;
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--sand) 0%, var(--sand-deep) 100%);
    box-shadow: var(--shadow);
}
.portrait-frame img {
    position: absolute; left: 0; right: 0; bottom: 0;
    width: 100%; height: 90%;
    object-fit: contain; object-position: center bottom;
    mix-blend-mode: multiply;
}
.portrait-badge {
    position: absolute; z-index: 2; left: -1.5rem; bottom: 2rem;
    display: flex; align-items: center; gap: .85rem;
    padding: .9rem 1.2rem .9rem .9rem;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.portrait-badge .badge-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius); background: var(--charcoal); color: var(--gold-light); }
.portrait-badge .badge-icon svg { width: 20px; height: 20px; }
.portrait-badge strong { display: block; font-family: var(--serif); font-size: 1.05rem; font-weight: 600; color: var(--ink); line-height: 1.2; }
.portrait-badge span { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* ---------- Stats band (charcoal) ---------- */
.stats { background: var(--charcoal); color: var(--on-dark); }
.stats-grid { display: grid; grid-template-columns: 1.25fr repeat(4, 1fr); }
.stats-intro { padding: 2.75rem 2.5rem 2.75rem 0; }
.stats-intro .eyebrow { margin-bottom: .6rem; }
.stats-intro h2 { font-size: 1.6rem; margin: 0; color: #fff; }
.stat { padding: 2.75rem 2rem; border-left: 1px solid rgba(255, 255, 255, .1); }
.stat-value { font-family: var(--serif); font-size: clamp(2.3rem, 3.6vw, 3rem); font-weight: 600; line-height: 1; color: var(--gold-light); font-variant-numeric: lining-nums; }
.stat-label { margin: .75rem 0 0; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); }

/* ---------- Capability cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
    position: relative;
    padding: 2.25rem 2rem 2.25rem;
    background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold-soft); border-radius: var(--radius);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-top-color: var(--gold); }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.6rem; }
.card-num { font-family: var(--serif); font-size: 1rem; font-weight: 600; color: var(--gold-soft); font-variant-numeric: lining-nums; }
.card-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--radius); background: var(--sand); color: var(--gold); }
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.4rem; margin-bottom: .6rem; }
.card p { margin: 0; font-size: 1rem; }

/* ---------- Split / credentials ---------- */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: start; }
.split-sticky { position: sticky; top: calc(var(--header-h) + 2.5rem); }
.split-sticky .h2 { margin-bottom: .5em; }
.split-sticky .link-arrow { margin-top: .75rem; }
.cred-list { display: grid; gap: 1rem; }
.cred-item {
    display: grid; grid-template-columns: 3rem 1fr; gap: 1.25rem;
    padding: 1.75rem 1.75rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.cred-item:hover { box-shadow: var(--shadow-sm); border-color: var(--gold-pale); }
.cred-index { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: var(--radius); background: var(--charcoal); color: var(--gold-light); font-family: var(--serif); font-weight: 600; font-size: 1rem; font-variant-numeric: lining-nums; }
.cred-item h3 { font-size: 1.3rem; margin-bottom: .25rem; }
.cred-meta { margin: 0 0 .5rem; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.cred-item p:last-child { margin: 0; font-size: .98rem; }

/* ---------- CTA panel ---------- */
.cta { padding-top: clamp(3.5rem, 7vw, 5.5rem); }
.cta-panel {
    position: relative; overflow: hidden;
    display: grid; grid-template-columns: 1.4fr auto; gap: 2rem 4rem; align-items: center;
    padding: clamp(2.25rem, 5vw, 3.75rem);
    background: var(--charcoal); color: var(--on-dark); border-radius: calc(var(--radius) * 2);
}
.cta-panel::after {
    content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px;
    border-radius: 50%; border: 40px solid rgba(216, 193, 156, .07);
}
.cta-copy h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: .45em; }
.cta-copy p:last-child { margin: 0; color: var(--on-dark-muted); font-size: 1.05rem; }
.cta-side { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; }
.cta-email { display: inline-flex; align-items: center; gap: .55rem; color: var(--gold-light); font-weight: 600; font-size: .95rem; word-break: break-word; }
.cta-email:hover { color: #fff; }
.cta-email svg { width: 18px; height: 18px; flex: none; }

/* ---------- Inner page hero ---------- */
.page-hero {
    padding: clamp(1.75rem, 3.5vw, 2.5rem) 0 clamp(2rem, 4vw, 2.75rem);
    background: linear-gradient(180deg, var(--ivory) 0%, #fff 100%);
    border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); max-width: 22ch; margin-bottom: .4em; }
.page-hero p:not(.eyebrow) { max-width: 44rem; margin: 0; font-size: 1.125rem; }
.breadcrumb { display: flex; gap: .6rem; margin-bottom: 1.1rem; font-size: .8rem; font-weight: 600; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span[aria-current] { color: var(--gold); }

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 1000px; }
.timeline::before { content: ""; position: absolute; top: .75rem; bottom: 2rem; left: 12rem; width: 2px; background: linear-gradient(180deg, var(--gold-soft), var(--line) 85%, transparent); }
.tl-item { position: relative; display: grid; grid-template-columns: 12rem 1fr; padding-bottom: 2.5rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
    content: ""; position: absolute; left: calc(12rem - 6px); top: .7rem;
    width: 14px; height: 14px; border-radius: 50%;
    background: #fff; border: 2px solid var(--gold-soft); box-shadow: 0 0 0 5px #fff;
}
.tl-item--current::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 5px #fff, 0 0 0 6px var(--gold-pale); }
.tl-date { padding: .45rem 2.25rem 0 0; text-align: right; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.tl-body { padding-left: 2.5rem; }
.tl-card { padding: 2rem 2.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .35s var(--ease), border-color .35s var(--ease); }
.tl-item--current .tl-card { border-left: 3px solid var(--gold); }
.tl-card:hover { box-shadow: var(--shadow-sm); }
.tl-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.tl-org { margin: 0; font-size: 1.65rem; }
.tl-current { font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #3f6b3a; background: #eef5ec; border: 1px solid #d5e6d1; border-radius: 4px; padding: .3rem .65rem; }
.tl-role { margin: .2rem 0 1rem; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tl-card p { margin: 0; font-size: 1rem; }

/* ---------- Qualifications ---------- */
.qual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: stretch; }
.qual-col { padding: clamp(1.75rem, 4vw, 2.5rem); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.qual-col-head { display: flex; align-items: center; gap: 1rem; padding-bottom: 1.4rem; margin-bottom: .25rem; border-bottom: 2px solid var(--charcoal); }
.qual-col-head .icon-wrap { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius); background: var(--charcoal); color: var(--gold-light); flex: none; }
.qual-col-head .icon-wrap svg { width: 22px; height: 22px; }
.qual-col-head h3 { margin: 0; font-size: 1.4rem; }
.qual-item { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.qual-item:last-child { border-bottom: 0; padding-bottom: 0; }
.qual-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; }
.qual-item h4 { margin: 0; font-size: 1.2rem; }
.qual-year { font-size: .74rem; font-weight: 700; letter-spacing: .1em; color: var(--gold); white-space: nowrap; }
.qual-inst { margin: .3rem 0 .45rem; font-size: .88rem; font-weight: 700; color: var(--ink); }
.qual-item p:last-child { margin: 0; font-size: .97rem; }

/* ---------- Award ---------- */
.award {
    display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 4vw, 2.75rem); align-items: start;
    max-width: 1000px; padding: clamp(1.75rem, 4.5vw, 3rem);
    background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius);
}
.award-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: var(--radius); background: var(--charcoal); color: var(--gold-light); }
.award-icon svg { width: 34px; height: 34px; }
.award-meta { margin: 0 0 .45rem; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.award h3 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-bottom: .75rem; }
.award blockquote { margin: 0 0 .9rem; padding-left: 1rem; border-left: 2px solid var(--gold-pale); font-family: var(--serif); font-size: 1.15rem; line-height: 1.55; color: var(--ink); }
.award p { margin: 0; font-size: .98rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact-info h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
.info-list { margin-top: 2rem; display: grid; gap: .85rem; }
.info-item { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.info-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: var(--radius); background: var(--charcoal); color: var(--gold-light); }
.info-icon svg { width: 20px; height: 20px; }
.info-label { margin: 0 0 .1rem; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.info-value { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.4; color: var(--ink); word-break: break-word; }
.info-value a { color: var(--ink); }
.info-value a:hover { color: var(--gold); }

.form-card { padding: clamp(1.75rem, 4.5vw, 2.75rem); background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-card h2 { font-size: 1.75rem; margin-bottom: .3rem; }
.form-card > p { color: var(--muted); font-size: .96rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.3rem; }
.field label { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.field input, .field select, .field textarea {
    width: 100%; padding: .9rem 1rem;
    font: inherit; font-size: 1rem; line-height: 1.5; color: var(--ink);
    background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius);
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none; appearance: none;
}
.field select {
    padding-right: 2.75rem; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238b6b3f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 1rem center;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(139, 107, 63, .12); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #c0563f; background-color: #fffaf8; }
.field-error { font-size: .85rem; color: #a3341f; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .5rem; }
.form-note { margin: 0; font-size: .82rem; color: var(--muted); max-width: 22rem; line-height: 1.55; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.alert { display: flex; gap: .85rem; align-items: flex-start; padding: 1.1rem 1.25rem; margin-bottom: 1.75rem; border-radius: var(--radius); font-size: .95rem; line-height: 1.55; }
.alert svg { flex: none; width: 20px; height: 20px; margin-top: .1rem; }
.alert strong { display: block; color: inherit; }
.alert--success { background: #f2f6ee; border: 1px solid #cfdfc3; color: #2d5520; }
.alert--error { background: #fbf0ec; border: 1px solid #efcfc5; color: #8a2e1c; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: clamp(5rem, 12vw, 8rem) 0; }
.notfound .code { font-family: var(--serif); font-weight: 600; font-size: clamp(5rem, 15vw, 8rem); line-height: 1; color: var(--gold-pale); margin: 0 0 1rem; }
.notfound h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
.notfound .cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .85rem; margin-top: 2rem; }

/* ---------- Footer with contact (charcoal) ---------- */
.site-footer { margin-top: 0; background: var(--charcoal); color: var(--on-dark-muted); padding-top: clamp(3.5rem, 8vw, 6rem); scroll-margin-top: var(--header-h); }
.footer-contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; padding-bottom: clamp(3rem, 7vw, 5rem); }
.footer-contact-copy h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: .5em; }
.footer-contact-copy > p { color: var(--on-dark-muted); font-size: 1.08rem; max-width: 34rem; }
.footer-meta { display: grid; gap: .7rem; margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-meta li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; font-size: .95rem; color: var(--on-dark); }
.footer-meta span { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); padding-top: .2rem; }
.footer-contact-card {
    position: relative; overflow: hidden;
    padding: clamp(1.75rem, 4vw, 2.75rem);
    background: var(--charcoal-2); border: 1px solid rgba(255, 255, 255, .08); border-radius: calc(var(--radius) * 2);
}
.footer-contact-card::after { content: ""; position: absolute; right: -70px; bottom: -70px; width: 220px; height: 220px; border-radius: 50%; border: 34px solid rgba(216, 193, 156, .06); pointer-events: none; }
.footer-contact-card .info-label { color: var(--gold-light); }
.contact-card-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 1.5rem; border-radius: var(--radius); background: var(--gold-light); color: var(--charcoal); }
.contact-email { display: inline-block; max-width: 100%; margin: .25rem 0 1.75rem; font-family: var(--serif); font-weight: 600; font-size: clamp(1.15rem, 2vw, 1.55rem); line-height: 1.25; color: #fff; overflow-wrap: anywhere; }
.contact-email:hover { color: var(--gold-light); }
.contact-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: .75rem; }
.btn--ghost { background: transparent; color: var(--on-dark); border-color: rgba(255, 255, 255, .25); }
.btn--ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }
.copy-btn.is-copied { border-color: #7fb27a !important; color: #a9d3a4 !important; }

.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: 1.5rem 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .84rem; }
.brand--sm { gap: .65rem; }
.brand--sm .brand-mark { width: 34px; height: 34px; font-size: .8rem; }
.brand--sm .brand-name { font-size: 1.02rem; }
.site-footer .brand-mark { background: var(--gold-light); color: var(--charcoal); }
.site-footer .brand-name { color: #fff; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.footer-nav a { color: var(--on-dark); font-weight: 600; font-size: .86rem; }
.footer-nav a:hover { color: var(--gold-light); }
.footer-copy { margin: 0; color: var(--on-dark-muted); }

/* ---------- Credentials page ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.cert-card { position: relative; padding: 2rem 1.9rem; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold-soft); border-radius: var(--radius); transition: box-shadow .35s var(--ease), border-color .35s var(--ease); }
.cert-card:hover { box-shadow: var(--shadow-sm); border-top-color: var(--gold); }
.cert-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; }
.cert-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--radius); background: var(--charcoal); color: var(--gold-light); }
.cert-icon svg { width: 22px; height: 22px; }
.cert-card h3 { font-size: 1.3rem; margin-bottom: .35rem; }
.cert-card p:last-child { margin: 0; font-size: .97rem; }
.edu-list { display: grid; gap: 1rem; }
.edu-item { display: grid; grid-template-columns: 9rem 1fr 1.2fr; gap: 1.5rem 2.5rem; align-items: center; padding: 1.6rem 2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.edu-years { font-size: .78rem; font-weight: 700; letter-spacing: .1em; color: var(--gold); }
.edu-item h3 { font-size: 1.3rem; margin: 0 0 .2rem; }
.edu-item .qual-inst { margin: 0; }
.edu-text { margin: 0; font-size: .97rem; }
.inline-link { font-weight: 700; color: var(--gold); white-space: nowrap; }

/* ---------- Profile ---------- */
.profile { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.profile-head .h2 { margin: 0; }
.profile-body > p { font-size: 1.08rem; }
.tick-list { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem 1.5rem; margin-top: 1.75rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.tick-list li { display: flex; gap: .65rem; align-items: flex-start; font-size: .96rem; font-weight: 600; color: var(--ink); line-height: 1.45; }
.tick-list svg { flex: none; width: 18px; height: 18px; color: var(--gold); margin-top: .1rem; }

.cards--2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- Timeline extras ---------- */
.tl-summary { margin: 0 0 .9rem !important; color: var(--ink); font-weight: 500; }
.tl-points { display: grid; gap: .55rem; margin: 0; }
.tl-points li { position: relative; padding-left: 1.25rem; font-size: .98rem; line-height: 1.6; }
.tl-points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold-soft); }
.jump { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.jump a { display: inline-flex; align-items: center; padding: .55rem 1rem; border: 1px solid var(--line-strong); border-radius: 100px; background: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: var(--ink); transition: border-color .2s, color .2s, background-color .2s; }
.jump a:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Contact (info only) ---------- */
.contact-wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.5rem; align-items: stretch; }
.contact-card {
    position: relative; overflow: hidden;
    padding: clamp(2rem, 5vw, 3.25rem);
    background: var(--charcoal); color: var(--on-dark); border-radius: calc(var(--radius) * 2);
}
.contact-card::after { content: ""; position: absolute; right: -70px; bottom: -70px; width: 240px; height: 240px; border-radius: 50%; border: 36px solid rgba(216, 193, 156, .07); }
.contact-card-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 1.75rem; border-radius: var(--radius); background: var(--gold-light); color: var(--charcoal); }
.contact-card .info-label { color: var(--gold-light); }
.contact-email { display: inline-block; margin: .25rem 0 2rem; font-family: var(--serif); font-weight: 600; font-size: clamp(1.4rem, 3.2vw, 2.15rem); line-height: 1.2; color: #fff; word-break: break-word; }
.contact-email:hover { color: var(--gold-light); }
.contact-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: .75rem; }
.contact-card .btn--outline { background: transparent; color: var(--on-dark); border-color: rgba(255, 255, 255, .25); }
.contact-card .btn--outline:hover { border-color: var(--gold-light); color: var(--gold-light); }
.copy-btn.is-copied { border-color: #7fb27a !important; color: #a9d3a4 !important; }
.info-grid { display: grid; gap: 1rem; align-content: stretch; }
.info-grid .info-item { height: 100%; }

/* ---------- Certificate peek (flag) ---------- */
.peek { position: relative; display: inline-block; }
.peek-trigger {
    all: unset; box-sizing: border-box; cursor: pointer;
    display: inline; font: inherit; color: inherit; line-height: inherit;
    background-image: linear-gradient(90deg, var(--gold-soft) 50%, transparent 50%);
    background-size: 6px 1px; background-repeat: repeat-x; background-position: 0 100%;
    padding-bottom: 2px;
    transition: color .2s;
}
.peek-trigger:hover, .peek.is-open .peek-trigger { color: var(--gold-deep); }
.peek-trigger:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 2px; }
.peek-flag { display: inline-block; margin-left: .4em; vertical-align: -.05em; color: var(--gold-soft); transform-origin: 20% 100%; transition: color .2s; }
.peek-flag svg { width: .75em; height: .75em; display: inline-block; }
.peek-trigger:hover .peek-flag, .peek.is-open .peek-flag { color: var(--gold); animation: flagwave .9s ease-in-out 2; }
@keyframes flagwave { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-10deg) skewY(-6deg); } 65% { transform: rotate(6deg) skewY(4deg); } }

.peek-panel {
    position: absolute; z-index: 60; left: var(--peek-x, 0px); bottom: calc(100% + 18px);
    width: min(380px, calc(100vw - 2rem));
    pointer-events: none; visibility: hidden; perspective: 1100px;
    transition: visibility 0s linear .45s;
    font-family: var(--sans); letter-spacing: 0; text-transform: none; font-weight: 400;
}
.peek.is-below .peek-panel { bottom: auto; top: calc(100% + 18px); }
.peek-pole {
    position: absolute; left: 0; top: -14px; bottom: -22px; width: 3px; border-radius: 3px;
    background: linear-gradient(180deg, var(--gold), var(--gold-soft));
    transform: scaleY(0); transform-origin: 50% 100%;
    transition: transform .3s var(--ease) .12s;
}
.peek-pole::before { content: ""; position: absolute; top: -6px; left: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px #fff; }
.peek-cloth {
    display: block; margin-left: 3px; overflow: hidden;
    background: #fff; border: 1px solid var(--line); border-left: 0; border-radius: 0 var(--radius) var(--radius) 0;
    box-shadow: 0 30px 60px -24px rgba(35, 32, 28, .45), 0 2px 6px rgba(35, 32, 28, .06);
    transform-origin: 0 50%;
    transform: rotateY(-78deg) skewY(4deg);
    clip-path: inset(0 100% 0 0);
    opacity: 0;
    transition: transform .55s var(--ease), clip-path .55s var(--ease), opacity .25s ease;
}
.peek-cloth img { display: block; width: 100%; height: auto; }
.peek-cap { display: block; padding: .6rem .9rem; border-top: 1px solid var(--line); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--ivory); }

.peek.is-open .peek-panel { visibility: visible; transition-delay: 0s; }
.peek.is-open .peek-pole { transform: scaleY(1); transition-delay: 0s; }
.peek.is-open .peek-cloth { transform: none; clip-path: inset(0 0 0 0); opacity: 1; transition-delay: .14s; animation: cloth 1.5s ease-out .6s 1 both; }
@keyframes cloth {
    0%   { transform: none; }
    25%  { transform: perspective(900px) rotateY(-9deg) skewY(-1.2deg); }
    55%  { transform: perspective(900px) rotateY(4deg) skewY(.6deg); }
    80%  { transform: perspective(900px) rotateY(-1.5deg); }
    100% { transform: none; }
}

/* ---------- Additions: tools, experience details, learning, skills ---------- */
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--3 .card h3 { font-size: 1.3rem; }
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 2rem; padding: 1.25rem 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.tools .chips { margin: 0; }
.tools-label { margin: 0; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.tl-place { display: block; margin-top: .35rem; font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: none; color: var(--muted); }
.tl-points strong { color: var(--ink); font-weight: 700; }
.tl-more { margin-top: .55rem; }
.tl-more > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .45rem; margin: .35rem 0 .2rem; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.tl-more > summary::-webkit-details-marker { display: none; }
.tl-more > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .25s var(--ease); }
.tl-more[open] > summary::after { transform: rotate(-135deg) translateY(-1px); }
.tl-more .more-close, .tl-more[open] .more-open { display: none; }
.tl-more[open] .more-close { display: inline; }
.tl-more[open] > .tl-points { animation: fadeDown .4s var(--ease); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.learning { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-top: 1.5rem; padding: 1.15rem 1.5rem; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.learning-list { display: flex; flex-wrap: wrap; gap: .5rem 2rem; }
.learning-list li { display: flex; flex-direction: column; line-height: 1.35; }
.learning-title { font-weight: 700; color: var(--ink); font-size: .95rem; }
.learning-meta { font-size: .8rem; color: var(--muted); }
.skill-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.skill-group { padding: 1.6rem 1.6rem 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.skill-group h3 { font-size: 1.12rem; margin-bottom: .9rem; padding-bottom: .75rem; border-bottom: 2px solid var(--charcoal); }
.skill-group li { position: relative; padding-left: 1.1rem; font-size: .95rem; line-height: 1.5; }
.skill-group li + li { margin-top: .4rem; }
.skill-group li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; transform: rotate(45deg); background: var(--gold-soft); }
.topbar-links { display: flex; align-items: center; gap: 1.5rem; }
.contact-linkedin { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .55rem; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .1); width: 100%; color: var(--gold-light); font-weight: 600; font-size: .92rem; }
.contact-linkedin:hover { color: #fff; }
.contact-linkedin svg:first-child { width: 18px; height: 18px; }
.contact-linkedin svg:last-child { width: 14px; height: 14px; margin-left: auto; transition: transform .25s var(--ease); }
.contact-linkedin:hover svg:last-child { transform: translateX(3px); }

/* ---------- Skills ticker ---------- */
.ticker { overflow: hidden; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.15rem 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-list { display: flex; flex: none; }
.ticker-list li { display: inline-flex; align-items: center; gap: 2.25rem; padding-right: 2.25rem; white-space: nowrap; font-size: .86rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.ticker-list li::after { content: ""; width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold-soft); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Motion ---------- */
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--gold-soft), var(--gold)); transform-origin: left; transform: scaleX(0); }

.hero { overflow: hidden; isolation: isolate; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.hero::before { width: 560px; height: 560px; right: -140px; top: -180px; background: radial-gradient(circle, rgba(216, 193, 156, .35), rgba(216, 193, 156, 0) 65%); animation: drift 16s ease-in-out infinite alternate; }
.hero::after { width: 420px; height: 420px; left: -180px; bottom: -220px; background: radial-gradient(circle, rgba(231, 219, 199, .55), rgba(231, 219, 199, 0) 65%); animation: drift 20s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-60px, 40px) scale(1.12); } }

.hero-title .word { display: inline-block; }
.js .hero-title.reveal { opacity: 1; transform: none; }
.js .hero-title .word { opacity: 0; transform: translateY(.45em); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .hero-title.is-visible .word { opacity: 1; transform: none; }
.js .hero-title.is-visible .word:nth-child(2) { transition-delay: .14s; }

.portrait-badge { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.js .portrait::before { transform: scale(.6); transform-origin: left bottom; opacity: 0; transition: transform 1.1s var(--ease) .35s, opacity 1.1s var(--ease) .35s; }
.js .portrait.is-visible::before { transform: none; opacity: 1; }
.js .portrait-frame img { transform: scale(1.06); transition: transform 1.6s var(--ease) .2s; transform-origin: center bottom; }
.js .portrait.is-visible .portrait-frame img { transform: none; }

.btn--primary { position: relative; overflow: hidden; isolation: isolate; }
.btn--primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%); transform: translateX(-120%); }
.btn--primary:hover::after { transform: translateX(120%); transition: transform .8s var(--ease); }

.card-icon, .cred-index { transition: background-color .35s var(--ease), color .35s var(--ease), transform .35s var(--ease); }
.card:hover .card-icon { background: var(--charcoal); color: var(--gold-light); transform: rotate(-6deg); }

.js .timeline.draw::before { transform: scaleY(0); transform-origin: top; transition: transform 1.6s var(--ease) .2s; }
.js .timeline.draw.is-visible::before { transform: none; }

.status-dot { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(127, 178, 122, .2); } 50% { box-shadow: 0 0 0 6px rgba(127, 178, 122, 0); } }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .cards--3, .skill-grid, .cert-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
    .stats-intro { grid-column: 1 / -1; padding: 2.5rem 0 0; }
    .stat:nth-child(2) { border-left: 0; padding-left: 0; }
    .section-head--split { grid-template-columns: 1fr; }
    .section-intro { justify-self: start; }
}

@media (max-width: 820px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(4) { border-left: 0; padding-left: 0; }
    .stat:nth-child(n+4) { border-top: 1px solid rgba(255, 255, 255, .1); }
}

@media (max-width: 920px) {
    :root { --header-h: 70px; }
    .nav-toggle { display: inline-block; }
    .nav {
        position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 0;
        padding: .5rem var(--gutter) 1.75rem;
        background: #fff; border-bottom: 1px solid var(--line);
        box-shadow: 0 30px 40px -30px rgba(35, 32, 28, .35);
        opacity: 0; visibility: hidden; transform: translateY(-10px);
        transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
    }
    .nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
    .nav-list { flex-direction: column; gap: 0; }
    .nav-link { display: block; padding: 1rem 0; font-size: 1.02rem; border-bottom: 1px solid var(--line); }
    .nav-link::after { display: none; }
    .nav-link.is-active { color: var(--gold); }
    .nav .btn { margin-top: 1.5rem; }

    .hero-grid { grid-template-columns: 1fr; }
    .portrait { justify-self: center; width: min(100%, 300px); margin-top: .25rem; }
    .cards, .cards--2 { grid-template-columns: 1fr; }
    .split, .profile, .contact-wrap, .footer-contact { grid-template-columns: 1fr; }
    .cert-grid, .cards--3, .skill-grid { grid-template-columns: 1fr; }
    .edu-item { grid-template-columns: 1fr; gap: .5rem; }
    .split-sticky { position: static; }
    .qual-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .cta-panel { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
    :root { --gutter: 1rem; }
    body { font-size: 1rem; line-height: 1.68; }
    .section { padding: 3.5rem 0; }
    .cta { padding-top: 3rem; }
    .hero { padding: 1.5rem 0 2.25rem; }
    .hero-title { font-size: clamp(2.4rem, 11vw, 2.9rem); }
    .hero-text { font-size: 1.05rem; margin-bottom: 1.75rem; }
    .hero-cred { font-size: .78rem; margin-bottom: 1.2rem; }
    .h2 { font-size: clamp(1.7rem, 7.5vw, 2.05rem); }
    .section-head { margin-bottom: 2rem; }
    .page-hero { padding: 1.5rem 0 1.9rem; }
    .tools, .learning { padding: 1rem; }
    .page-hero h1 { font-size: clamp(2.1rem, 9.5vw, 2.6rem); }
    .page-hero p:not(.eyebrow) { font-size: 1.02rem; }
    .breadcrumb { margin-bottom: 1.25rem; }
    .jump { gap: .5rem; margin-top: 1.5rem; }
    .jump a { padding: .55rem .85rem; font-size: .76rem; }
    .ticker { padding: .9rem 0; }
    .ticker-list li { font-size: .74rem; gap: 1.4rem; padding-right: 1.4rem; }
    .profile-body > p { font-size: 1rem; }
    .cred-item h3 { font-size: 1.18rem; }
    .contact-email { font-size: 1.3rem; }
    .contact-card { padding: 1.75rem 1.4rem; }
    .info-item { padding: 1rem; }

    /* certificate peek becomes a small card pinned to the bottom of the screen */
    .peek { position: static; }
    .peek-panel {
        position: fixed; left: 1rem !important; right: 1rem; top: auto !important;
        bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
        width: auto; max-width: 420px; margin-inline: auto; z-index: 80;
    }
    .peek.is-open .peek-panel { pointer-events: auto; }
    .peek-pole { top: -12px; bottom: -12px; }
    .peek-cap::after { content: "  ·  Tap to close"; color: var(--gold); }
    .peek-trigger { padding-bottom: 3px; }
    .topbar-note { display: none; }
    .topbar-links { gap: 1rem; font-size: .76rem; }
    .topbar-inner { justify-content: center; }
    .brand-name { font-size: 1.1rem; }
    .brand-mark { width: 40px; height: 40px; font-size: .95rem; }
    .hero-actions .btn { flex: 1 1 100%; }
    .hero-facts { grid-template-columns: 1fr; width: 100%; }
    .hero-facts > div { border-left: 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .85rem 1.1rem; }
    .hero-facts > div:first-child { border-top: 0; }
    .hero-facts dd { margin: 0; text-align: right; }
    .portrait { padding: 0 0 16px 16px; }
    .portrait-badge { left: 0; bottom: 1.75rem; }

    .stats-grid { grid-template-columns: 1fr; }
    .stats-intro { padding: 2.25rem 0 .5rem; }
    .stat, .stat:nth-child(2) { border-left: 0; padding: 1.4rem 0; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
    .stat-label { margin: 0; text-align: right; }

    .card { padding: 1.9rem 1.5rem; }
    .tick-list { grid-template-columns: 1fr; }
    .contact-actions .btn { flex: 1 1 100%; }
    .cred-item { grid-template-columns: 1fr; gap: .9rem; padding: 1.5rem 1.35rem; }
    .cred-index { width: 2.5rem; height: 2.5rem; }

    .timeline::before { left: 6px; }
    .tl-item { grid-template-columns: 1fr; padding-left: 2.1rem; }
    .tl-item::before { left: 0; }
    .tl-date { text-align: left; padding: .25rem 0 .75rem; }
    .tl-body { padding-left: 0; }
    .tl-card { padding: 1.5rem 1.35rem; }
    .tl-org { font-size: 1.45rem; }

    .award { grid-template-columns: 1fr; }
    .award-icon { width: 60px; height: 60px; }

    .form-row { grid-template-columns: 1fr; gap: 0; }
    .form-foot .btn { width: 100%; }
    .cta-side, .cta-side .btn { width: 100%; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .footer-meta li { grid-template-columns: 1fr; gap: .15rem; }
    .footer-contact-card { padding: 1.6rem 1.35rem; }
    .edu-item { padding: 1.35rem; }
    .cert-card { padding: 1.6rem 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
    .js .reveal, .js .hero-title .word { opacity: 1; transform: none; }
    .ticker-track, .portrait-badge, .hero::before, .hero::after, .status-dot, .peek-flag, .peek-cloth { animation: none !important; }
    .js .timeline.draw::before, .js .portrait::before, .js .portrait-frame img { transform: none; opacity: 1; }
}

@media print {
    .topbar, .site-header, .site-footer, .cta, .hero-actions { display: none !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Refinements — simpler home, tighter credentials, polished mobile
   ========================================================================== */
.section { padding: clamp(3.25rem, 6.5vw, 5rem) 0; }
.section-head { margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem); }
.profile { align-items: center; }
.profile-body > p { font-size: 1.12rem; line-height: 1.75; margin: 0; color: var(--ink); }

.cards--3 { gap: 1.25rem; }
.cards--3 .card { padding: 1.75rem 1.6rem 1.6rem; }
.cards--3 .card-top { margin-bottom: 1.1rem; }
.cards--3 .card p { font-size: .97rem; }

.contact-email { font-size: clamp(1.15rem, 1.9vw, 1.5rem); word-break: normal; overflow-wrap: anywhere; margin: .25rem 0 1.5rem; }
.footer-contact-card .contact-card-icon { width: 50px; height: 50px; margin-bottom: 1.25rem; }

/* Credentials page: less vertical space */
.page-credentials .section { padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.page-credentials .section-head { margin-bottom: 1.5rem; }
.page-credentials .page-hero { padding-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.cert-card { padding: 1.6rem 1.6rem 1.5rem; }
.cert-top { margin-bottom: 1rem; }
.learning { margin-top: 1.1rem; }
.edu-list { gap: .75rem; }
.edu-item { padding: 1.2rem 1.6rem; }
.award { padding: clamp(1.5rem, 3.5vw, 2.25rem); }
.skill-grid { gap: 1rem; }
.skill-group { padding: 1.35rem 1.4rem 1.2rem; }

@media (max-width: 680px) {
    .topbar { display: none; }
    .section { padding: 2.5rem 0; }
    .page-credentials .section { padding: 2rem 0; }
    .section-head { margin-bottom: 1.25rem; }
    .section-head--split { gap: .5rem; }
    .section-intro { font-size: .92rem; }
    .eyebrow { margin-bottom: .65rem; font-size: .68rem; }
    .h2 { font-size: 1.6rem; }

    /* Hero: avatar on top, compact text */
    .hero { padding: 1.25rem 0 1.75rem; }
    .hero-grid { gap: 1rem; }
    .portrait { order: -1; justify-self: start; width: 112px; padding: 0; margin: 0; }
    .portrait::before, .portrait-badge { display: none; }
    .portrait-frame { aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--gold-pale), var(--shadow-sm); }
    .portrait-frame img, .js .portrait-frame img { inset: 0; height: 100%; object-fit: cover; object-position: center 8%; transform: none; }
    .hero-title { font-size: 2.3rem; margin-bottom: .25em; }
    .hero-cred { margin-bottom: .8rem; }
    .hero-text { font-size: 1rem; line-height: 1.65; margin-bottom: 1.25rem; }
    .hero-actions { gap: .6rem; flex-wrap: nowrap; }
    .hero-actions .btn { flex: 1 1 0; padding: .9rem .7rem; font-size: .72rem; }

    /* Stats: 2 × 2 */
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stats-intro { grid-column: 1 / -1; padding: 1.75rem 0 .75rem; }
    .stats-intro h2 { font-size: 1.3rem; }
    .stat, .stat:nth-child(2), .stat:nth-child(4) { display: block; padding: 1rem 0 1.1rem; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .1); }
    .stat:nth-child(odd) { padding-left: 1rem; border-left: 1px solid rgba(255, 255, 255, .1); }
    .stat-value { font-size: 1.9rem; }
    .stat-label { margin: .35rem 0 0; text-align: left; font-size: .64rem; letter-spacing: .12em; }

    /* Profile */
    .profile { gap: .75rem; }
    .profile-body > p { font-size: 1rem; line-height: 1.7; }

    /* Expertise: compact rows */
    .cards--3 { gap: .65rem; }
    .cards--3 .card { display: grid; grid-template-columns: 42px 1fr; gap: .1rem .9rem; align-items: start; padding: 1rem 1.05rem; border-top-width: 2px; }
    .cards--3 .card:hover { transform: none; box-shadow: none; }
    .cards--3 .card-top { grid-row: span 2; margin: 0; }
    .cards--3 .card-num { display: none; }
    .cards--3 .card-icon { width: 42px; height: 42px; }
    .cards--3 .card-icon svg { width: 21px; height: 21px; }
    .cards--3 .card h3 { font-size: 1.02rem; margin: .1rem 0 .15rem; }
    .cards--3 .card p { font-size: .88rem; line-height: 1.5; }

    /* Experience */
    .timeline::before { left: 5px; }
    .tl-item { padding-left: 1.6rem; padding-bottom: 1.5rem; }
    .tl-item::before { width: 12px; height: 12px; }
    .tl-date { padding: 0 0 .5rem; font-size: .7rem; }
    .tl-place { display: inline; margin: 0 0 0 .4rem; }
    .tl-place::before { content: "· "; }
    .tl-card { padding: 1.15rem 1.1rem; }
    .tl-org { font-size: 1.3rem; }
    .tl-role { font-size: .68rem; letter-spacing: .06em; margin-bottom: .6rem; }
    .tl-summary { font-size: .93rem; }
    .tl-points { gap: .45rem; }
    .tl-points li { font-size: .9rem; line-height: 1.55; }

    /* Footer contact */
    .site-footer { padding-top: 2.5rem; }
    .footer-contact { gap: 1.5rem; padding-bottom: 2.25rem; }
    .footer-contact-copy h2 { font-size: 1.55rem; }
    .footer-contact-copy > p { font-size: .95rem; margin-bottom: 0; }
    .footer-meta { margin-top: 1.1rem; padding-top: 1rem; gap: .55rem; }
    .footer-meta li { font-size: .88rem; }
    .contact-card-icon { width: 44px; height: 44px; margin-bottom: 1rem; }
    .contact-email { font-size: 1.15rem; margin-bottom: 1.1rem; }
    .contact-actions { flex-wrap: nowrap; gap: .5rem; }
    .contact-actions .btn { flex: 1 1 0; padding: .85rem .6rem; font-size: .7rem; }
    .footer-bottom { gap: .75rem; padding: 1.25rem 0; }
    .footer-nav { gap: .4rem 1.1rem; }

    /* Credentials */
    .page-hero h1 { font-size: 1.95rem; }
    .jump { flex-wrap: nowrap; overflow-x: auto; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); scrollbar-width: none; }
    .jump::-webkit-scrollbar { display: none; }
    .jump a { white-space: nowrap; }
    .cert-grid { gap: .75rem; }
    .cert-card { padding: 1.15rem 1.15rem 1.1rem; border-top-width: 2px; }
    .cert-top { margin-bottom: .6rem; }
    .cert-icon { width: 36px; height: 36px; }
    .cert-icon svg { width: 18px; height: 18px; }
    .cert-card h3 { font-size: 1.08rem; }
    .cert-card p:last-child { font-size: .9rem; }
    .learning { flex-direction: column; align-items: flex-start; gap: .6rem; padding: .9rem 1rem; }
    .learning-list { flex-direction: column; gap: .55rem; }
    .edu-list { gap: .6rem; }
    .edu-item { padding: 1rem 1.1rem; gap: .2rem; }
    .edu-item h3 { font-size: 1.08rem; }
    .edu-text { font-size: .9rem; margin-top: .3rem; }
    .award { gap: .9rem; padding: 1.15rem; }
    .award-icon { width: 46px; height: 46px; }
    .award-icon svg { width: 24px; height: 24px; }
    .award h3 { font-size: 1.3rem; }
    .award blockquote { font-size: 1rem; }
    .skill-grid { gap: .65rem; }
    .skill-group { padding: 1rem 1.05rem; }
    .skill-group h3 { font-size: 1rem; margin-bottom: .7rem; padding-bottom: .55rem; }
    .skill-group ul { display: flex; flex-wrap: wrap; gap: .35rem; }
    .skill-group li { padding: .28rem .6rem; font-size: .8rem; background: var(--sand); border-radius: 4px; }
    .skill-group li + li { margin-top: 0; }
    .skill-group li::before { display: none; }
}

/* ==========================================================================
   Theme — Navy & Gold (overrides the base palette above)
   ========================================================================== */
:root {
    --ivory: #f5f7fa;
    --sand: #eaf0f6;
    --sand-deep: #dfe7f0;
    --line: #e3e8ef;
    --line-strong: #d0d8e3;

    --gold: #8a6424;        /* text-safe gold on white (5.3:1) */
    --gold-deep: #6f4f1a;
    --gold-soft: #c9a465;
    --gold-pale: #ecddbf;
    --gold-light: #e2c48a;  /* gold on navy (9.3:1) */

    --navy: #14325a;
    --charcoal: #0f2440;    /* dark bands now deep navy */
    --charcoal-2: #16325a;
    --ink: #0f1b2d;
    --text: #3d4a5c;
    --muted: #5f6b7c;
    --on-dark: #e6ecf4;
    --on-dark-muted: #a9b6c8;

    --shadow: 0 24px 50px -28px rgba(15, 36, 64, .30);
    --shadow-sm: 0 10px 28px -18px rgba(15, 36, 64, .24);
}
::selection { background: var(--gold-pale); color: var(--ink); }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--charcoal); color: #fff; box-shadow: 0 12px 24px -14px rgba(15, 36, 64, .8); }
.btn--outline:hover { border-color: var(--navy); color: var(--navy); }
.nav-link::after, .scroll-progress { background: linear-gradient(90deg, var(--gold-soft), var(--gold)); }
.eyebrow-num { color: var(--navy); }
h1 em, h2 em, h3 em { color: var(--gold); }
.hero::before { background: radial-gradient(circle, rgba(201, 164, 101, .20), rgba(201, 164, 101, 0) 65%); }
.hero::after { background: radial-gradient(circle, rgba(20, 50, 90, .07), rgba(20, 50, 90, 0) 65%); }
.portrait::before { background: var(--navy); opacity: .12; }
.js .portrait.is-visible::before { opacity: .12; }
.portrait-frame { background: linear-gradient(180deg, #f4f6f9 0%, #e8edf3 100%); }
.card-icon, .info-icon { background: var(--sand); color: var(--navy); }
.card:hover .card-icon { background: var(--navy); color: var(--gold-light); }
.card, .cert-card { border-top-color: var(--gold-soft); }
.chip { color: var(--navy); background: var(--sand); border-color: var(--line-strong); }
.tl-item--current .tl-card, .award { border-left-color: var(--navy); }
.tl-item--current::before { background: var(--navy); border-color: var(--navy); box-shadow: 0 0 0 5px #fff, 0 0 0 6px var(--gold-pale); }
.timeline::before { background: linear-gradient(180deg, var(--navy), var(--line-strong) 85%, transparent); }
.tl-points li::before, .skill-group li::before, .ticker-list li::after { background: var(--gold-soft); }
.skill-group h3 { border-bottom-color: var(--navy); }
.jump a:hover { border-color: var(--navy); color: var(--navy); }
.peek-trigger:hover, .peek.is-open .peek-trigger { color: var(--navy); }
.footer-contact-card { background: var(--charcoal-2); }
@media (max-width: 680px) {
    .portrait-frame { box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--gold-soft), var(--shadow-sm); }
    .skill-group li { background: var(--sand); color: var(--navy); }
}

/* ---------- Certificate thumbnails + viewer ---------- */
.cert-thumb {
    position: relative; display: block; width: 100%; padding: 0; margin: 0 0 1.1rem;
    aspect-ratio: 9 / 6.6; overflow: hidden; cursor: zoom-in;
    background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius);
    font: inherit; color: inherit;
}
.cert-thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ease); }
.cert-thumb:hover img { transform: scale(1.04); }
.cert-thumb:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.cert-thumb-zoom {
    position: absolute; right: .6rem; bottom: .6rem;
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .38rem .7rem; border-radius: 100px;
    background: rgba(15, 36, 64, .88); color: #fff;
    font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    opacity: 0; transform: translateY(4px); transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.cert-thumb-zoom svg { width: 12px; height: 12px; }
.cert-thumb:hover .cert-thumb-zoom, .cert-thumb:focus-visible .cert-thumb-zoom { opacity: 1; transform: none; }
@media (hover: none) { .cert-thumb-zoom { opacity: 1; transform: none; } }
.cert-top .qual-inst { margin: 0; font-size: .78rem; }
.cert-card .cert-top { gap: 1rem; }

.award--with-thumb { grid-template-columns: 1.15fr .85fr; align-items: center; max-width: none; }
.award--with-thumb .award-icon { width: 52px; height: 52px; margin-bottom: 1rem; }
.award--with-thumb .award-icon svg { width: 26px; height: 26px; }
.cert-thumb--award { margin: 0; aspect-ratio: 900 / 623; }

.viewer { padding: 0; border: 0; background: transparent; max-width: min(860px, calc(100vw - 2rem)); width: 100%; overflow: visible; }
.viewer::backdrop { background: rgba(15, 36, 64, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.viewer[open] .viewer-card { animation: viewerIn .35s var(--ease); }
@keyframes viewerIn { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.viewer-card { position: relative; margin: 0; background: #fff; border-radius: calc(var(--radius) * 2); box-shadow: 0 40px 80px -30px rgba(15, 36, 64, .6); overflow: hidden; }
.viewer-img { display: block; width: 100%; height: auto; max-height: 78vh; object-fit: contain; background: var(--ivory); }
.viewer-cap { padding: .85rem 1.1rem; font-size: .8rem; font-weight: 600; color: var(--ink); border-top: 1px solid var(--line); }
.viewer-close { position: absolute; top: .6rem; right: .6rem; z-index: 1; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(15, 36, 64, .85); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.viewer-close:hover { background: var(--navy); }
html.viewer-open { overflow: hidden; }

@media (max-width: 920px) {
    .award--with-thumb { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    .cert-thumb { margin-bottom: .85rem; }
    .award--with-thumb .award-icon { display: none; }
    .viewer-cap { font-size: .74rem; padding: .7rem .9rem; }
}

/* ---------- Credentials hero with finance sketch ---------- */
.page-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.page-hero--split h1 { max-width: none; font-size: clamp(2.1rem, 3.8vw, 2.9rem); }
.hero-counts { display: flex; flex-wrap: wrap; gap: .75rem 2.25rem; margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); max-width: 40rem; }
.hero-counts li { display: flex; align-items: center; gap: .6rem; }
.hero-counts strong { font-family: var(--serif); font-size: 2rem; font-weight: 600; line-height: 1; color: var(--navy); font-variant-numeric: lining-nums; }
.hero-counts span { font-size: .78rem; font-weight: 600; line-height: 1.3; color: var(--muted); max-width: 8.5rem; }
.page-hero--split .jump { margin-top: 1.5rem; }

.hero-visual { position: relative; justify-self: end; width: 100%; max-width: 470px; }
.sketch { display: block; width: 100%; height: auto; overflow: visible; }
.sk { stroke-dasharray: 1; stroke-dashoffset: 0; }
.sk[style*="--len"] { stroke-dasharray: var(--len) 1; }
.js .sk { stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease) .35s; }
.js .hero-visual.is-visible .sk { stroke-dashoffset: 0; }
.js .sk-fill { opacity: 0; transition: opacity .9s var(--ease) .2s; }
.js .hero-visual.is-visible .sk-fill { opacity: 1; }
.sk-float { animation: float 7s ease-in-out infinite; }
.sk-float--slow { animation-duration: 9s; animation-delay: -2s; }
.visual-chip {
    position: absolute; z-index: 1;
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .55rem .9rem; border-radius: 100px;
    background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    font-size: .78rem; font-weight: 700; color: var(--navy); white-space: nowrap;
    animation: float 6s ease-in-out infinite;
}
.visual-chip svg { width: 16px; height: 16px; color: var(--gold); }
.visual-chip--a { top: 4%; right: 6%; }
.visual-chip--b { bottom: 6%; left: 2%; animation-delay: -3s; }

@media (max-width: 920px) {
    .page-hero-grid { grid-template-columns: 1fr; }
    .hero-visual { justify-self: center; max-width: 400px; }
}
@media (max-width: 680px) {
    .hero-visual { display: none; }
    .hero-counts { gap: .6rem 1.25rem; margin-top: 1.1rem; padding-top: 1rem; }
    .hero-counts strong { font-size: 1.5rem; }
    .hero-counts span { font-size: .7rem; max-width: 6.5rem; }
}
@media (prefers-reduced-motion: reduce) {
    .sk-float, .visual-chip { animation: none !important; }
    .js .sk { stroke-dashoffset: 0; transition: none; }
    .js .sk-fill { opacity: 1; transition: none; }
}
.page-hero-copy, .hero-visual { min-width: 0; }
@media (max-width: 920px) { .page-hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Slim footer CTA + Let's Connect page ---------- */
.site-footer { padding-top: 0; }
.footer-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2.5rem; padding: clamp(2.25rem, 5vw, 3.25rem) 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-cta .eyebrow { margin-bottom: .55rem; }
.footer-cta .eyebrow::before { display: none; }
.footer-cta h2 { margin: 0; color: #fff; font-size: clamp(1.45rem, 2.8vw, 2.1rem); }
.footer-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.footer-cta-mail { display: inline-flex; align-items: center; gap: .5rem; color: var(--gold-light); font-weight: 600; font-size: .92rem; }
.footer-cta-mail:hover { color: #fff; }
.footer-cta-mail svg { width: 16px; height: 16px; }
.eyebrow .status-dot { margin-right: .1rem; }
.connect .contact-wrap { align-items: stretch; }
.connect-card { display: flex; flex-direction: column; justify-content: center; }
.info-grid { align-content: start; }
.info-value a { color: var(--gold); font-weight: 700; }
@media (max-width: 680px) {
    .footer-cta { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 2rem 0; }
    .footer-cta-actions { width: 100%; }
    .footer-cta-actions .btn { flex: 1 1 100%; }
}
