/* ============================================================
   Ansis Jānis Ozolins personal site
   Warm · calm · light editorial one-page + blog
   (inspired by the calm/warm designs on onepagelove.com)
   ============================================================ */

:root {
  /* Light theme (default) */
  --bg: #F3EFE7; --bg-tint: #ECE6DA; --bg-2: #ECE6DA; --card: #FBFAF6;
  --ink: #14161A; --ink-2: #23262C; --text: #23262C; --soft: #6E6C63; --muted: #6E6C63;
  --rule: rgba(20,22,26,.12); --line: rgba(20,22,26,.12); --line-2: rgba(20,22,26,.22);
  --accent: #C2613A; --accent-dk: #A24E2C; --accent-soft: #F0DDCF; --tag-bg: #EDE7DB;
  --panel-ink: #14161A; --panel-ink-2: #1C1F25;
  --on-ink: #F1ECE2; --on-ink-muted: #A7A294; --on-ink-line: rgba(255,255,255,.14);
  --shadow: 0 18px 44px -28px rgba(20,22,26,.42);
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Schibsted Grotesk', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}
[data-theme="dark"] {
  --bg: #111316; --bg-tint: #0C0E10; --bg-2: #0C0E10; --card: #181A1E;
  --ink: #F1ECE2; --ink-2: #E7E2D7; --text: #E7E2D7; --soft: #8B877D; --muted: #8B877D;
  --rule: rgba(255,255,255,.12); --line: rgba(255,255,255,.12); --line-2: rgba(255,255,255,.22);
  --accent: #C2613A; --accent-dk: #D2754E; --accent-soft: #2A211C; --tag-bg: #1C1F25;
  --panel-ink: #0A0B0D; --panel-ink-2: #16181C;
  --on-ink: #F1ECE2; --on-ink-muted: #A7A294; --on-ink-line: rgba(255,255,255,.14);
  --shadow: 0 18px 44px -28px rgba(0,0,0,.6);
}

/* Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  margin: 0; padding: 0;
  transition: background-color 0.25s ease, color 0.25s ease;
}
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; }
p { color: var(--text); }
a { color: var(--ink); text-decoration: none; }
::selection { background: var(--accent); color: #fff; }

/* ---------------- Nav (minimal, warm) ---------------- */
.site-navbar {
  background-color: var(--bg) !important;
  border-bottom: 1px solid var(--rule);
  padding-top: 8px; padding-bottom: 8px;
}
.site-navbar .navbar-toggler { border-color: var(--rule); padding: 4px 8px; }
.site-navbar .navbar-toggler:focus { box-shadow: none; }
/* collapsed menu (small screens): give the links room to breathe */
.site-navbar .navbar-nav .nav-link { padding: 6px 10px; }
@media (max-width: 991px) {
  .site-navbar .navbar-nav { padding-top: 8px; }
  .site-navbar .navbar-nav .nav-link { padding: 8px 4px; }
}
.site-navbar .brand { font-weight: 700; color: var(--ink) !important; font-size: 1.02rem; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 10px; }
.brand-logo { height: 32px; width: 32px; display: block; border-radius: 9px; }
.brand-name { line-height: 1; }
.site-navbar .nav-link { color: var(--soft) !important; font-weight: 500; font-size: 0.95rem; }
.site-navbar .nav-link:hover, .site-navbar .nav-link.active { color: var(--accent) !important; }
.site-navbar .dropdown-menu { background: var(--bg-tint); border: 1px solid var(--rule); border-radius: 12px; box-shadow: 0 12px 30px rgba(59,48,38,0.10); }
.site-navbar .dropdown-item:hover { background: var(--accent-soft); }

/* ---------------- Layout ---------------- */
.site-main { min-height: 70vh; }
.wrap { max-width: 700px; margin: 0 auto; padding: 0 24px; }
.sec { padding: 60px 0; }
.sec-first { padding-top: 46px; padding-bottom: 34px; }
.sec-tint { background: var(--bg-tint); }

.eyebrow-title {
  font-family: var(--mono);
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--muted); font-weight: 500; margin-bottom: 22px;
}

/* ---------------- Hero ---------------- */
.hero-photo-min {
  width: 124px; height: 124px; border-radius: 50%; object-fit: cover;
  margin-bottom: 28px; box-shadow: 0 12px 30px rgba(59,48,38,0.16);
}
.eyebrow { font-size: 0.95rem; color: var(--soft); font-weight: 500; margin-bottom: 16px; }
.big-name { font-size: 3.6rem; line-height: 1.05; margin: 0 0 16px; color: var(--ink); }
.lead { font-size: 1.32rem; color: var(--ink); font-weight: 500; line-height: 1.45; margin-bottom: 22px; }
.intro { font-size: 1.13rem; line-height: 1.78; color: var(--ink-2); margin-bottom: 16px; }
.intro strong { color: var(--ink); font-weight: 600; }
.links-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* buttons */
.btn-ink {
  background: var(--accent); color: #fff !important; border: 1px solid var(--accent);
  border-radius: 999px; padding: 11px 22px; font-weight: 600; font-size: 0.95rem;
  transition: background 0.15s ease; display: inline-block;
}
.btn-ink:hover { background: var(--accent-dk); color: #fff !important; }
.btn-ghost {
  background: transparent; color: var(--ink) !important; border: 1px solid var(--rule);
  border-radius: 999px; padding: 11px 22px; font-weight: 600; font-size: 0.95rem;
  transition: all 0.15s ease; display: inline-block;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent) !important; }

/* ---------------- Work ---------------- */
.work-item {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 18px;
  padding: 22px 0; border-top: 1px solid var(--rule);
}
.work-role { font-weight: 700; font-size: 1.12rem; color: var(--ink); }
.work-org { color: var(--soft); font-size: 0.96rem; margin-top: 1px; }
.work-period { color: var(--soft); font-size: 0.9rem; white-space: nowrap; text-align: right; padding-top: 2px; }
.work-desc { grid-column: 1 / -1; color: var(--ink-2); font-size: 0.98rem; line-height: 1.62; margin: 8px 0 0; }

/* ---------------- Skills ---------------- */
.skill-cat { margin-bottom: 24px; }
.skill-cat:last-child { margin-bottom: 0; }
.skill-cat h3 { font-size: 1rem; margin-bottom: 12px; color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  background: var(--tag-bg); border: 1px solid var(--rule); color: var(--ink-2);
  border-radius: 999px; padding: 6px 14px; font-size: 0.88rem; font-weight: 500;
}

/* ---------------- Certification ---------------- */
.cert { font-size: 1.1rem; line-height: 1.7; color: var(--ink-2); }
.cert strong { color: var(--ink); font-weight: 700; }

/* ---------------- Education ---------------- */
.edu-row { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--rule); }
.edu-row .d { font-weight: 600; color: var(--ink); }
.edu-row .s { color: var(--soft); text-align: right; }

/* ---------------- Projects ---------------- */
.proj-item { padding: 22px 0; border-top: 1px solid var(--rule); }
.proj-item h3 { font-size: 1.18rem; margin: 0 0 5px; color: var(--ink); }
.proj-desc { color: var(--ink-2); font-size: 0.98rem; line-height: 1.62; margin: 0 0 10px; }
.proj-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.proj-actions { display: flex; gap: 18px; flex-wrap: wrap; }
.proj-link { color: var(--accent); font-weight: 600; font-size: 0.92rem; border-bottom: 1px solid var(--accent); padding-bottom: 1px; }
.proj-link:hover { color: var(--accent-dk); border-color: var(--accent-dk); }
.proj-meta { color: var(--soft); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------------- CTA / contact ---------------- */
.cta h2 { font-size: 2.5rem; margin-bottom: 14px; color: var(--ink); }
.cta p { font-size: 1.13rem; color: var(--ink-2); margin-bottom: 8px; line-height: 1.7; }

/* ---------------- Blog ---------------- */
.blog-h1 { font-size: 2.6rem; line-height: 1.08; margin: 6px 0 16px; color: var(--ink); }
.blog-controls { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 8px 0 26px; }
.blog-search {
  flex: 1 1 240px; min-width: 0;
  padding: 10px 16px; border: 1px solid var(--rule); border-radius: 999px;
  background: #fffdf9; color: var(--ink); font-size: 0.95rem; font-family: inherit;
}
.blog-search:focus { outline: none; border-color: var(--accent); }
.blog-filter { width: 185px; font-size: 0.92rem; }
.post-meta-row { display: flex; gap: 12px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
.post-cat {
  background: var(--accent-soft); color: var(--accent-dk); border: 1px solid var(--rule);
  border-radius: 999px; padding: 2px 12px; font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
}

/* Wider blog index, and a more generous single-post reading column */
.blog-wrap { max-width: 1080px; }
.post-wrap { max-width: 900px; }
.blog-wrap .intro { max-width: 64ch; }
.blog-wrap .subscribe { max-width: 760px; }

/* Responsive card grid */
.blog-list { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 760px) { .blog-list { grid-template-columns: repeat(2, 1fr); gap: 22px; } }

.blog-card-link { display: block; height: 100%; }
.blog-card {
  height: 100%;
  display: flex; flex-direction: column;
  padding: 24px 24px 22px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 16px;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.blog-card-link:hover .blog-card { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.blog-card .proj-link { margin-top: auto; }
.post-date { color: var(--soft); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.post-title-link { font-size: 1.4rem; margin: 0 0 8px; color: var(--ink); transition: color 0.15s ease; }
.blog-card-link:hover .post-title-link { color: var(--accent); }
.post-summary { color: var(--ink-2); margin: 0 0 12px; line-height: 1.6; }

/* single post */
.post-h1 { font-size: 2.7rem; line-height: 1.1; margin: 10px 0 20px; color: var(--ink); }
.post-content { color: var(--ink-2); font-size: 1.13rem; line-height: 1.85; }
.post-content h1, .post-content h2, .post-content h3 { color: var(--ink); margin: 1.6em 0 0.5em; }
.post-content h2 { font-size: 1.6rem; }
.post-content h3 { font-size: 1.25rem; }
.post-content p { margin: 0 0 1.15em; }
.post-content a { color: var(--accent); border-bottom: 1px solid var(--accent); }
.post-content ul, .post-content ol { margin: 0 0 1.15em 1.25em; }
.post-content li { margin-bottom: 0.45em; }
.post-content blockquote { border-left: 3px solid var(--accent-soft); margin: 1.3em 0; padding: 0.3em 0 0.3em 1.2em; color: var(--soft); font-style: italic; }
/* Inline code keeps the page's warm tag colour */
.post-content code { background: var(--tag-bg); color: var(--ink); padding: 2px 6px; border-radius: 6px; font-size: 0.92em; }

/* Code blocks: one cohesive dark box with high-contrast syntax, in both light and dark site themes */
.post-content pre {
  background: #14171c !important;
  color: #e7e2d7;
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  overflow: auto;
  font-size: 0.9rem;
  line-height: 1.6;
}
.post-content pre code,
.post-content pre code.hljs {
  background: transparent !important;
  color: inherit;
  padding: 0;
  font-size: inherit;
}
/* highlight.js token palette tuned for the dark code surface */
.post-content .hljs { color: #e7e2d7; background: transparent !important; }
.post-content .hljs-comment, .post-content .hljs-quote { color: #7f8895 !important; font-style: italic; }
.post-content .hljs-keyword, .post-content .hljs-selector-tag, .post-content .hljs-literal, .post-content .hljs-section, .post-content .hljs-link { color: #e08a5b !important; }
.post-content .hljs-built_in, .post-content .hljs-type, .post-content .hljs-class .hljs-title { color: #e0b15b !important; }
.post-content .hljs-string, .post-content .hljs-attr, .post-content .hljs-meta .hljs-string, .post-content .hljs-regexp { color: #9ccb7c !important; }
.post-content .hljs-number, .post-content .hljs-symbol, .post-content .hljs-bullet { color: #cf8de0 !important; }
.post-content .hljs-title, .post-content .hljs-name, .post-content .hljs-function .hljs-title { color: #6fb0e8 !important; }
.post-content .hljs-attribute, .post-content .hljs-variable, .post-content .hljs-template-variable { color: #e7c07a !important; }
.post-content .hljs-meta { color: #8b94a3 !important; }
.post-content .hljs-emphasis { font-style: italic; }
.post-content .hljs-strong { font-weight: 700; }
.post-content img { max-width: 100%; border-radius: 12px; }
.back-link { color: var(--soft); font-weight: 500; font-size: 0.9rem; }
.back-link:hover { color: var(--accent); }

/* ---------------- Subscribe ---------------- */
.subscribe {
  background: var(--accent-soft);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 32px 28px;
  margin-top: 44px;
}
.subscribe-title { font-size: 1.4rem; margin: 0 0 6px; color: var(--ink); }
.subscribe-text { color: var(--ink-2); margin: 0 0 18px; line-height: 1.6; }
.subscribe-form { display: flex; gap: 10px; flex-wrap: wrap; }
.subscribe-input {
  flex: 1 1 260px; min-width: 0;
  padding: 11px 18px; border: 1px solid var(--rule); border-radius: 999px;
  background: #fffdf9; color: var(--ink); font-size: 0.95rem; font-family: inherit;
}
.subscribe-input:focus { outline: none; border-color: var(--accent); }
.subscribe-msg { margin-top: 12px; color: var(--accent-dk); font-weight: 600; font-size: 0.95rem; min-height: 1.2em; }
.consent { margin-top: 14px; font-size: 0.9rem; color: var(--ink-2); }
.consent label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; line-height: 1.5; }
.consent input { margin-top: 3px; flex-shrink: 0; accent-color: var(--accent); }
.gdpr-note { margin-top: 14px; font-size: 0.8rem; color: var(--soft); line-height: 1.55; }
.gdpr-note a { color: var(--accent); border-bottom: 1px solid var(--accent); }
.footer-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 10px; }
.footer-link { color: var(--soft); font-weight: 500; font-size: 0.9rem; }
.footer-link:hover { color: var(--accent); }

/* ---------------- Admin publisher ---------------- */
.admin-form { max-width: 660px; margin-top: 8px; }
.admin-label { display: block; font-weight: 600; color: var(--ink); margin: 16px 0 6px; font-size: 0.92rem; }
.admin-input {
  width: 100%; box-sizing: border-box; padding: 10px 14px;
  border: 1px solid var(--rule); border-radius: 10px; background: #fffdf9;
  color: var(--ink); font-size: 0.95rem; font-family: inherit;
}
.admin-textarea {
  width: 100%; box-sizing: border-box; min-height: 320px; padding: 12px 14px;
  border: 1px solid var(--rule); border-radius: 10px; background: #fffdf9;
  color: var(--ink); font-size: 0.95rem; line-height: 1.6;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.admin-input:focus, .admin-textarea:focus { outline: none; border-color: var(--accent); }
.admin-status { margin-top: 14px; color: var(--accent-dk); font-weight: 600; }

/* ---------------- Videos ---------------- */
.video-section { margin-bottom: 44px; }
.video-section:last-child { margin-bottom: 0; }
.video-blurb { color: var(--soft); margin: -14px 0 18px; font-size: 0.95rem; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.video-card {
  position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px;
  overflow: hidden; border: 1px solid var(--rule); box-shadow: var(--shadow); background: #000;
}
.video-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-empty { color: var(--soft); font-style: italic; }

/* ---------------- Downloads ---------------- */
.download-section { margin-bottom: 40px; }
.download-section:last-child { margin-bottom: 0; }
.download-link { display: block; height: 100%; }
.download-link .project-card { height: 100%; }

/* ---------------- Mobile ---------------- */
@media (max-width: 768px) {
  .big-name { font-size: 2.5rem; }
  .blog-h1, .post-h1 { font-size: 2rem; }
  .lead { font-size: 1.18rem; }
  .sec { padding: 42px 0; }
  .work-item { grid-template-columns: 1fr; }
  .work-period { text-align: left; }
  .cta h2 { font-size: 2rem; }
}

/* ============================================================
   Legacy styling kept for the Trader / financial dashboard pages
   ============================================================ */
button, input[type="submit"] { border-radius: 8px; font-weight: 500; transition: all 0.2s ease-in-out; }
.dash-graph, .js-plotly-plot {
  background-color: #ffffff !important; border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); padding: 10px; margin-bottom: 20px;
}
.card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); padding: 16px; margin-bottom: 16px;
}
.fd-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fd-input { width: 220px; }
.fd-dropdown { width: 180px; }
.fd-btn { padding: 8px 14px; }
.fd-status { margin-left: 6px; font-style: italic; color: #6b7280; }
.fd-controls { display: grid; gap: 12px; }
.fd-control { margin-bottom: 8px; }
.fd-peers-label { margin-right: 8px; }
.fd-peers-input { width: 420px; }
.cards-row { display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-start; }
.kpi-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: 14px 18px; min-width: 160px; text-align: center; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.kpi-value { font-size: 1.2rem; font-weight: 700; color: #111827; }
.kpi-label { color: #6b7280; font-size: 0.9rem; }
.dash-table-container { border-radius: 10px; overflow: hidden; }

/* ============================================================
   2026 redesign: editorial, terracotta accent,
   Newsreader (serif) + Schibsted Grotesk (sans) + JetBrains Mono
   ============================================================ */
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(194,97,58,.5);}70%{box-shadow:0 0 0 8px transparent;}100%{box-shadow:0 0 0 0 transparent;} }
@keyframes marquee { from{transform:translateX(0);} to{transform:translateX(-50%);} }

.btn-ink, .btn-ghost { border-radius: 6px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(18px,5vw,48px); }
.sec-pad { padding: clamp(56px,9vh,108px) 0; }
.ink-section { background: var(--panel-ink); color: var(--on-ink); }
.ink-section h1, .ink-section h2, .ink-section h3 { color: var(--on-ink); }

.sec-label { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.sec-label .n { color: var(--accent); }
.sec-label .ln { width: 22px; height: 1px; background: var(--line-2); display: inline-block; }
.ink-section .sec-label { color: var(--accent); }
.h-display { font-family: var(--serif); font-weight: 500; line-height: 1.04; letter-spacing: -.02em; margin: 0; font-size: clamp(30px,5vw,54px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header__inner { max-width: 1200px; margin: 0 auto; padding: 12px clamp(16px,5vw,48px); display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.hdr-brand { display: flex; align-items: center; gap: 11px; color: var(--text); }
.hdr-badge { width: 34px; height: 34px; display: grid; place-items: center; border: 1.5px solid var(--accent); border-radius: 6px; font-family: var(--mono); font-weight: 500; font-size: 13px; color: var(--ink); }
.hdr-name { font-weight: 600; font-size: 14.5px; letter-spacing: -.01em; color: var(--ink); line-height: 1.05; }
.hdr-tag { font-family: var(--mono); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.hdr-nav { display: flex; align-items: center; gap: clamp(12px,2.2vw,28px); flex-wrap: wrap; }
.hdr-nav a { color: var(--text); font-size: 14px; font-weight: 500; padding: 4px 0; border-bottom: 1.5px solid transparent; transition: color .2s, border-color .2s; }
.hdr-nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.hdr-toggle { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line-2); background: transparent; border-radius: 6px; cursor: pointer; color: var(--text); font-size: 15px; transition: color .2s, border-color .2s; }
.hdr-toggle:hover { color: var(--accent); border-color: var(--accent); }
.hdr-links { display: flex; align-items: center; gap: clamp(12px,2.2vw,28px); flex-wrap: wrap; }
.lang-select { width: 122px; font-family: var(--mono); font-size: 12.5px; }
.lang-select .Select-control, .lang-select .Select__control { background: transparent; border-color: var(--line-2); border-radius: 6px; min-height: 36px; }
.lang-select .Select-value-label, .lang-select .Select__single-value { color: var(--text) !important; }

/* Hero */
.hero2 { position: relative; overflow: hidden; }
.hero2-bg { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px,transparent 1px), linear-gradient(90deg,var(--line) 1px,transparent 1px); background-size: 36px 36px; -webkit-mask-image: radial-gradient(120% 90% at 78% 8%,#000,transparent 70%); mask-image: radial-gradient(120% 90% at 78% 8%,#000,transparent 70%); opacity: .8; pointer-events: none; }
.hero2-inner { position: relative; display: grid; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap: clamp(32px,5vw,68px); align-items: center; padding: clamp(44px,8vh,96px) 0 clamp(34px,6vh,60px); }
.hero-name { font-family: var(--serif); font-weight: 500; font-size: clamp(44px,8.2vw,100px); line-height: .96; letter-spacing: -.022em; margin: 0 0 24px; color: var(--ink); }
.hero-name .dot { color: var(--accent); }
.hero-lead { font-family: var(--serif); font-size: clamp(19px,2.2vw,27px); line-height: 1.42; color: var(--text); max-width: 30ch; margin: 0 0 28px; }
.hero-lead em { font-style: italic; color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-dot { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; color: var(--muted); padding-left: 6px; }
.hero-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s infinite; }
.hero-photo-wrap { position: relative; aspect-ratio: 4/5; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; background: var(--bg-2); box-shadow: var(--shadow); }
.hero-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo-tags { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; }
.hero-photo-tags span { background: var(--panel-ink); color: var(--on-ink); padding: 5px 9px; border-radius: 4px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); border-top: 1px solid var(--line); padding-bottom: clamp(34px,6vh,56px); position: relative; }
.stat { padding: 18px 20px 0; border-left: 1px solid var(--line); }
.stat-k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.stat-v { font-size: 16px; font-weight: 600; color: var(--ink); font-family: var(--sans); }

/* Marquee */
.marquee-wrap { background: var(--panel-ink); overflow: hidden; border-top: 1px solid var(--on-ink-line); border-bottom: 1px solid var(--on-ink-line); }
.marquee { display: flex; width: max-content; animation: marquee 42s linear infinite; padding: 13px 0; }
.marquee .grp { display: flex; align-items: center; }
.marquee .m { font-family: var(--mono); font-size: 13px; letter-spacing: .04em; color: var(--on-ink); padding: 0 26px; white-space: nowrap; }
.marquee .d { color: var(--accent); font-size: 10px; }

/* Services (dark) */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap: 16px; }
@media (min-width: 900px) { .svc-grid { grid-template-columns: repeat(3,1fr); } }
.svc-card { padding: 26px 24px; background: var(--panel-ink-2); border: 1px solid var(--on-ink-line); border-radius: 8px; transition: transform .25s, border-color .25s; }
.svc-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.svc-n { font-family: var(--mono); font-size: 13px; color: var(--accent); margin-bottom: 16px; }
.svc-title { font-family: var(--sans); font-size: 20px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 9px; color: var(--on-ink); }
.svc-desc { font-size: 14.5px; line-height: 1.58; color: var(--on-ink-muted); margin: 0 0 16px; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.svc-tag { font-family: var(--mono); font-size: 11px; color: var(--on-ink-muted); border: 1px solid var(--on-ink-line); padding: 4px 9px; border-radius: 999px; }

/* Section head with "more" link */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-bottom: clamp(28px,4vw,44px); }
.sec-more { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--text); border-bottom: 1px solid var(--accent); padding-bottom: 3px; }
.sec-more:hover { color: var(--accent); }

/* Work / project rows */
.row-list { border-top: 1px solid var(--line); }
.row-item { display: grid; grid-template-columns: 52px 1fr; gap: 0 20px; padding: 24px 12px; border-bottom: 1px solid var(--line); color: inherit; transition: background .2s, padding .2s; }
.row-item:hover { background: var(--card); padding-left: 20px; }
.row-n { font-family: var(--mono); font-size: 13px; color: var(--accent); padding-top: 7px; }
.row-main { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
.row-client { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.row-title { font-family: var(--serif); font-size: clamp(21px,3vw,29px); line-height: 1.12; letter-spacing: -.01em; color: var(--ink); }
.row-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 7px; }
.row-tag { font-family: var(--mono); font-size: 11px; color: var(--muted); border: 1px solid var(--line-2); padding: 3px 8px; border-radius: 999px; }
.row-arrow { font-size: 22px; color: var(--accent); line-height: 1; }

/* Writing */
.feat-card { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: clamp(18px,4vw,48px); padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 14px; align-items: center; transition: border-color .25s, transform .25s; color: inherit; }
.feat-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.feat-label { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.feat-meta { display: flex; gap: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 12px; flex-wrap: wrap; }
.feat-title { font-family: var(--serif); font-weight: 500; font-size: clamp(23px,3.2vw,34px); line-height: 1.14; margin: 0 0 12px; color: var(--ink); }
.feat-excerpt { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0 0 14px; }
.post-row { display: grid; grid-template-columns: 104px 1fr auto; gap: 12px 20px; align-items: center; padding: 18px 12px; border-bottom: 1px solid var(--line); color: inherit; transition: background .2s, padding .2s; }
.post-row:hover { background: var(--card); padding-left: 18px; }
.post-row .d { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.post-row .t { font-family: var(--serif); font-size: clamp(18px,2.1vw,22px); line-height: 1.2; color: var(--ink); }
.post-row .pmeta { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.post-row .cat { border: 1px solid var(--line-2); padding: 3px 8px; border-radius: 999px; }

/* About */
.about2-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap: clamp(32px,5vw,64px); align-items: start; }
.about2-p { font-size: 16.5px; line-height: 1.66; color: var(--text); margin: 0 0 18px; max-width: 58ch; }
.about2-p.muted { color: var(--muted); }
.toolbox { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tool { font-size: 13px; font-weight: 500; color: var(--text); background: var(--card); border: 1px solid var(--line); padding: 7px 13px; border-radius: 6px; font-family: var(--sans); }

/* FP&A modules grid */
.module-groups { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 26px 24px; }
.module-group-title { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 500; margin: 0 0 14px; }
.module-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.module-chip { font-family: var(--sans); font-size: 13.5px; font-weight: 500; color: var(--ink); background: var(--card); border: 1px solid var(--line); padding: 8px 14px; border-radius: 6px; }

/* About-page timeline */
.atl { position: relative; max-width: 860px; }
.atl::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: var(--line-2); }
.atl-item { position: relative; padding: 0 0 34px 44px; }
.atl-item:last-child { padding-bottom: 0; }
.atl-node { position: absolute; left: 3px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--bg-2); }
.atl-year { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 5px; }
.atl-role { font-family: var(--serif); font-weight: 500; font-size: clamp(20px,2.6vw,26px); line-height: 1.15; color: var(--ink); margin: 0 0 4px; }
.atl-company { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 9px; }
.atl-desc { color: var(--muted); font-size: 0.97rem; line-height: 1.6; margin: 0; max-width: 62ch; }
.atl-roles { margin-top: 16px; max-width: 560px; }
.atl-role-row { display: flex; gap: 14px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line); }
.atl-role-row:first-child { border-top: none; padding-top: 2px; }
.atl-roleyr { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--muted); min-width: 116px; flex-shrink: 0; }
.atl-rolename { font-size: 1rem; color: var(--ink); font-weight: 500; }
.record-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.record-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.record-head .dot { color: var(--accent); }
.record-row { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.record-k { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.record-v { font-size: 14.5px; font-weight: 500; color: var(--ink); text-align: right; font-family: var(--sans); }

/* Footer (redesign) */
.site-footer2 { background: var(--bg); border-top: 1px solid var(--line); padding: 26px 0 32px; }
.site-footer2 .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.foot-left { display: flex; align-items: center; gap: 11px; }
.foot-badge { width: 30px; height: 30px; display: grid; place-items: center; border: 1.5px solid var(--accent); border-radius: 5px; font-family: var(--mono); font-size: 12px; color: var(--ink); }
.foot-mono { font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; color: var(--muted); }
.foot-links { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.foot-links a { font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; color: var(--muted); }
.foot-links a:hover { color: var(--accent); }

@media (max-width: 720px) {
  .hdr-tag { display: none; }
  .hero-name { font-size: clamp(38px,12vw,60px); }
}
