/* braintest3.css — braintest2 brain nav + the STACK takeover overlays.
   Left opens a digital "machine room", right opens a painterly "studio wall".
   The brain recedes as a themed panel pours in from its side. Vanilla, no libs. */

:root {
  --bg-1: #f2efe9; --bg-2: #e2ddd2;
  --ink: #211d18; --ink-2: rgba(33,29,24,.62); --sepia: #4a3f30; --blue: #4D8BE8;
  --bsize: clamp(300px, 36vw, 460px);
  --display: "Fraunces", Georgia, serif;
  --garamond: "EB Garamond", Georgia, serif;
  --mono: "IBM Plex Mono","SF Mono",Menlo,monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  min-height: 100svh;
  background: radial-gradient(120% 120% at 50% 42%, var(--bg-1) 0%, var(--bg-2) 100%);
  color: var(--ink); font-family: var(--mono);
  display: flex; flex-direction: column; overflow: hidden;
}

/* header — frosted editorial masthead */
.bar {
  margin: clamp(12px,1.7vw,22px);
  padding: clamp(9px,1.15vw,14px) clamp(18px,2.4vw,38px);
  background: rgba(246,242,234,.70);
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
  backdrop-filter: blur(16px) saturate(1.08);
  border: 1px solid rgba(40,35,28,.12);
  border-radius: 16px;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 16px 44px -30px rgba(40,35,28,.6);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 16px;
  position: relative; z-index: 3;
  transition: margin .55s cubic-bezier(.16,1,.3,1), border-radius .55s cubic-bezier(.16,1,.3,1);
}
.bar a { text-decoration: none; }

/* name → serif wordmark with a blue full-stop, underline sweeps on hover */
.bar__name {
  justify-self: start; position: relative; line-height: 1;
  font-family: var(--garamond); font-weight: 500; text-transform: none;
  font-size: clamp(20px,2.1vw,30px); letter-spacing: .005em;
  color: var(--ink); padding-bottom: 3px;
}
.bar__name-dot { color: var(--blue); }
.bar__name::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 100%;
  background: var(--blue); transform: scaleX(0); transform-origin: left;
  transition: transform .42s cubic-bezier(.16,1,.3,1);
}
.bar__name:hover::after { transform: scaleX(1); }

/* résumé → slim ghost pill */
.bar__resume {
  justify-self: center; display: inline-flex; align-items: baseline; gap: 8px;
  font-family: "Inter", Arial, sans-serif; text-transform: uppercase;
  padding: 9px 18px; border: 1px solid rgba(40,35,28,.22); border-radius: 999px;
  transition: border-color .25s ease, background .25s ease;
}
.bar__resume .top  { font-weight: 600; font-size: 10px; letter-spacing: .22em; color: #8a8073; transition: color .25s; }
.bar__resume .main { font-weight: 700; font-size: clamp(11px,1vw,13px); letter-spacing: .16em; color: var(--ink); transition: color .25s; }
.bar__resume:hover { border-color: var(--blue); }
.bar__resume:hover .top,
.bar__resume:hover .main { color: var(--blue); }

/* contact → ghost pill that opens an email + LinkedIn popover */
.bar__contact { justify-self: end; position: relative; }
.bar__contact > summary {
  display: inline-flex; align-items: center; gap: 9px; list-style: none; cursor: pointer;
  font-family: "Inter", Arial, sans-serif; font-weight: 600; font-size: clamp(11px,1vw,13px);
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink); white-space: nowrap;
  background: transparent; border: 1px solid rgba(40,35,28,.30); border-radius: 999px;
  padding: 11px 22px;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.bar__contact > summary::-webkit-details-marker { display: none; }
.bar__contact > summary .arrow { transition: transform .25s ease; }
.bar__contact > summary:hover,
.bar__contact[open] > summary { background: var(--blue); border-color: var(--blue); color: #fff; }
.bar__contact[open] > summary .arrow { transform: rotate(90deg); }

.bar__contact-pop {
  position: absolute; top: calc(100% + 12px); right: 0; z-index: 30;
  min-width: 264px; max-width: calc(100vw - 32px);
  background: rgba(246,242,234,.92);
  -webkit-backdrop-filter: blur(16px) saturate(1.08); backdrop-filter: blur(16px) saturate(1.08);
  border: 1px solid rgba(40,35,28,.14); border-radius: 14px;
  box-shadow: 0 20px 54px -26px rgba(40,35,28,.6);
  padding: 8px; display: flex; flex-direction: column; gap: 2px;
  animation: cpop .26s cubic-bezier(.16,1,.3,1);
}
@keyframes cpop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.bar__contact-pop a {
  display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 9px;
  text-decoration: none; color: var(--ink); transition: background .2s ease;
  font-family: "Inter", Arial, sans-serif;
}
.bar__contact-pop a:hover { background: rgba(77,139,232,.10); }
.cp-ico {
  width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center;
  border-radius: 9px; background: rgba(40,35,28,.06); color: var(--blue);
}
.cp-ico svg { width: 18px; height: 18px; display: block; }
.cp-tt { display: flex; flex-direction: column; gap: 2px; line-height: 1.1; }
.cp-k { font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: #8a8073; font-weight: 600; }
.cp-v { font-size: 13px; color: var(--ink); font-weight: 500; }
.bar__contact-pop a:hover .cp-v { color: var(--blue); }

@media (max-width: 600px) {
  .bar { grid-template-columns: 1fr auto; padding: 10px 16px; column-gap: 10px; }
  .bar__name { font-size: 21px; white-space: nowrap; }
  .bar__resume { display: none; }
  .bar__contact { padding: 10px 16px; }
}

/* stage: side | brain | side — recedes when a stack is open */
.stage { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr var(--bsize) 1fr;
  align-items: center; justify-items: center;
  transition: opacity .55s cubic-bezier(.16,1,.3,1), transform .55s cubic-bezier(.16,1,.3,1); }
body.stack-open .stage { opacity: 0; transform: scale(.94); pointer-events: none; }
body.stack-open .bar  { opacity: .25; }

/* home footer: Writer · Builder · Strategist · Director */
.home-foot {
  position: fixed; left: 0; right: 0; bottom: clamp(16px, 3vh, 34px);
  display: flex; justify-content: center; align-items: center; gap: clamp(12px, 1.8vw, 26px);
  font-family: var(--mono); font-size: clamp(10px, 0.95vw, 12.5px);
  letter-spacing: .3em; text-transform: uppercase; color: var(--sepia);
  z-index: 2; pointer-events: none; opacity: 1;
}
.home-foot .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--blue); opacity: .85; flex: none; }
/* fades out with the rest of the home UI when a section opens */
.app.section-mode .home-foot { opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .32s ease, transform .32s ease; }
@media (prefers-reduced-motion: reduce) { .home-foot { animation: none; } }

.brain { position: relative; width: var(--bsize); height: var(--bsize); display: grid; place-items: center; }
.brain__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .6s ease; pointer-events: none; }
.brain__canvas { position: relative; display: block; }

.side { position: relative; width: 100%; height: var(--bsize); }
.side > * { position: absolute; top: 50%; transform: translateY(-50%); }
.side--l > * { right: clamp(14px,2.5vw,40px); text-align: right; }
.side--r > * { left: clamp(14px,2.5vw,40px); text-align: left; }

.label { display: flex; align-items: center; gap: 14px; transition: opacity .4s ease, transform .4s ease; }
.side--r .label { flex-direction: row; }
.label .t { font-family: var(--garamond); font-style: italic; font-size: clamp(16px,1.7vw,24px); letter-spacing: .01em; color: var(--sepia); white-space: nowrap; }
.label .lead { position: relative; width: clamp(30px,5vw,86px); height: 1px; background: var(--sepia); opacity: .75; }
.label .lead::after { content:""; position:absolute; top:50%; transform:translateY(-50%); width:5px; height:5px; border-radius:50%; background:var(--sepia); }
.side--l .label .lead::after { right:-2px; } .side--r .label .lead::after { left:-2px; }

.menu { display: flex; flex-direction: column; gap: clamp(8px,1.4vh,16px); pointer-events: none; }
.menu a { opacity: 0; text-decoration: none; cursor: pointer; transition: opacity .5s ease, transform .5s ease, color .25s ease, background-position .55s ease, filter .25s ease; }
.menu a:nth-child(1){transition-delay:.04s} .menu a:nth-child(2){transition-delay:.10s}
.menu a:nth-child(3){transition-delay:.16s} .menu a:nth-child(4){transition-delay:.22s}

/* LEFT menu: digital / blue mono — the technical mind (unchanged) */
.menu--l a { font-family: var(--mono); font-size: clamp(12px,1vw,15px); letter-spacing: .14em; text-transform: uppercase; color: #20407a; transform: translateX(-16px); display: flex; align-items: baseline; gap: 10px; justify-content: flex-end; }
.menu--l a i { font-style: normal; font-size: 10px; color: var(--blue); opacity: .7; }
.menu--l a:hover { color: var(--blue); text-shadow: 0 0 14px rgba(77,139,232,.55); }
.menu--l a.stack { margin-top: 6px; color: #15346b; font-weight: 500; }
.menu--l a.stack::before { content:"\203A"; color: var(--blue); margin-right: 4px; }

/* RIGHT menu: A3 numbered signal labels — the creative mind */
.menu--r { gap: clamp(14px,2.4vh,26px); }
.menu--r a { position: relative; font-family: "Inter", Arial, sans-serif; font-size: clamp(12px,1vw,14px); letter-spacing: .14em; text-transform: uppercase; font-weight: 500; line-height: 1; color: #3d352a; transform: translateX(16px); padding-left: 42px; text-align: left; }
.menu--r a::before { content: ""; position: absolute; left: 0; top: 50%; width: 24px; height: 1px; background: #9c7a32; transition: width .2s ease, height .2s ease, background .2s ease, box-shadow .2s ease; }
.menu--r a:hover {
  background: linear-gradient(92deg, #8fc0f7 0%, #4D8BE8 30%, #3a78d8 55%, #7fb2f2 80%, #8fc0f7 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  animation: navBlueShift 3.2s linear infinite;
}
@keyframes navBlueShift { to { background-position: 200% 0; } }
.menu--r a:hover::before { height: 2px; background: #4D8BE8; box-shadow: 0 0 8px rgba(77,139,232,.75); }
.menu--r a.stack { margin-top: clamp(6px,1.2vh,14px); }

.stage.is-left  .side--l .label { opacity: 0; transform: translateY(-50%) translateX(-10px); }
.stage.is-left  .side--l .menu  { pointer-events: auto; }
.stage.is-left  .side--l .menu a { opacity: 1; transform: translateX(0); }
.stage.is-right .side--r .label { opacity: 0; transform: translateY(-50%) translateX(10px); }
.stage.is-right .side--r .menu  { pointer-events: auto; }
.stage.is-right .side--r .menu a { opacity: 1; transform: translateX(0); }

/* exit to a section page: labels/nav dissolve, brain fades in place
   (the section page does the single left+up glide so there is no jump) */
body.is-leaving .label,
body.is-leaving .menu { opacity: 0 !important; pointer-events: none; transition: opacity .3s ease; }
body.is-leaving .brain { transition: opacity .34s ease; opacity: 0; }
body.is-leaving .bar { opacity: .6; transition: opacity .3s ease; }

/* ===================== STACK OVERLAYS ===================== */

/* scoped to section so it can never collide with the menu's <a class="stack"> link */
section.stack {
  position: fixed; inset: 0; z-index: 50;
  opacity: 0; visibility: hidden;
  transition: opacity .5s ease, visibility 0s .5s;
  overflow-y: auto; overscroll-behavior: contain;
}
section.stack.is-open { opacity: 1; visibility: visible; transition: opacity .5s ease; }

.stack__inner { width: min(100%, 1180px); margin: 0 auto; position: relative; z-index: 1;
  padding: clamp(24px,5vw,72px);
  opacity: 0; transition: opacity .6s ease .05s, transform .6s cubic-bezier(.16,1,.3,1) .05s; }

/* full-bleed image hero (tech) — the Temples of Syrinx */
.stack__hero {
  position: relative; z-index: 1; margin: 0;
  width: 100%; height: clamp(260px, 46vh, 480px); overflow: hidden;
  opacity: 0; transform: scale(1.035);
  transition: opacity .8s ease, transform 1.2s cubic-bezier(.16,1,.3,1);
}
section.stack.is-open .stack__hero { opacity: 1; transform: none; }
.stack__hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
section.stack.is-open .stack__hero-img { animation: heroKen 22s ease-out forwards; }
@keyframes heroKen { from { transform: scale(1.12); } to { transform: scale(1); } }
.stack__hero-cap {
  position: absolute; bottom: 0; z-index: 1;
  width: min(100%, 1180px); left: 50%; transform: translateX(-50%) translateY(14px);
  padding: 0 clamp(24px,5vw,72px) clamp(20px,3.4vh,40px);
  opacity: 0; transition: opacity .8s ease .35s, transform .9s cubic-bezier(.16,1,.3,1) .35s;
}
section.stack.is-open .stack__hero-cap { opacity: 1; transform: translateX(-50%) translateY(0); }
.stack__hero-cap .stack__quote { max-width: 30ch; }

/* ── TECH hero: machine-room melt, cyan glow ── */
.stack--tech .stack__hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8,11,18,.78) 0%, rgba(8,11,18,.12) 52%, rgba(8,11,18,0) 72%),
    linear-gradient(180deg, rgba(8,11,18,.45) 0%, rgba(8,11,18,0) 26%, rgba(8,11,18,.45) 70%, #080b12 100%);
}
.stack--tech .stack__hero-cap .stack__kicker { color: #8fd0ff; }
.stack--tech .stack__hero-cap .stack__quote {
  font-family: var(--mono); font-weight: 500;
  color: #eaf2ff; text-shadow: 0 2px 30px rgba(0,0,0,.7), 0 0 24px rgba(47,111,237,.35);
}
.stack--tech .stack__hero-cap .stack__quote em {
  font-style: normal; color: #8fd0ff;
  text-shadow: 0 0 22px rgba(120,200,255,.9), 0 0 44px rgba(47,111,237,.6);
}
.stack--tech .stack__hero-cap .stack__quote cite { color: #8fd0ff; opacity: .85; }
.stack--tech .stack__close { backdrop-filter: blur(6px); background: rgba(8,11,18,.45); }

/* ── PAINT hero: full vibrant orchids, no crop, no fade; quote sits below ── */
.stack--paint .stack__hero { height: auto; overflow: visible; }
.stack--paint .stack__hero-img { position: static; width: 100%; height: auto; }
section.stack--paint.is-open .stack__hero-img { animation: none; }     /* no ken-burns: full image, no clipping */
.stack--paint .stack__hero-cap {
  position: static; left: auto; width: min(100%, 1180px); margin: 0 auto;
  transform: translateY(16px);
  padding: clamp(4px,1vh,12px) clamp(24px,5vw,72px) 0;   /* tight up against the flowers */
}
section.stack--paint.is-open .stack__hero-cap { transform: translateY(0); }
.stack--paint .stack__hero-cap .stack__kicker {
  font-family: var(--mono); color: #4c1d72; background: none; backdrop-filter: none;
  padding: 0; text-shadow: none;
}
.stack--paint .stack__hero-cap .stack__quote {
  font-family: "Inter", Arial, sans-serif; font-style: normal; font-weight: 600;
  font-size: clamp(22px,2.6vw,36px); line-height: 1.18; letter-spacing: -.01em;
  color: #2a2017; text-shadow: none; max-width: 34ch;       /* breaks to 2 lines */
}
.stack--paint .stack__hero-cap .stack__quote em {
  font-style: normal; font-weight: 700;
  background: none; -webkit-text-fill-color: #4D8BE8; color: #4D8BE8;
}
.stack--paint .stack__hero-cap .stack__quote cite { color: #4c1d72; font-family: var(--mono); }
.stack--paint .stack__close { backdrop-filter: blur(6px); background: rgba(243,233,214,.55); }
.stack--tech  .stack__inner { transform: translateX(-46px); }
.stack--paint .stack__inner { transform: translateX(46px); }
.stack.is-open .stack__inner { opacity: 1; transform: none; }

.stack__close {
  position: fixed; top: clamp(18px,3vw,34px); right: clamp(18px,3vw,34px); z-index: 3;
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  background: none; border: 1px solid currentColor; border-radius: 999px; padding: 10px 18px; cursor: pointer;
  transition: background .2s, color .2s;
}

/* featured quote + heading */
.stack__head { margin-bottom: clamp(34px,5vh,64px); max-width: 30ch; }
.stack__kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; opacity: .7; margin-bottom: 18px; }
.stack__quote { margin: 0; font-size: clamp(22px,2.7vw,40px); line-height: 1.18; }
.stack__quote cite { display: block; margin-top: 14px; font-style: normal; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; opacity: .65; }

/* masonry of categories */
.stack__grid { column-gap: clamp(28px,3vw,52px); }
.cat { break-inside: avoid; margin-bottom: clamp(22px,3vh,34px);
  opacity: 0; transition: opacity .5s ease, transform .5s cubic-bezier(.16,1,.3,1); }
.cat h3 { margin: 0 0 12px; }
.cat ul { list-style: none; margin: 0; padding: 0; }
.cat li { opacity: 0; transition: opacity .45s ease, transform .45s cubic-bezier(.16,1,.3,1); }
.cat.in, .cat li.in { opacity: 1; transform: none !important; }

/* ---- TECH theme: machine room ---- */
.stack--tech { background: #080b12; color: #c5d0e0; }
.stack--tech::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(47,111,237,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,111,237,.07) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask: radial-gradient(120% 90% at 20% 0%, #000 0%, transparent 75%);
  mask: radial-gradient(120% 90% at 20% 0%, #000 0%, transparent 75%);
}
.stack--tech::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 15% 12%, rgba(47,111,237,.16), transparent 70%);
}
.stack--tech .stack__close { color: #6f9bff; }
.stack--tech .stack__close:hover { background: #6f9bff; color: #080b12; }
.stack--tech .stack__kicker { color: #6f9bff; }
.stack--tech .stack__quote { font-family: var(--mono); font-weight: 500; color: #dce6f6; text-shadow: 0 0 22px rgba(47,111,237,.45); }
.stack--tech .stack__quote cite { color: #6f9bff; }
.stack--tech .stack__grid { column-width: 210px; }
.stack--tech .cat { transform: translateY(-14px); }
.stack--tech .cat li { transform: translateY(-10px); }
.stack--tech .cat h3 { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #5b8cff; }
.stack--tech .cat h3::before { content: "// "; opacity: .6; }
.stack--tech .cat li { font-family: var(--mono); font-size: 13px; line-height: 1.95; color: #9fb0c9; }
.stack--tech .cat li:hover { color: #eaf1ff; }

/* ---- PAINT theme: studio wall ---- */
.stack--paint { background: #f3e9d6; color: #2a2017; }
.stack--paint .stack__close { color: #7a3a1c; }
.stack--paint .stack__close:hover { background: #7a3a1c; color: #f3e9d6; }
.stack--paint .stack__kicker { color: #9c5a1f; }
.stack--paint .stack__quote { font-family: "Inter", Arial, sans-serif; font-weight: 600; color: #3a2a1c; }
.stack--paint .stack__quote cite { color: #9c5a1f; font-family: var(--mono); }
.stack--paint .stack__grid { column-width: 230px; }
.stack--paint .cat { transform: translateY(14px); }
.stack--paint .cat li { transform: translateY(12px); }
.stack--paint .cat h3 { font-family: "Inter", Arial, sans-serif; font-style: normal; font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  background: none; -webkit-text-fill-color: #4D8BE8; color: #4D8BE8; }
.stack--paint .cat li { font-family: "Inter", Arial, sans-serif; font-size: 14px; line-height: 1.85; color: #43362a; }
.stack--paint .cat li:hover { color: #111; }

/* mobile: brain nav stacks; menus always visible */
@media (max-width: 760px) {
  body { overflow-y: auto; }
  .stage { display: flex; flex-direction: column; gap: 22px; padding: 10px 18px 40px; }
  .brain { width: min(74vw,360px); height: min(74vw,360px); }
  .side { height: auto; width: 100%; max-width: 360px; }
  .side > * { position: static; transform: none; text-align: center; }
  .side--l > *, .side--r > * { right: auto; left: auto; text-align: center; }
  .label { display: none; }
  .menu { pointer-events: auto; align-items: center; }
  .menu--l a, .menu--r a { opacity: 1; transform: none; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .brain__img, .label, .menu a, .stage, .stack__inner, .cat, .cat li { transition: none !important; }
  .menu--r a:hover { animation: none !important; }
}

/* ════ RESUME REVEAL ════ */
/* side labels dissolve; the both-on brain stays behind as a faded watermark */
body.resume-anim .side { opacity: 0 !important; pointer-events: none; transition: opacity .5s ease; }
/* bar persists as a solid full-width header so scrolling copy never clashes */
body.resume-open .bar { margin: 0; border-radius: 0; border-color: transparent; border-bottom: 1px solid rgba(40,35,28,.12); box-shadow: 0 8px 22px -18px rgba(40,35,28,.55); }

.resume {
  position: fixed; inset: 0; z-index: 2; color: #2a2620;
  background: rgba(243,238,228,.85);            /* translucent: brain reads as a watermark behind */
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  overflow-y: auto; overscroll-behavior: contain;
  clip-path: inset(0 0 100% 0); opacity: 0;
  transition: clip-path .8s cubic-bezier(.16,1,.3,1), opacity .4s ease;
}
body.resume-open .resume { clip-path: inset(0 0 0 0); opacity: 1; }

.resume__inner {
  width: min(100% - 2*clamp(20px,5vw,64px), 980px); margin: 0 auto;
  padding: clamp(112px,15vh,150px) 0 clamp(64px,10vh,120px);
}

/* type-in reveal */
.rz-reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .6s cubic-bezier(.16,1,.3,1); }
.rz-reveal.in { opacity: 1; transform: none; }
.rz-name.rz-reveal { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); transition: clip-path .9s cubic-bezier(.16,1,.3,1); }
.rz-name.rz-reveal.in { clip-path: inset(0 0 0 0); }

.rz-name { font-family: "Inter", Arial, sans-serif; font-weight: 700; font-size: clamp(34px,5.5vw,66px); letter-spacing: -.02em; color: #2a2620; line-height: 1.12; padding-bottom: .12em; }
.rz-pos { font-family: var(--garamond); font-style: italic; font-size: clamp(17px,1.8vw,23px); color: #5a5145; margin-top: 10px; }
/* elevated header: id block + download pill */
.rz-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.rz-kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: #4D8BE8; margin: 0 0 12px; }
.rz-roles { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; margin-top: 16px; font-family: var(--mono); font-size: clamp(11px,1.05vw,13px); letter-spacing: .22em; text-transform: uppercase; color: #6a6052; }
.rz-roles .d { width: 5px; height: 5px; border-radius: 50%; background: #4D8BE8; }
.rz-dl { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  font-family: "Inter", Arial, sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .03em; color: #fff;
  background: #4D8BE8; border-radius: 999px; padding: 13px 22px; text-decoration: none;
  box-shadow: 0 14px 30px -16px rgba(77,139,232,.85); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.rz-dl:hover { background: #3a78d8; transform: translateY(-2px); box-shadow: 0 20px 38px -16px rgba(77,139,232,.95); }
.rz-dl .ar { transition: transform .2s ease; } .rz-dl:hover .ar { transform: translateY(3px); }
.rz-dl--big { font-size: 15px; padding: 17px 32px; }
.rz-foot { margin-top: clamp(50px,8vh,90px); padding-top: clamp(30px,4vh,44px); border-top: 1px solid rgba(40,35,28,.14); display: flex; justify-content: center; }
/* interactive lift on cards + skill groups */
.rz-card, .rz-group { transition: border-color .25s ease, transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease; }
.rz-card:hover, .rz-group:hover { border-color: rgba(77,139,232,.5); transform: translateY(-3px); box-shadow: 0 20px 44px -28px rgba(40,35,28,.45); }

.rz-sec { margin-top: clamp(40px,6vh,68px); }
.rz-sec > h2 {
  font-family: "Inter", Arial, sans-serif; font-weight: 600; font-size: clamp(13px,1vw,15px);
  letter-spacing: .2em; text-transform: uppercase; color: #4D8BE8;
  margin: 0 0 22px; padding-bottom: 12px; border-bottom: 1px solid rgba(40,35,28,.13);
}
.rz-body { font-family: var(--garamond); font-size: clamp(16px,1.25vw,19px); line-height: 1.72; color: #33302a; max-width: 74ch; }
.rz-body + .rz-body { margin-top: 16px; }

/* chips / little buttons */
.rz-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rz-chips li {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: #33302a; border: 1px solid rgba(40,35,28,.22); background: rgba(255,253,248,.55);
  padding: 8px 13px; border-radius: 6px; transition: border-color .2s, color .2s, background .2s;
}
.rz-chips li:hover { color: #4D8BE8; border-color: #4D8BE8; background: rgba(255,255,255,.85); }
.rz-chips.sm li { font-size: 10px; padding: 6px 11px; }

/* stack: boxed skill groups */
.rz-stack { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 16px; }
.rz-group { background: rgba(255,253,248,.5); border: 1px solid rgba(40,35,28,.1); border-radius: 12px; padding: 18px 18px 20px; }
.rz-group h4 { margin: 0 0 13px; font-family: "Inter", Arial, sans-serif; font-weight: 600; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #4D8BE8; }

/* capabilities cards */
.rz-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); gap: 16px; }
.rz-card { background: rgba(255,253,248,.5); border: 1px solid rgba(40,35,28,.1); border-radius: 12px; padding: clamp(20px,2vw,28px); }
.rz-card h3 { margin: 0 0 10px; font-family: "Inter", Arial, sans-serif; font-weight: 700; font-size: clamp(17px,1.5vw,21px); letter-spacing: -.01em; color: #2a2620; }
.rz-card p { font-family: var(--garamond); font-size: clamp(15px,1.15vw,17px); line-height: 1.66; color: #33302a; margin: 0; }

/* experience */
.rz-item { margin-top: 34px; }
.rz-item:first-of-type { margin-top: 0; }
.rz-item h3 { font-family: "Inter", Arial, sans-serif; font-weight: 700; font-size: clamp(19px,1.7vw,24px); letter-spacing: -.01em; color: #2a2620; }
.rz-item .meta { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #4D8BE8; margin: 7px 0 0; }
.rz-item p:not(.meta) { font-family: var(--garamond); font-size: clamp(15.5px,1.2vw,18px); line-height: 1.7; color: #33302a; margin-top: 12px; max-width: 74ch; }

/* client chip groups */
.rz-clients { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 20px 28px; margin-top: 24px; }
.rz-cg h5 { margin: 0 0 10px; font-family: "Inter", Arial, sans-serif; font-weight: 600; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: #4D8BE8; }

/* agentic sub-systems (name + description) */
.rz-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 20px 28px; margin-top: 24px; }
.rz-cats--pack { display: block; columns: 260px 3; column-gap: 28px; }
.rz-cats--pack .rz-cat { break-inside: avoid; margin: 0 0 18px; }
.rz-cat .k { display: block; font-family: "Inter", Arial, sans-serif; font-weight: 600; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #4D8BE8; margin-bottom: 6px; }
.rz-cat .v { font-family: var(--garamond); font-size: 15px; line-height: 1.6; color: #43362a; }

/* recognition / education / board */
.rz-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.rz-tcol h2 { font-family: "Inter", Arial, sans-serif; font-weight: 600; font-size: clamp(13px,1vw,15px); letter-spacing: .2em; text-transform: uppercase; color: #4D8BE8; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid rgba(40,35,28,.13); }
@media (max-width: 720px) { .rz-trio { grid-template-columns: 1fr; gap: 34px; } }

.rz-download { display: inline-block; margin-top: 48px; font-family: "Inter", Arial, sans-serif; font-weight: 600; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #4D8BE8; border-bottom: 1px solid #4D8BE8; padding-bottom: 5px; text-decoration: none; transition: opacity .2s; }
.rz-download:hover { opacity: .65; }

@media (prefers-reduced-motion: reduce) {
  .resume { transition: none !important; }
  .rz-reveal, .rz-name.rz-reveal { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
}

/* ═══════════ persistent-brain single-page app (the brain never reloads) ═══════════
   On the home shell (body.app) the brain is ONE fixed element. Entering a section
   does NOT navigate: the home UI fades, the SAME brain glides from centre to its
   dock, and the fetched content flows in once it arrives. Nothing blinks. */
.veil { display: none !important; }

.app .brain {
  position: fixed; top: 50%; left: 50%;
  width: var(--bsize); height: var(--bsize);
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  z-index: 2; pointer-events: none;
  transition: transform .85s cubic-bezier(.5, 0, .2, 1);
}
.brain-slot { width: var(--bsize); height: var(--bsize); }   /* keeps the home grid shape */

/* docks: the brain centre lands on the viewport edge, one half showing */
.app.section-mode.side-right .brain { transform: translate(calc(-50% - 50vw), -50%); }
.app.section-mode.side-left  .brain { transform: translate(calc(-50% + 50vw), -50%); }

/* hemisphere-cross hotspot: appears over the visible brain half while a section
   is open. Hovering shows "Go Left/Right Brain"; clicking crosses to the other
   side. A child of the brain wrap (which stays pointer-events:none so it never
   blocks the scroll layer); only this small disc re-enables pointer events. */
.brain-cross-hit {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: clamp(150px, 17vw, 230px); height: clamp(150px, 17vw, 230px);
  border-radius: 50%; display: grid; place-items: center;
  pointer-events: none; cursor: pointer; z-index: 3;
}
.app.section-mode .brain-cross-hit { pointer-events: auto; }
.app.section-mode.side-right .brain-cross-hit { left: 72%; }  /* brain docked left  → hover its right half */
.app.section-mode.side-left  .brain-cross-hit { left: 28%; }  /* brain docked right → hover its left half  */
.brain-cross-label {
  font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .2em;
  text-transform: uppercase; white-space: nowrap; padding: 9px 16px; border-radius: 999px;
  background: rgba(18,22,30,.74); color: #fff;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .25s ease; pointer-events: none;
}
.app.section-mode .brain-cross-hit:hover .brain-cross-label { opacity: 1; }
@media (pointer: coarse) { .brain-cross-hit { display: none; } }

/* home UI fades out fast while the brain glides */
.app .stage { transition: opacity .32s ease; }
.app.section-mode .stage { opacity: 0; pointer-events: none; }

/* section content: a scroll layer that clears the docked brain, flows in last */
.app .page__content {
  position: fixed; inset: 0; z-index: 1;
  overflow-y: auto; overscroll-behavior: contain;
  padding: clamp(96px,10vh,112px) 0 0;
  opacity: 0; visibility: hidden; transition: opacity .5s ease;
}
.app.section-mode .page__content { visibility: visible; }
.app.content-in .page__content { opacity: 1; }

/* the injected work scene clears the brain on the active side */
.app.side-right .page__content .work__scene { margin: 0 auto 0 clamp(200px, 25vw, 320px); }
.app.side-left  .page__content .work__scene { margin: 0 clamp(200px, 25vw, 320px) 0 auto; }

/* bar above the brain; an open lightbox above the bar */
.app .bar { z-index: 5; }
.app.lb-open .page__content { z-index: 50; }

/* bar centre: Open Resume (home) vs section sub-nav */
.bar__center { justify-self: center; display: flex; align-items: center; justify-content: center; }
.app.section-mode .bar__resume { display: none; }
.bar__nav[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .app .brain, .app .stage, .app .page__content { transition: none; }
}
