/* willyv.com redesign: light, professional theme */
:root {
  --blue: #0a66c2;
  --blue-dark: #004182;
  --ink: #1d2226;
  --ink-soft: rgba(0, 0, 0, 0.6);
  --bg: #f4f2ee;
  --card: #ffffff;
  --border: #e0ddd8;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }
.container { max-width: 1020px; margin: 0 auto; padding: 0 20px; }

/* header */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  max-width: 1020px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 58px; gap: 16px; flex-wrap: wrap;
}
.brand { font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.brand:hover { color: var(--blue); text-decoration: none; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav > ul > li { position: relative; }
.main-nav a {
  display: block; padding: 8px 12px; color: var(--ink);
  border-radius: 6px; font-weight: 600; font-size: 0.95rem;
}
.main-nav a:hover { background: #eef3f8; color: var(--blue); text-decoration: none; }
.main-nav a.active { color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }
.has-dropdown > a::after { content: " \25BE"; font-size: 0.8em; color: var(--ink-soft); }
.dropdown {
  display: none; position: absolute; right: 0; top: 100%;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  min-width: 300px; padding: 8px; flex-direction: column; gap: 0;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { display: flex; }
.dropdown a { font-weight: 500; padding: 8px 10px; }

/* layout blocks */
main.container { padding-top: 28px; padding-bottom: 40px; }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-bottom: 20px;
}
.hero { padding: 0; overflow: hidden; }
.hero-body { padding: 0 36px 36px; }
.profile-cover { height: 210px; position: relative; }
.profile-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; display: block; }
.profile-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 20, 14, 0.05), rgba(8, 20, 14, 0.30)); }
.profile-avatar { width: 148px; height: 148px; border-radius: 50%; object-fit: cover; border: 5px solid #fff; box-shadow: 0 8px 22px rgba(10, 25, 18, 0.28); margin-top: -74px; position: relative; z-index: 2; background: #fff; }
.hero h1 { font-size: 2.1rem; margin: 14px 0 6px; line-height: 1.2; }
.hero .role { font-size: 1.15rem; color: var(--ink); margin: 0 0 4px; font-weight: 600; }
.hero .location { color: var(--ink-soft); margin: 0 0 16px; }
.hero p { max-width: 68ch; }
.stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 4px; }
.stat { flex: 1 1 150px; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; background: #fbfaf8; }
.stat .num { display: block; font-size: 1.35rem; font-weight: 700; color: var(--blue-dark); }
.stat .lbl { font-size: 0.85rem; color: var(--ink-soft); }
h2.section-title { font-size: 1.35rem; margin: 30px 0 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.project-card { display: flex; flex-direction: column; margin-bottom: 0; transition: box-shadow 0.15s ease; }
.project-card:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08); }
.project-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.project-card h3 a { color: var(--ink); }
.project-card h3 a:hover { color: var(--blue); }
.project-card p { margin: 0 0 12px; color: var(--ink-soft); flex: 1; }
.tag {
  display: inline-block; font-size: 0.75rem; font-weight: 600; color: var(--blue-dark);
  background: #e8f0fe; border-radius: 999px; padding: 2px 10px; margin-bottom: 10px; align-self: flex-start;
}
.more { font-weight: 600; }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { padding: 14px 0; border-bottom: 1px solid var(--border); }
.post-list li:last-child { border-bottom: none; }
.post-list .date { color: var(--ink-soft); font-size: 0.88rem; }
.post-list h3 { margin: 2px 0 4px; font-size: 1.12rem; }
.post-list h3 a { color: var(--ink); }
.post-list h3 a:hover { color: var(--blue); }
.post-list p { margin: 0; color: var(--ink-soft); }
.btn {
  display: inline-block; background: var(--blue); color: #fff; font-weight: 600;
  padding: 9px 18px; border-radius: 999px; margin-right: 10px;
}
.btn:hover { background: var(--blue-dark); color: #fff; text-decoration: none; }
.btn.secondary { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn.secondary:hover { background: #eef3f8; }

/* article and case study */
.article h1, .case-study h1 { font-size: 1.9rem; line-height: 1.25; margin: 6px 0 8px; }
.byline { color: var(--ink-soft); margin: 0 0 20px; font-size: 0.92rem; }
.article h2, .case-study h2 { font-size: 1.3rem; margin: 26px 0 8px; }
.article h3, .case-study h3 { font-size: 1.1rem; margin: 20px 0 6px; }
.article p, .case-study p, .article li, .case-study li { max-width: 72ch; }
.article blockquote {
  margin: 16px 0; padding: 4px 16px; border-left: 3px solid var(--blue);
  color: var(--ink-soft); background: #fbfaf8;
}
.article code, .case-study code {
  background: #eef1f4; padding: 1px 5px; border-radius: 4px; font-size: 0.92em;
}
.article pre {
  background: #1d2226; color: #e8eaed; padding: 14px; border-radius: 8px; overflow-x: auto;
}
.article pre code { background: transparent; color: inherit; }
.article figure { margin: 22px 0; }
.article figure img { width: auto; max-width: 400px; max-height: 520px; height: auto; margin-inline: auto; border-radius: 10px; border: 1px solid var(--border); display: block; }
.article figcaption { color: var(--ink-soft); font-size: 0.88rem; margin-top: 8px; max-width: 72ch; }
.factbox { background: #fbfaf8; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin: 18px 0; }
.factbox h2 { margin-top: 0; font-size: 1.05rem; }
.factbox ul { margin: 6px 0; padding-left: 20px; }

/* resume */
.resume-doc h1 { margin-bottom: 2px; }
.resume-doc .contact-line { color: var(--ink-soft); margin-top: 0; }
.resume-doc h2 { border-bottom: 2px solid var(--blue); padding-bottom: 4px; margin-top: 28px; font-size: 1.25rem; }
.resume-doc h3 { margin: 18px 0 4px; }
.resume-doc .dates { float: right; color: var(--ink-soft); font-weight: 400; font-size: 0.9rem; }
.resume-doc ul { padding-left: 20px; }
.resume-doc li { margin-bottom: 5px; max-width: 75ch; }

/* footer */
.site-footer { background: var(--card); border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 16px; padding-bottom: 16px; }
.footer-inner p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

@media (max-width: 640px) {
  .hero-body { padding: 0 24px 24px; }
  .profile-cover { height: 128px; }
  .profile-avatar { width: 104px; height: 104px; margin-top: -52px; border-width: 4px; }
  .hero h1 { font-size: 1.7rem; }
  .resume-doc .dates { float: none; display: block; }
  .dropdown { min-width: 240px; }
}

/* ============ v7: terminal soul on the light theme ============ */
:root {
  --term-bg: #071408;
  --term-bg2: #0a1f0c;
  --term-green: #33ff66;
  --term-soft: #7ee787;
  --term-dim: #2f9e4f;
  --term-amber: #ffb000;
  --term-line: rgba(51, 255, 102, 0.25);
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
/* dropdown fix: the generic .main-nav ul flex rule was outranking display:none */
.main-nav ul.dropdown { display: none; }
.has-dropdown:hover ul.dropdown, .has-dropdown:focus-within ul.dropdown { display: flex; }

/* terminal status bar */
.termbar {
  background: #020a03; color: var(--term-dim);
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em;
  display: flex; gap: 22px; align-items: center; padding: 6px 20px;
  border-bottom: 1px solid var(--term-line);
}
.termbar .tb-sys { color: var(--term-green); font-weight: 700; }
.termbar .tb-clock { color: var(--term-soft); }
.termbar .tb-status { margin-left: auto; color: var(--term-amber); }
.termbar .tb-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--term-green); margin-right: 7px; animation: tbpulse 2.4s ease-in-out infinite; vertical-align: 1px; }
@keyframes tbpulse { 50% { opacity: 0.35; } }

/* console panel (dark terminal card) */
.console {
  background: linear-gradient(160deg, var(--term-bg2), var(--term-bg));
  border: 1px solid #14532d; border-radius: var(--radius);
  color: var(--term-soft); font-family: var(--mono);
  padding: 22px 24px; position: relative; overflow: hidden;
  box-shadow: 0 18px 44px rgba(4, 26, 10, 0.28);
}
.console::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.16) 0 1px, transparent 1px 3px);
}
.console .con-head {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-bottom: 1px dashed var(--term-line); padding-bottom: 12px; margin-bottom: 14px;
  font-size: 0.72rem; letter-spacing: 0.12em; color: var(--term-dim);
}
.console .con-head b { color: var(--term-amber); font-weight: 700; }
.console .boot { margin: 0 0 14px; font-size: 0.8rem; line-height: 1.9; color: var(--term-dim); white-space: pre-wrap; min-height: 3.2em; }
.console .boot .ok { color: var(--term-green); }
.syslist { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; font-size: 0.84rem; }
.syslist li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dotted rgba(51,255,102,0.14); padding: 4px 0; }
.syslist a { color: var(--term-soft); text-decoration: none; }
.syslist a:hover { color: var(--term-green); text-decoration: none; }
.syslist .opt-num { color: var(--term-amber); font-weight: 700; min-width: 2.2ch; }
.syslist .st { color: var(--term-amber); font-size: 0.72rem; letter-spacing: 0.08em; white-space: nowrap; }
.syslist .st::before { content: "\25CF  "; color: var(--term-green); font-size: 0.6rem; vertical-align: 2px; }
.cmdline { display: flex; align-items: center; gap: 10px; border: 1px solid var(--term-line); padding: 9px 12px; background: rgba(0,0,0,0.45); position: relative; z-index: 1; }
.cmdline label { color: var(--term-amber); font-weight: 700; font-size: 0.85rem; }
.cmdline input { flex: 1; background: transparent; border: 0; outline: 0; color: var(--term-green); font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.03em; min-width: 0; }
.cmdline input::placeholder { color: rgba(47, 158, 79, 0.65); }
.cmd-out { min-height: 1.5em; font-size: 0.78rem; color: var(--term-amber); margin: 10px 0 0; position: relative; z-index: 1; }

/* credential strip */
.cred-strip { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 4px; }
.cred {
  flex: 1 1 170px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; text-align: center;
}
.cred .cred-name { display: block; font-weight: 700; font-size: 1.02rem; color: var(--ink); letter-spacing: 0.01em; }
.cred .cred-sub { display: block; font-size: 0.8rem; color: var(--ink-soft); margin-top: 3px; }
.cred-logo { display: block; height: 38px; width: auto; max-width: 160px; object-fit: contain; margin: 0 auto 10px; }
.cred .star-ico { width: 15px; height: 15px; vertical-align: -2px; margin-right: 5px; }
.tile-logo { display: block; height: 30px; width: auto; max-width: 140px; object-fit: contain; margin-bottom: 12px; }

/* showcase filters + tiles */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.filters button {
  font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer;
  background: var(--card); color: var(--ink-soft); border: 1px solid var(--border);
  border-radius: 999px; padding: 7px 16px; transition: all 0.15s ease;
}
.filters button:hover { border-color: var(--blue); color: var(--blue); }
.filters button.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.tile { padding: 0; overflow: hidden; }
.tile .tile-media { aspect-ratio: 16/9; background: #0b1526; position: relative; overflow: hidden; display: block; }
.tile .tile-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.tile:hover .tile-media img { transform: scale(1.05); }
.tile .tile-art {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
  padding: 16px; font-family: var(--mono); color: var(--term-soft);
  background: linear-gradient(150deg, #10233f 0%, #071408 90%);
}
.tile .tile-art .ta-big { font-size: 1.25rem; font-weight: 700; color: #fff; letter-spacing: 0.02em; }
.tile .tile-art .ta-sub { font-size: 0.72rem; letter-spacing: 0.12em; color: var(--term-amber); margin-top: 4px; }
.tile .tile-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.tile.hide { display: none; }

/* video work cards */
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.work-card { padding: 0; overflow: hidden; }
.work-media { position: relative; display: block; width: 100%; aspect-ratio: 16/9; padding: 0; border: 0; cursor: pointer; background: #0b1526; }
.work-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.work-media .play {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
  background: linear-gradient(to top, rgba(2,10,3,0.45), transparent 55%);
}
.work-media .play span {
  width: 54px; height: 54px; border-radius: 50%; background: var(--blue); color: #fff;
  display: grid; place-items: center; font-size: 1.05rem; box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  transition: transform 0.2s ease;
}
.work-media:hover .play span { transform: scale(1.12); }
.work-card .work-body { padding: 16px 20px 18px; }
.work-card h3 { margin: 0 0 6px; font-size: 1.02rem; }
.work-card p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

/* laurel wall (dark band) */
.laurel-band {
  background: linear-gradient(165deg, #0a1f0c, #04140a); border-radius: var(--radius);
  padding: 30px; border: 1px solid #14532d; position: relative; overflow: hidden;
}
.laurel-band::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,0.14) 0 1px, transparent 1px 3px); }
.laurel-band h2 { color: #fff; margin-top: 0; position: relative; z-index: 1; }
.laurel-band .band-sub { color: var(--term-soft); position: relative; z-index: 1; max-width: 70ch; }
.laurel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; position: relative; z-index: 1; margin-top: 20px; }
.laurel-grid figure { margin: 0; }
.laurel-grid img { width: 100%; height: auto; display: block; border-radius: 8px; border: 1px solid rgba(255,255,255,0.14); transition: transform 0.25s ease, border-color 0.25s ease; }
.laurel-grid figure:hover img { transform: translateY(-4px); border-color: var(--term-amber); }
.laurel-grid figcaption { color: rgba(255,255,255,0.55); font-size: 0.72rem; margin-top: 6px; text-align: center; font-family: var(--mono); letter-spacing: 0.04em; }

/* testimonials */
.quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.quote {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; margin: 0; display: flex; flex-direction: column; gap: 10px;
}
.quote blockquote { margin: 0; font-size: 0.95rem; line-height: 1.55; }
.quote blockquote::before { content: "\201C"; color: var(--blue); font-weight: 700; }
.quote blockquote::after { content: "\201D"; color: var(--blue); font-weight: 700; }
.quote figcaption { margin-top: auto; font-size: 0.84rem; color: var(--ink-soft); }
.quote figcaption b { color: var(--ink); display: block; font-size: 0.9rem; }
.quotes .extra { display: none; }
.quotes.show-all .extra { display: flex; }
.more-btn {
  font: inherit; font-weight: 600; cursor: pointer; margin-top: 16px;
  background: transparent; color: var(--blue); border: 1.5px solid var(--blue);
  border-radius: 999px; padding: 9px 20px;
}
.more-btn:hover { background: #eef3f8; }

/* certifications */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.cert-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.cert-card a { display: block; }
.cert-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: top; display: block; border-bottom: 1px solid var(--border); transition: transform 0.4s ease; }
.cert-card:hover img { transform: scale(1.03); }
.cert-card .cert-body { padding: 14px 16px 16px; }
.cert-card h3 { margin: 0 0 4px; font-size: 0.98rem; }
.cert-card p { margin: 0; color: var(--ink-soft); font-size: 0.85rem; }

/* spotify terminal frames */
.spoti { border: 1px solid #14532d; border-radius: 10px; overflow: hidden; background: #0b0f0c; margin-bottom: 14px; }
.spoti-bar { display: flex; justify-content: space-between; padding: 7px 12px; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; color: var(--term-amber); background: #020a03; border-bottom: 1px solid rgba(51,255,102,0.2); }
.spoti-bar span:last-child { color: var(--term-dim); }
.spoti iframe { display: block; width: 100%; height: 152px; border: 0; }

/* reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .termbar .tb-dot { animation: none; }
  .tile .tile-media img, .cert-card img { transition: none; }
}
@media (max-width: 640px) {
  .syslist { grid-template-columns: 1fr; }
  .termbar .tb-user { display: none; }
  .laurel-band { padding: 20px; }
}

/* stats as an even grid */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { flex: none; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ============ v7.1: motion + thumbnails ============ */
/* scrolling ticker */
.ticker { overflow: hidden; background: #020a03; border: 1px solid var(--term-line); border-radius: 8px; padding: 8px 0; margin-top: 22px; }
.ticker-track { display: flex; width: max-content; white-space: nowrap; animation: tickmove 36s linear infinite; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.14em; color: var(--term-amber); }
.ticker-track span { padding-right: 12px; }
@keyframes tickmove { to { transform: translateX(-50%); } }
/* blinking cursor block */
.blink { display: inline-block; width: 8px; height: 13px; background: var(--term-green); vertical-align: -2px; margin-left: 8px; animation: blinkstep 1.1s steps(1) infinite; }
@keyframes blinkstep { 50% { opacity: 0; } }
/* equalizer bars */
.eq { display: inline-flex; gap: 3px; align-items: flex-end; height: 18px; margin-left: 12px; vertical-align: -3px; }
.eq i { width: 4px; background: var(--blue); border-radius: 1px; animation: eqbounce 0.8s ease-in-out infinite alternate; }
.eq i:nth-child(1) { height: 60%; animation-delay: 0s; }
.eq i:nth-child(2) { height: 100%; animation-delay: 0.15s; }
.eq i:nth-child(3) { height: 45%; animation-delay: 0.3s; }
.eq i:nth-child(4) { height: 80%; animation-delay: 0.45s; }
.eq i:nth-child(5) { height: 55%; animation-delay: 0.6s; }
@keyframes eqbounce { from { transform: scaleY(0.35); } to { transform: scaleY(1); } }
.eq i { transform-origin: bottom; }
/* listen grid */
.listen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.listen-grid .spoti { margin-bottom: 0; }
@media (max-width: 640px) { .listen-grid { grid-template-columns: 1fr; } }
/* blog thumbnails: a small fixed square at every viewport, never stretched to the entry height */
.post-list li.has-thumb { display: grid; grid-template-columns: 132px 1fr; column-gap: 16px; }
.post-list .post-thumb { grid-row: 1 / span 3; display: block; align-self: start; }
.post-list .post-thumb img { width: 132px; height: 132px; max-width: 132px; object-fit: cover; border-radius: 8px; display: block; }
@media (max-width: 640px) {
  .post-list li.has-thumb { grid-template-columns: 84px 1fr; }
  .post-list .post-thumb img { width: 84px; height: 84px; max-width: 84px; }
  /* mobile cards: thumbnail, date, and title carry the card; the long summary clamps to two wrapped lines */
  .post-list li p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: break-word; }
}
/* cover art row */
.cover-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0 20px; }
.cover-row figure { margin: 0; width: 104px; }
.cover-row img { width: 104px; height: 104px; object-fit: cover; border-radius: 8px; display: block; }
.cover-row figcaption { font-size: 0.78rem; color: var(--ink-soft); margin-top: 5px; text-align: center; }
@media (prefers-reduced-motion: reduce) {
  .ticker-track, .blink, .eq i { animation: none; }
}
.article figure.chart { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 16px 16px 8px; }
.article figure.chart figcaption { margin-top: 10px; }
.article figure.chart svg text { font-family: inherit; }

/* blog signoff */
.signoff { margin-top: 26px; font-size: 1.05rem; font-weight: 700; }
/* safety cap: a blog post thumbnail never renders at natural size anywhere */
.post-thumb img { max-width: 132px; }

/* contemporaneous X post cards inside articles */
.xpost { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; margin: 16px 0; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); display: flex; flex-direction: column; }
.xpost .xpost-meta { order: -1; margin: 0 0 8px; color: var(--ink); font-size: 0.88rem; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.xpost .xpost-meta::before { content: "X"; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 7px; background: #000; color: #fff; font-size: 0.82rem; font-weight: 800; flex: 0 0 auto; }
.xpost .xpost-text { margin: 0; white-space: pre-line; font-size: 1.02rem; line-height: 1.5; }

/* back to index link at the head of each post */
.back-link { font-size: 0.88rem; color: var(--ink-soft); margin: 6px 0 14px; }
.back-link a { color: var(--ink-soft); text-decoration: none; }
.back-link a:hover { color: var(--blue); text-decoration: underline; }

/* previous / next entry navigation at the foot of each post */
.post-nav { display: flex; justify-content: space-between; gap: 18px; border-top: 1px solid var(--border); margin-top: 26px; padding-top: 18px; }
.post-nav a { flex: 1 1 0; max-width: 48%; display: block; text-decoration: none; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); }
.post-nav a:hover { border-color: var(--blue); box-shadow: 0 2px 8px rgba(10, 102, 194, 0.14); text-decoration: none; }
.post-nav a span { display: block; font-size: 0.8rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.05em; }
.post-nav a strong { display: block; margin-top: 4px; font-size: 0.98rem; line-height: 1.4; font-weight: 600; color: var(--ink); overflow-wrap: break-word; }
.post-nav .pn-next { text-align: right; margin-left: auto; }
.post-nav .pn-empty { flex: 1 1 0; max-width: 48%; }
@media (max-width: 640px) { .post-nav { flex-direction: column; } .post-nav a, .post-nav .pn-empty { max-width: 100%; } .post-nav .pn-next { text-align: left; margin-left: 0; } }

.figtable { width: 100%; border-collapse: collapse; margin: 16px 0 8px; font-size: .92rem; }
.figtable th, .figtable td { border: 1px solid #d5dce8; padding: 7px 9px; text-align: left; vertical-align: top; }
.figtable th { background: #eef2f9; font-weight: 700; }
.fignote { font-size: .88rem; color: #42506a; }

.brand-fig { float: right; width: 208px; margin: 4px 0 12px 20px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); }
.brand-fig img { display: block; width: 100%; height: auto; }
.brand-fig figcaption { margin-top: 10px; font-size: 0.82rem; line-height: 1.45; color: var(--ink-soft); }
@media (max-width: 640px) { .brand-fig { float: none; width: 100%; margin: 12px 0; } }

/* audit fixes: media inside figures never overflows */
main figure img, main figure video { max-width: 100%; height: auto; }
main figure > img, main figure > video { width: auto; max-width: 100%; display: block; margin-inline: auto; }
video { max-width: 100%; }

/* polish pass: quieter termbar, console thumbs, specs, charts, icons */
.termbar { padding: 4px 20px; font-size: 0.68rem; background: #05080a; }
.termbar .tb-status { color: #9db8a4; letter-spacing: 0.1em; }
.termbar .tb-clock { margin-left: auto; }
.sys-thumb { width: 24px; height: 24px; border-radius: 6px; object-fit: cover; border: 1px solid var(--term-line); flex: none; background: #0d1f14; }
.console .syslist a { margin-right: auto; }
.h2-icon { display: inline-flex; width: 22px; height: 22px; margin-right: 9px; vertical-align: -3px; color: var(--green-dark); }
.h2-icon svg { width: 100%; height: 100%; }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 14px 0 6px; }
.specs > div { background: #fbfaf7; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.specs dt { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-dark); margin-bottom: 3px; }
.specs dd { margin: 0; font-size: 0.92rem; line-height: 1.45; }
figure.chart { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
figure.chart svg { width: 100%; height: auto; display: block; }
figure.chart figcaption { margin-top: 10px; }

/* casino media gallery */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-top: 14px; }
.media-grid figure { margin: 0; }
.media-grid video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; background: #000; display: block; }
.media-grid figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 6px; }
.media-grid.photos { display: block; columns: 4; column-gap: 12px; }
.media-grid.photos figure { break-inside: avoid; margin: 0 0 12px; }
.media-grid.photos img { width: 100%; border-radius: 10px; display: block; }
@media (max-width: 760px) { .media-grid.photos { columns: 2; } .media-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }

.profile-cover { height: 232px; }
.profile-cover video { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) { .profile-cover { height: 150px; } }

/* compaction pass: denser, hiring-manager clean */
.container { max-width: 1080px; }
.card { padding: 20px; margin-bottom: 16px; }
.hero h1 { font-size: 1.8rem; }
.hero .role { font-size: 1.05rem; }
.hero-body { padding: 0 28px 26px; }
.profile-avatar { width: 124px; height: 124px; margin-top: -62px; border-width: 4px; }
.profile-cover { height: 200px; }
.stats { gap: 10px; margin: 16px 0 2px; }
.stat { padding: 10px 12px; }
.stat .num { font-size: 1.12rem; }
.stat .lbl { font-size: 0.8rem; }
.cred-strip { gap: 10px; margin: 16px 0 2px; }
.cred { padding: 12px; flex: 1 1 150px; }
.cred-logo { height: 30px; margin-bottom: 7px; }
.cred .cred-name { font-size: 0.95rem; }
h2.section-title { font-size: 1.18rem; margin: 22px 0 10px; }
.grid { grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 14px; }
.cert-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.tile-body { padding: 13px 14px; }
.project-card h3 { font-size: 1rem; }
.tile-body p { font-size: 0.9rem; line-height: 1.5; }
.quotes { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.quote { padding: 14px 16px; }
.quote blockquote { font-size: 0.92rem; }
.laurel-grid { grid-template-columns: repeat(auto-fill, minmax(106px, 1fr)); gap: 10px; }
.post-thumb img { max-width: 132px; } /* single governing thumbnail cap, matches .post-list rule */
.btn { padding: 8px 15px; font-size: 0.92rem; }
.more-btn { padding: 7px 16px; }
.listen-grid { gap: 12px; }
.article h2, .case-study h2 { font-size: 1.22rem; }
@media (max-width: 640px) {
  .profile-cover { height: 132px; }
  .hero-body { padding: 0 18px 20px; }
  .card { padding: 16px; }
}

/* mobile dropdown fix: panel spans the header width instead of hanging off the Projects item */
@media (max-width: 640px) {
  .main-nav > ul > li.has-dropdown { position: static; }
  .dropdown {
    left: 12px; right: 12px; top: 100%; width: auto; min-width: 0;
    max-height: calc(100vh - 130px); overflow-y: auto;
  }
  .dropdown a { padding: 10px 12px; font-size: 0.95rem; }
}

/* dragon mark, blog chrome (Ness the dragon is the house mark) */
.dragon-divider { display: flex; align-items: center; gap: 14px; max-width: 440px; margin: 28px auto 4px; }
.dragon-divider::before, .dragon-divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(29, 34, 38, 0.35), transparent); }
.dragon-divider span { font-size: 1.3rem; line-height: 1; }

/* ---- pass 2 (2026-10-22): showcase, achievements, deep-dive pieces ---- */
.art-banner { border-radius: 14px; padding: 30px 24px; margin: 20px 0 6px; color: #e8f2e4;
  background: linear-gradient(150deg, #10233f 0%, #071408 90%); display: flex; flex-direction: column; gap: 6px; }
.art-banner .ab-big { font-family: var(--mono); font-size: 1.5rem; font-weight: 700; letter-spacing: 0.03em; color: #fff; }
.art-banner .ab-sub { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; color: var(--term-amber, #e8a33d); }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 16px 0 8px; }
.post-card { border: 1px solid rgba(29,34,38,0.14); border-radius: 12px; padding: 16px 18px; background: rgba(29,34,38,0.025); transition: transform .18s ease, box-shadow .18s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(10, 25, 12, 0.10); }
.post-card .post-cap { margin: 10px 0 8px; line-height: 1.55; }
.post-card .post-buy { margin: 0 0 6px; font-weight: 600; }
.post-card .post-tags { margin: 0; color: var(--ink-soft); font-size: 0.85rem; }
.ops-live { margin-top: 34px; }
.ops-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.ops-link { font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.06em; }
.ops-sub { color: var(--ink-soft); max-width: 68ch; line-height: 1.6; }
.ops-card { background: #0b120c; border: 1px solid #1d2b1e; border-radius: 14px; padding: 16px 18px 12px; margin-top: 12px; }
.ops-card canvas { width: 100%; display: block; cursor: crosshair; }
.ops-legend { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.ops-chip { color: #9db894; border: 1px solid #1d2b1e; border-radius: 999px; padding: 4px 12px; font-family: var(--mono); font-size: 0.78rem; display: inline-flex; align-items: center; gap: 7px; }
.ops-chip b { color: #e8f2e4; }
.ops-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-w { background: #e8a33d; } .dot-q { background: #7cc7ff; } .dot-t { background: #7ee787; }
.ops-state { color: #9db894; font-family: var(--mono); font-size: 0.78rem; margin-left: auto; text-transform: uppercase; letter-spacing: 0.12em; }
.ach-wall { margin-top: 40px; position: relative; overflow: hidden; }
.ach-wall::after { content: "🐉"; position: absolute; right: -18px; top: 34px; font-size: 11rem; opacity: 0.045; pointer-events: none; line-height: 1; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 12px; margin-top: 16px; position: relative; z-index: 1; }
.ach { display: flex; gap: 10px; align-items: flex-start; border: 1px solid rgba(29,34,38,0.13); border-radius: 12px; padding: 13px 15px; background: rgba(255,255,255,0.55); transition: transform .18s ease, border-color .18s ease; }
.ach:hover { transform: translateY(-2px); border-color: rgba(232,163,61,0.55); }
.ach-laurel { width: 22px; height: 22px; flex: 0 0 auto; color: #c9932b; margin-top: 2px; }
.ach-txt b { display: block; font-size: 1.06rem; letter-spacing: 0.01em; }
.ach-txt span { display: block; color: var(--ink-soft); font-size: 0.85rem; line-height: 1.45; margin-top: 2px; }
.bench-title { margin: 26px 0 10px; font-size: 1.02rem; }
.tool-chips { display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }
.tchip { border: 1px solid rgba(29,34,38,0.18); border-radius: 999px; padding: 6px 14px; font-family: var(--mono); font-size: 0.8rem; display: inline-flex; align-items: center; gap: 8px; transition: border-color .15s ease, transform .15s ease; }
.tchip:hover { border-color: rgba(232,163,61,0.6); transform: translateY(-1px); }
.tchip-logo img { height: 18px; width: auto; display: block; }
.tile { transition: transform .2s ease, box-shadow .2s ease; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(10, 25, 12, 0.12); }
.dropdown a { transition: background .12s ease, padding-left .12s ease; }
.dropdown a:hover { padding-left: 4px; }
.site-footer a { transition: color .15s ease; }
.site-footer a:hover { color: var(--amber, #e8a33d); }
::selection { background: rgba(232,163,61,0.35); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--amber, #e8a33d); outline-offset: 2px; }

/* ---- Virtuoso pattern presentation: always tiled, never a lone motif ---- */
.pattern-hero { height: 280px; border-radius: 12px; background-repeat: repeat; background-size: 180px; }
.pattern-swatch { height: 96px; border-radius: 8px; background-repeat: repeat; margin-bottom: 12px; }
.pattern-floral { background-image: url("patterns/virtuoso-floral.jpg"); }
.pattern-lines { background-image: url("patterns/virtuoso-lines.jpg"); background-size: 110px; }
.pattern-swatch.pattern-floral { background-size: 120px; }
.rig-photo { max-width: 400px; margin: 26px auto 8px; }
.rig-photo img { width: 100%; height: auto; display: block; border-radius: 12px; }
.rig-photo figcaption { color: var(--ink-soft); font-size: 0.88rem; line-height: 1.55; margin-top: 10px; text-align: center; }
.photo-group-title { text-align: center; font-size: 1.2rem; margin: 8px 0 2px; }
.rig-photo.author-photo { max-width: 260px; }
.resume-portrait { float: right; width: 180px; height: auto; border-radius: 12px; margin: 4px 0 16px 24px; }
@media (max-width: 640px) { .resume-portrait { float: none; display: block; margin: 0 auto 16px; } }

/* stat icons */
.stat .stat-ico { display: block; font-size: 1.05rem; line-height: 1.2; margin-bottom: 2px; }

/* dropdown stability: fade with a short hide delay, hover bridge, own layer, fixed rows */
.main-nav ul.dropdown {
  display: flex; opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(5px) translateZ(0);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s linear 0.22s;
}
.has-dropdown:hover ul.dropdown, .has-dropdown:focus-within ul.dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0) translateZ(0);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s;
}
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.dropdown a { display: flex; align-items: center; min-height: 40px; line-height: 1.3; }

/* side-by-side test comparison grids (added 2026-10-25, Will's artifacts by default rule) */
.compare-note { max-width: 72ch; }
.compare-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 18px 0 8px; }
.compare-grid figure { margin: 0; }
.compare-grid video { width: 100%; height: auto; display: block; border-radius: 10px; border: 1px solid var(--border); background: #000; }
.article figure video { max-width: 400px; width: auto; height: auto; margin-inline: auto; display: block; border-radius: 10px; border: 1px solid var(--border); background: #000; }
/* Vertical videos size by height so a portrait clip never fills the screen (Will, 2026-11-01) */
.article figure video.vid-v { width: auto; max-width: 400px; height: auto; max-height: min(52vh, 480px); margin-inline: auto; }
.compare-grid video.vid-v { width: auto; max-width: min(400px, 100%); height: auto; max-height: min(50vh, 440px); margin-inline: auto; }
@media (max-width: 640px) { .article figure video.vid-v { max-height: min(50vh, 420px); } .compare-grid video.vid-v { max-height: min(48vh, 400px); } }
@media (max-width: 640px) { .compare-grid { grid-template-columns: 1fr; } }

/* Case study heroes, metric cards, analytics gallery */
.case-hero { margin: 22px 0 6px; }
.case-hero img, .case-hero video { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--border); }
.case-hero figcaption { color: var(--ink-soft); font-size: 0.88rem; margin-top: 8px; }
.metric-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 16px; margin: 18px 0 8px; }
.metric-card { border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; background: #fff; }
.metric-card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.metric-card .blurb { color: var(--ink-soft); font-size: 0.9rem; margin: 0 0 10px; }
.metric-list { list-style: none; margin: 0; padding: 0; }
.metric-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 6px 0; border-top: 1px solid var(--border); font-size: 0.9rem; color: var(--ink-soft); }
.metric-list li:first-child { border-top: 0; }
.metric-list b { color: var(--ink); font-weight: 700; white-space: nowrap; }
.metric-list .up { color: #137333; font-weight: 600; white-space: nowrap; }
.analytics-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0 8px; }
.analytics-gallery figure { margin: 0; }
.analytics-gallery img { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--border); }
.analytics-gallery figcaption { color: var(--ink-soft); font-size: 0.85rem; margin-top: 7px; }
@media (max-width: 640px) { .analytics-gallery { grid-template-columns: 1fr; } }

/* Embedded YouTube playlists */
.playlist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 16px 0 8px; }
.playlist-card { margin: 0; }
.playlist-card .playlist-title { font-weight: 600; font-size: 0.98rem; margin-bottom: 7px; color: var(--ink); }
.playlist-card figcaption { color: var(--ink-soft); font-size: 0.85rem; margin-top: 7px; }
.embed-wrap { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: #000; }
.embed-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 640px) { .playlist-grid { grid-template-columns: 1fr; } }

/* Final-pass polish: brand lockup, stat bands, playlist cards, card shots */
.brand-lockup { text-align: center; margin: 16px 0 2px; }
.brand-logo { height: 44px; width: auto; }
.stat-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat-band .stat { flex: none; }
.playlist-card { border: 1px solid var(--border); border-radius: 16px; background: #fff; padding: 16px 16px 14px; box-shadow: 0 1px 3px rgba(18, 36, 26, 0.06); }
.playlist-head { display: flex; align-items: center; gap: 11px; margin-bottom: 11px; }
.playlist-ico { font-size: 1.2rem; line-height: 1; background: #eef4ee; border: 1px solid var(--border); border-radius: 10px; padding: 8px 9px; }
.playlist-card .playlist-title { font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.playlist-sub { color: var(--ink-soft); font-size: 0.86rem; margin-top: 1px; }
.card-shots { display: grid; grid-template-columns: repeat(4, minmax(0, 80px)); gap: 6px; margin-top: 12px; justify-content: start; }
.card-shots img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); display: block; }
.analytics-gallery.compact { max-width: 660px; margin-left: auto; margin-right: auto; }
.quote { position: relative; }
.quote::before { content: "❝"; position: absolute; top: 8px; right: 16px; font-size: 1.7rem; color: var(--border); }
@media (min-width: 641px) {
  .laurel-grid.fixed-4 { grid-template-columns: repeat(4, 1fr); }
  .laurel-grid.fixed-5 { grid-template-columns: repeat(5, 1fr); }
  .laurel-grid.fixed-6 { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 640px) { .stat-band { grid-template-columns: repeat(2, 1fr); } }

/* Sol audit polish 2026-10-25: logo contrast, reviewer route, hero controls */
.brand-lockup a { display: inline-block; background: #ffffff; border: 1px solid var(--border); padding: 12px 22px; border-radius: 12px; line-height: 0; }
.brand-lockup a:focus-visible, .case-hero video:focus-visible, .reviewer-route a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.editor-credit { margin: 10px 0 4px; }
.reviewer-route { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 4px; font-size: 0.92rem; }
.reviewer-route span { color: var(--ink-soft); font-weight: 600; }
.reviewer-route a { border: 1px solid var(--border); border-radius: 999px; padding: 5px 13px; background: #fff; font-weight: 600; }
.reviewer-route a:hover { border-color: var(--blue); text-decoration: none; }
.open-note { color: var(--ink-soft); font-size: 0.88rem; margin: 14px 0 0; text-align: center; }
.case-study h2 { scroll-margin-top: 84px; }

/* ============ media size law (standing spec, Will; restored 2026-11-15) ============
   In-post media is medium: capped width and height, centered, never full screen
   width on desktop or mobile. Index thumbnails stay small fixed squares
   (.post-list .post-thumb img, 132px desktop / 84px mobile). */
.case-study figure img { width: auto; max-width: min(400px, 100%); max-height: 520px; height: auto; margin-inline: auto; display: block; }
.case-study figure video { width: auto; max-width: min(400px, 100%); height: auto; margin-inline: auto; display: block; }
@media (max-width: 640px) {
  .article figure img, .case-study figure img { max-width: min(320px, 100%); max-height: 440px; }
  .article figure video, .case-study figure video { max-width: min(320px, 100%); }
}
