/* ===================== TOKENS ===================== */
:root{
  /* surface ramp — steps of dL* ~4-6 so cards read raised without a border */
  --bg: #060C13;
  --bg-1: #12181F;
  --panel: #1B2128;
  --panel-2: #242A31;
  --panel-3: #2E343B;
  /* neutral hairlines — brass is reserved for meaning, not structure */
  --line: #383E45;
  --line-soft: #2A2F36;
  /* accents: brand / positive / alert / category */
  --brass: #E2A94E;
  --brass-soft: rgba(226,169,78,0.13);
  --teal: #54C79F;
  --teal-soft: rgba(84,199,159,0.13);
  --risk: #E8736A;
  --risk-soft: rgba(232,115,106,0.13);
  --iris: #96A2DC;
  --iris-soft: rgba(150,162,220,0.14);
  --text: #F2F4F7;
  --text-dim: #AAB2BF;
  --text-faint: #89919A;
  --font-display: 'Fraunces', serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --px: 0; --py: 0;   /* cursor parallax, set from JS */
  --sidebar-w: 300px;
  --maxw: 980px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection{ background: var(--brass-soft); color: var(--brass); }

a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4{ margin: 0; font-family: var(--font-display); font-weight: 600; }

.eyebrow{
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--brass);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before{ content: "//"; color: var(--text-faint); }

/* background grid texture */
.bg-grid{
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(237,239,242,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237,239,242,0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 40%, transparent 85%);
  translate: calc(var(--px) * 11px) calc(var(--py) * 7px);
  transition: translate .9s cubic-bezier(.16,.8,.3,1);
}
.bg-glow{
  position: fixed; z-index: 0; pointer-events: none; filter: blur(90px); opacity: 0.35;
  border-radius: 50%;
}
.bg-glow.g1{ width: 520px; height: 520px; background: var(--brass); top: -180px; left: 40%; animation: drift1 26s ease-in-out infinite;
  translate: calc(var(--px) * 34px) calc(var(--py) * 22px); transition: translate .7s cubic-bezier(.16,.8,.3,1); }
.bg-glow.g2{ width: 460px; height: 460px; background: var(--teal); bottom: -160px; right: -80px; animation: drift2 32s ease-in-out infinite;
  translate: calc(var(--px) * -26px) calc(var(--py) * -18px); transition: translate .8s cubic-bezier(.16,.8,.3,1); }
@keyframes drift1{ 0%,100%{ transform: translate(0,0); } 50%{ transform: translate(-60px, 40px); } }
@keyframes drift2{ 0%,100%{ transform: translate(0,0); } 50%{ transform: translate(50px, -30px); } }

/* ===================== SIDEBAR NAV ===================== */
.topbar{
  position: fixed; top: 0; left: 0; right: 0; height: 60px; z-index: 100;
  display: none; align-items: center; justify-content: space-between;
  padding: 0 20px; background: rgba(6,12,19,0.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
/* mobile header carries the identity the off-canvas sidebar would otherwise hide */
.topbar-brand{ display: flex; align-items: center; gap: 11px; min-width: 0; }
.tb-avatar{
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  object-fit: cover; object-position: center 22%;
  border: 1px solid var(--line);
}
.tb-id{ display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.tb-id strong{
  font-family: var(--font-display); font-size: 15.5px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tb-id em{
  font-family: var(--font-mono); font-style: normal; font-size: 10.5px; color: var(--text-faint);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 380px){ .tb-id em{ display: none; } }
.menu-btn{
  width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line-soft);
  background: var(--panel); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.menu-btn span, .menu-btn::before, .menu-btn::after{ content:""; display:block; width: 16px; height: 1.5px; background: var(--text); position: relative; }
.menu-btn{ flex-direction: column; gap: 4px; }
.menu-btn i{ width: 16px; height: 1.5px; background: var(--text); display:block; }

.sidebar{
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--sidebar-w); z-index: 90;
  background: var(--bg-1); border-right: 1px solid var(--line-soft);
  padding: 34px 26px; display: flex; flex-direction: column; gap: 34px;
  /* content is ~880px tall; below that the contact links must stay reachable */
  overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.sidebar::-webkit-scrollbar{ width: 6px; }
.sidebar::-webkit-scrollbar-thumb{ background: var(--line); border-radius: 3px; }
.sidebar::-webkit-scrollbar-track{ background: transparent; }

.sidebar .brand{
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text-dim); letter-spacing: 0.01em;
  text-align: center;
}
.sidebar .avatar{
  display: block; width: 224px; height: 224px; border-radius: 50%;
  object-fit: cover; object-position: center 22%;
  margin: 0 auto 18px;
  border: 1px solid var(--line);
  box-shadow: 0 0 0 5px rgba(226,169,78,0.07), 0 8px 22px rgba(0,0,0,0.45);
  filter: saturate(0.92) contrast(1.02);
  transition: box-shadow .25s ease, filter .25s ease;
}
.sidebar .avatar:hover{
  box-shadow: 0 0 0 5px rgba(226,169,78,0.16), 0 8px 26px rgba(0,0,0,0.55);
  filter: saturate(1) contrast(1.02);
}
.sidebar .brand strong{ display:block; font-family: var(--font-display); font-size: 22px; color: var(--text); font-weight: 600; margin-bottom: 4px; letter-spacing: 0; }
.sidebar .status-line{
  display: flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-mono); font-size: 11.5px; color: var(--teal); margin-top: 10px;
}
.dot{ width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(84,199,159,0.6); animation: pulse 2.2s infinite; }
@keyframes pulse{ 0%{ box-shadow: 0 0 0 0 rgba(84,199,159,0.5);} 70%{ box-shadow: 0 0 0 7px rgba(84,199,159,0);} 100%{ box-shadow: 0 0 0 0 rgba(84,199,159,0);} }

.navlinks{ display: flex; flex-direction: column; gap: 2px; }
.navlinks a{
  font-family: var(--font-mono); font-size: 14px; color: var(--text-dim);
  padding: 10px 11px; border-radius: 6px; display: flex; align-items: center; gap: 10px;
  transition: color .2s ease, background .2s ease;
  border-left: 2px solid transparent;
}
.navlinks a .idx{ color: var(--text-faint); font-size: 11.5px; }
.navlinks a:hover{ color: var(--text); background: var(--panel); }
.navlinks a.active{ color: var(--brass); border-left-color: var(--brass); background: var(--brass-soft); }

.sidebar-foot{ display: flex; flex-direction: column; gap: 10px; }
.sidebar-foot a{
  font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); display: flex; gap: 8px; align-items: center;
}
.sidebar-foot a:hover{ color: var(--brass); }
.sidebar-foot svg{ width: 14px; height: 14px; flex-shrink: 0; }

/* ===================== BOOT INTRO ===================== */
/* Injected by JS only — no-JS and reduced-motion users never see it. */
.boot{
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  will-change: opacity, clip-path;
}
.boot::before{ /* faint scan texture so the panel isn't flat black */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(to bottom, rgba(237,239,242,0.022) 0 1px, transparent 1px 3px);
}
.boot-inner{ width: min(460px, calc(100vw - 56px)); position: relative; }
.boot-brand{
  font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: .08em;
  color: var(--brass); margin-bottom: 22px;
}
.boot-line{
  font-family: var(--font-mono); font-size: 12.5px; line-height: 2.05;
  color: var(--text-dim); white-space: pre; overflow: hidden;
  text-overflow: clip;
}
.boot-line.ok{ color: var(--teal); }
.boot-bar{
  margin-top: 24px; height: 2px; width: 100%;
  background: var(--line-soft); overflow: hidden; border-radius: 2px;
}
.boot-bar i{
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--brass), var(--teal));
  transition: width .12s linear;
}
/* brass line that sweeps down the screen right before the wipe */
.boot-sweep{
  position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
  box-shadow: 0 0 18px 2px rgba(226,169,78,0.5);
  opacity: 0; pointer-events: none;
}
.boot.sweeping .boot-sweep{ animation: bootSweep .5s cubic-bezier(.6,0,.3,1) forwards; }
@keyframes bootSweep{
  0%{ opacity: 0; transform: translateY(0); }
  12%{ opacity: 1; }
  100%{ opacity: 0; transform: translateY(100vh); }
}
.boot.sweeping .boot-inner{ opacity: 0; transform: translateY(-8px); transition: opacity .3s ease, transform .3s ease; }
/* the wipe itself: panel retracts upward off screen */
.boot.done{
  clip-path: inset(0 0 100% 0);
  transition: clip-path .62s cubic-bezier(.76,0,.24,1);
}
/* hold the page still while booting */
html.booting, html.booting body{ overflow: hidden; }

/* ===================== LAYOUT ===================== */
/* Fill the viewport so a short page still pins its footer to the bottom
   instead of leaving dead space beneath it. */
main{
  margin-left: var(--sidebar-w); position: relative; z-index: 1;
  display: flex; flex-direction: column; min-height: 100vh;
}
.site-footer{ margin-top: auto; }
.section{ padding: 110px max(40px, calc((100% - var(--maxw)) / 2)); border-bottom: 1px solid var(--line-soft); }
.section:last-of-type{ border-bottom: none; }
.section-inner{ max-width: var(--maxw); margin: 0 auto; }
.section h2{ font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 20px; font-weight: 600; }
.lede{ color: var(--text-dim); font-size: 17px; max-width: 640px; margin-bottom: 52px; }

.reveal{ opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.16,.8,.3,1), transform .7s cubic-bezier(.16,.8,.3,1); }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }
.reveal.d1{ transition-delay: .08s; } .reveal.d2{ transition-delay: .16s; } .reveal.d3{ transition-delay: .24s; } .reveal.d4{ transition-delay: .32s; }

/* ===================== HERO ===================== */
.hero{ min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: 130px; padding-bottom: 80px; border-bottom: 1px solid var(--line-soft); }
.hero-kicker{ font-family: var(--font-mono); font-size: 12.5px; color: var(--teal); letter-spacing: 0.08em; margin-bottom: 20px; display:flex; align-items:center; gap: 8px;}
.hero h1{ font-size: clamp(40px, 6vw, 72px); line-height: 1.04; margin-bottom: 22px; }

/* kinetic hero: each line wipes up from behind its own mask */
.hero-title.reveal{ opacity: 1; transform: none; }   /* the mask does the work, not a fade */
.hero-title .line{
  display: block; overflow: hidden;
  padding-bottom: .1em; margin-bottom: -.1em;        /* room for descenders inside the mask */
}
.hero-title .line-in{
  display: block; transform: translateY(112%);
  transition: transform .95s cubic-bezier(.16,.8,.3,1);
}
.hero-title.is-visible .line-in{ transform: translateY(0); }
.hero-title.is-visible .line:nth-child(2) .line-in{ transition-delay: .13s; }
@media (prefers-reduced-motion: reduce){
  .hero-title .line-in{ transform: none; }
}
.hero h1 em{ font-style: italic; color: var(--brass); font-weight: 500; }
.hero p.tagline{ font-size: clamp(17px, 2vw, 20px); color: var(--text-dim); max-width: 640px; margin-bottom: 38px; }
.cta-row{ display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }
.btn{
  font-family: var(--font-mono); font-size: 13px; padding: 13px 22px; border-radius: 8px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn-primary{ background: var(--brass); color: #16110a; border-color: var(--brass); font-weight: 600; }
.btn-primary:hover{ transform: translateY(-2px); background: #dcac5c; }
.btn-ghost{ background: transparent; color: var(--text); }
.btn-ghost:hover{ border-color: var(--brass); color: var(--brass); transform: translateY(-2px); }

/* console panel */
.console{
  border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(180deg, var(--panel), var(--panel-2));
  overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0,0,0,0.6);
}
.console-bar{
  display: flex; align-items: center; justify-content: space-between; padding: 12px 18px;
  border-bottom: 1px solid var(--line-soft); background: rgba(0,0,0,0.15);
}
.console-lights{ display: flex; gap: 7px; }
.console-lights i{ width: 9px; height: 9px; border-radius: 50%; display: block; }
.console-lights i:nth-child(1){ background: var(--risk); }
.console-lights i:nth-child(2){ background: var(--brass); }
.console-lights i:nth-child(3){ background: var(--teal); }
.console-bar .label{ font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); letter-spacing: 0.05em; }
.console-grid{ display: grid; grid-template-columns: repeat(4, 1fr); }
.console-cell{ padding: 26px 22px; border-right: 1px solid var(--line-soft); }
.console-cell:last-child{ border-right: none; }
.console-cell .val{ font-family: var(--font-mono); font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; color: var(--text); }
.console-cell .val.accent{ color: var(--brass); }
.console-cell .lbl{ font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); margin-top: 6px; letter-spacing: 0.03em; }

@media (max-width: 720px){ .console-grid{ grid-template-columns: repeat(2, 1fr); } .console-cell{ border-bottom: 1px solid var(--line-soft); } }

/* ===================== ABOUT ===================== */
.about-grid{ display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; }
.about-grid p{ color: var(--text-dim); margin-bottom: 18px; }
.about-grid p strong{ color: var(--text); font-weight: 600; }
.fact-panel{ border: 1px solid var(--line-soft); border-radius: 10px; padding: 24px; background: var(--panel); align-self: start; }
.fact-panel .fp-title{ font-family: var(--font-mono); font-size: 11px; color: var(--brass); letter-spacing: 0.06em; margin-bottom: 14px; }
.fact-row{ display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line-soft); font-size: 13.5px; }
.fact-row span:first-child{ flex-shrink: 0; }
.fact-row:last-child{ border-bottom: none; }
.fact-row span:first-child{ color: var(--text-faint); font-family: var(--font-mono); font-size: 12px; }
.fact-row span:last-child{ color: var(--text); text-align: right; }
@media (max-width: 860px){ .about-grid{ grid-template-columns: 1fr; } }

/* ===================== EXPERTISE ===================== */
.pillars{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-bottom: 60px; }

/* ---- sliding stack: cards layered, active one in front ---- */
.pillar-stack{
  display: grid; grid-template-columns: 1fr; position: relative;
  margin: 44px auto 26px; max-width: 640px;
  /* room below for the cards peeking out from behind the front one */
  padding-bottom: 78px;
  perspective: 1400px; cursor: pointer;
}
.pillar-stack .pillar{
  position: relative; grid-area: 1 / 1;
  transition: transform .62s cubic-bezier(.16,.8,.3,1),
              opacity .5s ease, filter .5s ease, box-shadow .4s ease;
  will-change: transform, opacity;
}
/* front card */
.pillar-stack .pillar[data-pos="0"]{
  transform: translateY(0) scale(1); opacity: 1; z-index: 4;
  box-shadow: 0 22px 50px rgba(0,0,0,0.5);
}
/* the three behind, peeking below */
.pillar-stack .pillar[data-pos="1"]{ transform: translateY(34px) scale(.945); opacity: .82; z-index: 3; filter: none; }
.pillar-stack .pillar[data-pos="2"]{ transform: translateY(64px) scale(.895); opacity: .62; z-index: 2; filter: none; }
.pillar-stack .pillar[data-pos="3"]{ transform: translateY(92px) scale(.845); opacity: .42; z-index: 1; filter: none; }
/* the card being dismissed slides up and out */
.pillar-stack .pillar.is-leaving{
  transform: translateY(-46px) scale(1.03); opacity: 0; z-index: 5; filter: blur(2px);
}
/* only the front card responds to hover */
.pillar-stack .pillar:hover{ transform: translateY(0) scale(1); }
.pillar-stack .pillar[data-pos="0"]:hover{ transform: translateY(-4px) scale(1.008); }
.pillar-stack .pillar[data-pos="1"]:hover{ transform: translateY(34px) scale(.945); }
.pillar-stack .pillar[data-pos="2"]:hover{ transform: translateY(64px) scale(.895); }
.pillar-stack .pillar[data-pos="3"]:hover{ transform: translateY(92px) scale(.845); }
/* bullets cascade each time a card reaches the front */
.pillar-stack .pillar ul li{ opacity: 0; transform: translateX(-8px); }
.pillar-stack .pillar[data-pos="0"] ul li{ opacity: 1; transform: translateX(0); }

/* the stack is interactive — say so, visibly and persistently */
.pillar-stage{ position: relative; }
.lede-hint{
  font-family: var(--font-mono); font-size: 12px; color: var(--brass);
  white-space: nowrap; margin-left: 4px;
}

.stack-controls{
  display: flex; align-items: center; justify-content: center; gap: 16px;
  flex-wrap: wrap; margin-bottom: 60px;
}
@media (max-width: 640px){
  .stack-controls{ gap: 10px; }
  .sc-dot{ padding: 5px 7px; font-size: 9.5px; }
  .sc-dot i{ width: 12px; }
}
/* below this the four labels can't fit — show compact bars only */
@media (max-width: 460px){
  .sc-dot{ font-size: 0; padding: 6px; gap: 0; }
  .sc-dot i{ width: 16px; height: 3px; }
}
@media (prefers-reduced-motion: reduce){
  .lede-hint{ display: none; }
}
@media (max-width: 640px){
  .lede-hint{ display: block; margin: 8px 0 0; }
}
.sc-btn{
  width: 34px; height: 34px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line-soft); background: var(--panel);
  color: var(--text-dim); font-family: var(--font-mono); font-size: 14px;
  transition: color .2s ease, border-color .2s ease;
}
.sc-btn:hover{ color: var(--brass); border-color: var(--line); }
.sc-dots{ display: flex; gap: 8px; }
.sc-dot{
  cursor: pointer; border: none; background: transparent; padding: 4px 2px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em;
  color: var(--text-faint); transition: color .2s ease;
  display: flex; align-items: center; gap: 6px;
}
.sc-dot i{
  display: block; width: 20px; height: 2px; border-radius: 2px;
  background: var(--line-soft); transition: background .3s ease, width .3s ease;
}
.sc-dot:hover{ color: var(--text-dim); }
.sc-dot.active{ color: var(--accent, var(--brass)); }
.sc-dot.active i{ background: var(--accent, var(--brass)); width: 30px; }
/* read as tappable tabs, not decoration (must follow the base .sc-dot rule) */
.sc-dot{ border: 1px solid transparent; border-radius: 999px; padding: 5px 10px; }
.sc-dot:hover{ border-color: var(--line-soft); background: var(--panel); }
.sc-dot.active{ border-color: var(--line); background: var(--brass-soft); }


/* no stacking without motion — show every discipline at once */
@media (prefers-reduced-motion: reduce){
  .pillar-stack{ display: grid; grid-template-columns: 1fr; gap: 18px; height: auto; max-width: none; padding-bottom: 0; cursor: default; }
  .pillar-stack .pillar{ position: static; grid-area: auto; opacity: 1 !important; transform: none !important; filter: none !important; }
  .pillar-stack .pillar ul li{ opacity: 1; transform: none; }
  .stack-controls{ display: none; }
}
.pillar{
  position: relative; overflow: hidden;
  border: 1px solid var(--line-soft); border-radius: 10px;
  padding: 30px 26px 26px; background: var(--panel);
  --mx: 0; --my: 0;
  transition: border-color .3s ease, transform .3s cubic-bezier(.16,.8,.3,1), box-shadow .3s ease;
}
.pillar:hover{
  border-color: var(--accent); transform: translateY(-5px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.4);
}
/* accent rail across the top, drawn in on hover */
.pillar::before{
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s cubic-bezier(.16,.8,.3,1);
}
.pillar:hover::before{ transform: scaleX(1); }
/* spotlight that follows the cursor, same language as the project thumbnails */
.pillar::after{
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px circle at calc(50% + var(--mx) * 50%) calc(50% + var(--my) * 50%),
              var(--accent-soft), transparent 65%);
  opacity: 0; transition: opacity .35s ease;
}
.pillar:hover::after{ opacity: 1; }
.pillar > *{ position: relative; z-index: 1; }
.pillar-num{
  position: absolute; top: 22px; right: 24px; z-index: 1;
  font-family: var(--font-display); font-size: 34px; font-weight: 600;
  color: var(--accent); opacity: .16; line-height: 1;
  transition: opacity .3s ease, transform .3s ease;
}
.pillar:hover .pillar-num{ opacity: .34; transform: translateY(-2px); }
.pillar .tag{ font-family: var(--font-mono); font-size: 11px; letter-spacing: .07em; color: var(--accent); margin-bottom: 12px; }
.pillar h3{ font-size: 18px; margin-bottom: 12px; font-weight: 600; }
.pillar ul li{
  color: var(--text-dim); font-size: 13.5px; padding: 4px 0;
  position: relative; padding-left: 16px;
  opacity: 0; transform: translateX(-8px);
  transition: opacity .45s ease, transform .45s cubic-bezier(.16,.8,.3,1);
}
.pillar ul li::before{ content: "–"; position: absolute; left: 0; color: var(--accent); }
/* bullets cascade in once the card scrolls into view */
.pillar.is-visible ul li{ opacity: 1; transform: translateX(0); }
.pillar.is-visible ul li:nth-child(1){ transition-delay: .10s; }
.pillar.is-visible ul li:nth-child(2){ transition-delay: .17s; }
.pillar.is-visible ul li:nth-child(3){ transition-delay: .24s; }
.pillar.is-visible ul li:nth-child(4){ transition-delay: .31s; }
.pillar.is-visible ul li:nth-child(5){ transition-delay: .38s; }
.pillar:hover ul li::before{ color: var(--accent); }

/* one accent per discipline, reusing the RAID palette */
.p-product{    --accent: var(--brass); --accent-soft: rgba(226,169,78,0.10); }
.p-delivery{   --accent: var(--teal);  --accent-soft: rgba(84,199,159,0.10); }
.p-governance{ --accent: var(--risk);  --accent-soft: rgba(232,115,106,0.10); }
.p-leadership{ --accent: var(--iris);      --accent-soft: rgba(150,162,220,0.10); }

@media (prefers-reduced-motion: reduce){
  .pillar ul li{ opacity: 1; transform: none; }
  .pillar::after{ display: none; }
  .pillar:hover{ transform: none; }
}
@media (max-width: 860px){ .pillars{ grid-template-columns: 1fr; } }

.toolkit-title{ font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); margin-bottom: 18px; letter-spacing: 0.05em; }
.toolkit{ display: flex; flex-direction: column; gap: 14px; }
.toolkit-row{ display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.toolkit-row .tk-label{ font-family: var(--font-mono); font-size: 11.5px; color: var(--brass); min-width: 150px; }
.chips{ display: flex; flex-wrap: wrap; gap: 8px; }
.chip{ font-family: var(--font-mono); font-size: 12px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-soft); color: var(--text-dim); background: var(--panel); }

/* ===================== PHILOSOPHY / RAID ===================== */
.raid-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 40px; }
.raid-card{ border: 1px solid var(--line-soft); border-radius: 10px; padding: 24px 20px; background: var(--panel); position: relative; overflow: hidden; }
.raid-card .letter{ font-family: var(--font-display); font-size: 44px; color: var(--brass); opacity: 0.9; line-height: 1; margin-bottom: 14px; }
.raid-card h4{ font-size: 15.5px; margin-bottom: 8px; }
.raid-card p{ font-size: 13px; color: var(--text-dim); margin: 0; }
.raid-card:nth-child(1) .letter{ color: var(--risk); }
.raid-card:nth-child(2) .letter{ color: var(--brass); }
.raid-card:nth-child(3) .letter{ color: var(--teal); }
.raid-card:nth-child(4) .letter{ color: var(--iris); }
@media (max-width: 860px){ .raid-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .raid-grid{ grid-template-columns: 1fr; } }

/* product loop — RAID carried through the product cycle, same colour language */
.loop-heading{ font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 10px; }
.loop-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 26px 0 40px; }
.loop-card{
  border: 1px solid var(--line-soft); border-top: 2px solid var(--accent);
  border-radius: 10px; padding: 22px 20px; background: var(--panel);
  display: flex; flex-direction: column; gap: 9px;
}
.loop-card .loop-idx{ font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.07em; color: var(--text-faint); }
.loop-card h4{ font-size: 15.5px; }
.loop-card p{ font-size: 13px; color: var(--text-dim); margin: 0; flex: 1; }
.loop-card .raid-tag{
  font-family: var(--font-mono); font-size: 11px; line-height: 1.55; color: var(--text-dim);
  border-top: 1px dashed var(--line-soft); padding-top: 11px; margin-top: 2px;
}
.loop-card .raid-tag b{
  display: inline-flex; align-items: center; justify-content: center;
  width: 17px; height: 17px; border-radius: 4px; margin-right: 5px;
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
}
/* accents mirror the RAID letters above, so the two blocks read as one system */
.lc-r{ --accent: var(--risk);  --accent-soft: var(--risk-soft); }
.lc-a{ --accent: var(--brass); --accent-soft: var(--brass-soft); }
.lc-i{ --accent: var(--teal);  --accent-soft: var(--teal-soft); }
.lc-d{ --accent: var(--iris);      --accent-soft: rgba(150,162,220,0.15); }
@media (max-width: 860px){ .loop-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .loop-grid{ grid-template-columns: 1fr; } }

/* ===================== SHOP ===================== */
/* Product-card styles were removed with the mock listings; they'll be
   reintroduced alongside the real Gumroad products. */
.shop-soon{
  margin-top: 44px; max-width: 640px;
  border: 1px solid var(--line-soft); border-radius: 12px;
  padding: 38px; background: var(--panel);
}
.shop-soon .ss-status{
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--teal); margin-bottom: 18px;
}
.shop-soon h3{ font-size: clamp(20px, 2.2vw, 25px); margin-bottom: 12px; }
.shop-soon p{ font-size: 14.5px; color: var(--text-dim); margin: 0 0 26px; }

/* ===================== CASE STUDY ===================== */
.cs-h3{ font-size: clamp(21px, 2.3vw, 27px); margin-bottom: 14px; }
.cs-prose{ max-width: 700px; }
.cs-prose p{ color: var(--text-dim); font-size: 15px; margin: 0 0 14px; }
.cs-links{ display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* the four questions the manager couldn't answer */
.cs-problems{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; max-width: 860px; }
.cs-problem{
  display: flex; gap: 14px; align-items: flex-start;
  border: 1px solid var(--line-soft); border-left: 2px solid var(--risk);
  border-radius: 8px; padding: 18px 20px; background: var(--panel);
}
.cs-problem span{
  font-family: var(--font-mono); font-size: 11.5px; color: var(--risk);
  flex-shrink: 0; padding-top: 2px;
}
.cs-problem p{ margin: 0; font-size: 13.5px; color: var(--text-dim); }
@media (max-width: 720px){ .cs-problems{ grid-template-columns: 1fr; } }

/* pipeline steps */
.flow{ margin-top: 30px; border-left: 1px solid var(--line-soft); padding-left: 0; max-width: 760px; }
.flow-step{
  display: flex; gap: 18px; align-items: flex-start;
  padding: 16px 0 16px 22px; position: relative;
}
.flow-step::before{
  content: ""; position: absolute; left: -4px; top: 24px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brass); box-shadow: 0 0 0 3px var(--bg);
}
.flow-step .fs-num{
  font-family: var(--font-mono); font-size: 11.5px; color: var(--brass);
  flex-shrink: 0; padding-top: 3px; min-width: 26px;
}
.flow-step h4{ font-size: 15.5px; margin-bottom: 3px; }
.flow-step p{ margin: 0; font-size: 13.5px; color: var(--text-dim); }

/* ---- animated shelf scan ---- */
.resi-scan{ margin-top: 30px; }
.rs-stage{ position: relative; padding: 20px 22px 26px; overflow: hidden; }
.rs-svg{ display: block; width: 100%; height: auto; }
.rs-svg .shelf{ stroke: rgba(237,239,242,0.16); stroke-width: 2; }
.rs-svg .p{ fill: rgba(237,239,242,0.11); }
.rs-svg .faded{ fill: rgba(237,239,242,0.03); }
.rs-svg .gap{ fill: none; stroke: var(--brass); stroke-width: 2; stroke-dasharray: 5 4; }
.rs-svg .bad{ fill: rgba(232,115,106,0.22); stroke: var(--risk); stroke-width: 2; }
/* the scanning beam */
.rs-beam{
  position: absolute; left: 22px; right: 22px; top: 8%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
  box-shadow: 0 0 20px 3px rgba(226,169,78,0.45);
  animation: rsBeam 6s cubic-bezier(.45,0,.55,1) infinite;
}
@keyframes rsBeam{
  0%   { top: 8%;  opacity: 0; }
  6%   { opacity: 1; }
  46%  { top: 74%; opacity: 1; }
  56%  { opacity: 0; }
  100% { top: 8%;  opacity: 0; }
}
/* findings appear only after the beam has passed */
.rs-svg .gap, .rs-svg .bad{ opacity: 0; animation: rsFind 6s linear infinite; }
@keyframes rsFind{
  0%, 48%  { opacity: 0; }
  56%      { opacity: 1; }
  90%      { opacity: 1; }
  100%     { opacity: 0; }
}
.rs-chips{ display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.rs-chip{
  font-family: var(--font-mono); font-size: 11.5px; padding: 5px 10px;
  border-radius: 6px; border: 1px solid var(--line-soft);
  opacity: 0; animation: rsChip 6s linear infinite;
}
.rs-chip.ok  { color: var(--teal);  border-color: rgba(84,199,159,0.3);  background: var(--teal-soft); }
.rs-chip.warn{ color: var(--brass); border-color: rgba(226,169,78,0.3);  background: var(--brass-soft); }
.rs-chip.bad { color: var(--risk);  border-color: rgba(232,115,106,0.3);   background: var(--risk-soft); }
.rs-chip:nth-child(2){ animation-delay: .12s; }
.rs-chip:nth-child(3){ animation-delay: .24s; }
@keyframes rsChip{
  0%, 50%  { opacity: 0; transform: translateY(6px); }
  60%      { opacity: 1; transform: none; }
  90%      { opacity: 1; }
  100%     { opacity: 0; }
}
/* no loop without motion — show the finished result */
@media (prefers-reduced-motion: reduce){
  .rs-beam{ display: none; }
  .rs-svg .gap, .rs-svg .bad, .rs-chip{ opacity: 1; animation: none; transform: none; }
}

/* ===================== EXPERIENCE SUMMARY (home) ===================== */
.exp-summary{
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; margin-top: 40px;
}
.exp-now, .exp-prev{
  border: 1px solid var(--line-soft); border-radius: 10px; padding: 24px; background: var(--panel);
}
.exp-now{ border-left: 2px solid var(--teal); }
.es-label{ font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); letter-spacing: 0.06em; margin-bottom: 12px; }
.exp-now h3{ font-size: 19px; margin-bottom: 4px; }
.exp-now .es-co{ font-family: var(--font-mono); font-size: 12.5px; color: var(--teal); margin-bottom: 12px; }
.exp-now p{ font-size: 13.5px; color: var(--text-dim); margin: 0; }
@media (max-width: 860px){ .exp-summary{ grid-template-columns: 1fr; } }

/* ===================== WORK WITH ME ===================== */
.svc-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.svc-card{
  border: 1px solid var(--line-soft); border-radius: 10px; padding: 26px;
  background: var(--panel); display: flex; flex-direction: column; gap: 12px;
  transition: border-color .25s ease, transform .25s ease;
}
.svc-card:hover{ border-color: var(--line); transform: translateY(-3px); }
.svc-top{ display: flex; align-items: center; justify-content: space-between; }
.svc-idx{ font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); letter-spacing: 0.08em; }
.svc-card h3{ font-size: 20px; }
.svc-lede{ font-size: 13.5px; color: var(--text-dim); margin: 0; }
.svc-list{ display: flex; flex-direction: column; gap: 7px; margin: 4px 0 0; }
.svc-list li{ font-size: 13px; color: var(--text-dim); padding-left: 16px; position: relative; }
.svc-list li::before{ content: "→"; position: absolute; left: 0; color: var(--brass); font-size: 11px; top: 1px; }
.svc-meta{
  font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint);
  border-top: 1px dashed var(--line-soft); padding-top: 12px; margin-top: auto;
}
.svc-cta{ align-self: flex-start; margin-top: 4px; }
@media (max-width: 980px){ .svc-grid{ grid-template-columns: 1fr; } }

.pull-quote{ border-left: 2px solid var(--brass); padding-left: 22px; font-family: var(--font-display); font-style: italic; font-size: 20px; color: var(--text); max-width: 720px; }
.pull-quote span{ display:block; margin-top: 10px; font-family: var(--font-mono); font-style: normal; font-size: 12px; color: var(--text-faint); }

/* ===================== EXPERIENCE TIMELINE ===================== */
.timeline{ position: relative; padding-left: 34px; }
.timeline::before{
  content:""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--line-soft);
}
.timeline .fill{
  content:""; position: absolute; left: 5px; top: 6px; width: 1px; background: var(--brass); height: 0%;
  transition: height .3s ease-out;
}
.tl-item{ position: relative; padding-bottom: 46px; }
.tl-item:last-child{ padding-bottom: 0; }
.tl-item .node{
  position: absolute; left: -34px; top: 4px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg-1); border: 2px solid var(--text-faint); transition: border-color .3s ease, background .3s ease;
}
.tl-item.is-visible .node{ border-color: var(--brass); background: var(--brass); }
.tl-head{ display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.tl-head h3{ font-size: 20px; font-weight: 600; }
.tl-company{ font-family: var(--font-mono); color: var(--brass); font-size: 14px; }
.tl-dates{ font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); margin-left: auto; }
.status-pill{ font-family: var(--font-mono); font-size: 10.5px; padding: 3px 9px; border-radius: 999px; letter-spacing: 0.04em; }
.status-pill.live{ background: var(--teal-soft); color: var(--teal); }
.status-pill.shipped{ background: var(--brass-soft); color: var(--brass); }
.tl-body ul{ margin-top: 12px; display: flex; flex-direction: column; gap: 7px; }
.tl-body ul li{ color: var(--text-dim); font-size: 14px; position: relative; padding-left: 16px; }
.tl-body ul li::before{ content:"–"; position: absolute; left: 0; color: var(--text-faint); }
.kpi-row{ display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.kpi{ font-family: var(--font-mono); font-size: 11.5px; padding: 5px 10px; border-radius: 6px; border: 1px solid var(--line); color: var(--text-dim); background: var(--panel-2); }

.prev-log{ margin-top: 50px; border: 1px solid var(--line-soft); border-radius: 10px; overflow: hidden; }
.prev-log-head{ padding: 14px 20px; border-bottom: 1px solid var(--line-soft); font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); background: var(--panel); }
.log-line{ display: flex; gap: 16px; padding: 12px 20px; font-family: var(--font-mono); font-size: 12.5px; border-bottom: 1px solid var(--line-soft); color: var(--text-dim); flex-wrap: wrap; }
.log-line:last-child{ border-bottom: none; }
.log-line .lg-date{ color: var(--text-faint); min-width: 108px; }
.log-line .lg-role{ color: var(--text); }
.log-line .lg-co{ color: var(--teal); margin-left: auto; }

/* ===================== PROJECTS ===================== */
.projects-grid{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

/* ---- selected work: horizontal carousel, two cards in view ---- */
.proj-carousel{ margin-top: 44px; }
.pc-viewport{ overflow: hidden; }
.pc-track{
  display: flex; gap: 22px; align-items: stretch;
  transition: transform .6s cubic-bezier(.16,.8,.3,1);
  will-change: transform;
}
.pc-track > .proj-card{
  flex: 0 0 calc((100% - 22px) / 2);   /* exactly two visible */
  min-width: 0;
}
.proj-carousel{ position: relative; }
.pc-controls{
  display: flex; align-items: center; justify-content: flex-end; gap: 14px;
  margin-bottom: 20px;
}

/* edge arrows overlaid on the carousel — present only when there's more to see */
.pc-edge{
  position: absolute; top: 50%; z-index: 5;
  width: 48px; height: 48px; border-radius: 999px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: rgba(27,33,40,0.92);
  backdrop-filter: blur(6px);
  color: var(--text); box-shadow: 0 10px 28px rgba(0,0,0,0.5);
  transition: opacity .3s ease, visibility .3s ease, color .2s ease,
              background .2s ease, border-color .2s ease, transform .2s ease;
}
.pc-edge svg{ width: 20px; height: 20px; }
.pc-edge.prev{ left: -22px; transform: translateY(-50%); }
.pc-edge.next{ right: -22px; transform: translateY(-50%); }
.pc-edge:hover{ color: var(--bg); background: var(--brass); border-color: var(--brass); }
.pc-edge.prev:hover{ transform: translateY(-50%) scale(1.06); }
.pc-edge.next:hover{ transform: translateY(-50%) scale(1.06); }
/* at either end the arrow disappears entirely rather than sitting there dimmed */
.pc-edge:disabled{ opacity: 0; visibility: hidden; pointer-events: none; }
/* the "there's more" nudge */
.pc-edge.next:not(:disabled) svg{ animation: pcNudge 1.9s ease-in-out infinite; }
.pc-edge.prev:not(:disabled) svg{ animation: pcNudgeBack 1.9s ease-in-out infinite; }
@keyframes pcNudge{
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(3px); }
}
@keyframes pcNudgeBack{
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(-3px); }
}
/* a soft ring pulse so the arrow reads as "click me" */
.pc-edge.next:not(:disabled)::after{
  content: ""; position: absolute; inset: -1px; border-radius: 999px;
  border: 1px solid var(--brass); opacity: 0;
  animation: pcRing 2.6s ease-out infinite;
}
@keyframes pcRing{
  0%   { opacity: .55; transform: scale(1); }
  70%  { opacity: 0;   transform: scale(1.35); }
  100% { opacity: 0;   transform: scale(1.35); }
}
.pc-edge:hover::after{ animation: none; opacity: 0; }
@media (max-width: 980px){
  .pc-edge.prev{ left: 6px; }
  .pc-edge.next{ right: 6px; }
}
@media (prefers-reduced-motion: reduce){
  .pc-edge svg{ animation: none !important; }
  .pc-edge::after{ display: none; }
}
.pc-dots{ display: flex; gap: 7px; align-items: center; margin-right: 4px; }
.pc-dot{
  width: 22px; height: 3px; border-radius: 3px; border: none; padding: 0;
  background: var(--line-soft); cursor: pointer;
  transition: background .3s ease, width .3s ease;
}
.pc-dot:hover{ background: var(--text-faint); }
.pc-dot.active{ background: var(--brass); width: 34px; }
.sc-btn:disabled{ opacity: .3; cursor: default; }
.sc-btn:disabled:hover{ color: var(--text-dim); border-color: var(--line-soft); background: var(--panel); }
/* links row at the foot of a project card */
.proj-links{ display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }

/* CSS-drawn cover so a card without a screenshot still matches the others */
.proj-cover{
  height: 240px; display: flex; flex-direction: column; justify-content: flex-end;
  gap: 10px; padding: 22px; position: relative; overflow: hidden;
  border-radius: 8px; border: 1px solid var(--line-soft);
}
.resi-cover{ background: linear-gradient(150deg, #1b2b2a, #2f4132 55%, #4a3a1f); }
.proj-cover::after{
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(237,239,242,0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(237,239,242,0.05) 1px, transparent 1px);
  background-size: 30px 30px;
}
.proj-cover .pv-kind{
  position: relative; z-index: 1; align-self: flex-start;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em;
  padding: 3px 8px; border-radius: 4px; background: rgba(6,12,19,0.55); color: var(--text);
}
.proj-cover .pv-title{
  position: relative; z-index: 1;
  font-family: var(--font-display); font-size: 26px; font-weight: 600; color: #fff; line-height: 1.12;
}

@media (max-width: 860px){
  .pc-track > .proj-card{ flex: 0 0 100%; }   /* one at a time on mobile */
}
@media (prefers-reduced-motion: reduce){
  .pc-track{ transition: none; }
}
.proj-card{ border: 1px solid var(--line-soft); border-radius: 10px; padding: 26px; background: var(--panel); display: flex; flex-direction: column; gap: 14px; }
.proj-head{ display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.proj-head h3{ font-size: 19px; font-weight: 600; }
.proj-card p{ color: var(--text-dim); font-size: 14px; margin: 0; }
.status-pill.award{ background: rgba(226,169,78,0.16); color: var(--brass); }
.status-pill.todo{ background: rgba(237,239,242,0.06); color: var(--text-faint); }
.proj-card.placeholder{ border: 1px dashed var(--line); background: rgba(255,255,255,0.015); }
.proj-card.placeholder p{ font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint); line-height: 1.7; }
.proj-card.placeholder p.todo-line{ color: var(--brass); opacity: 0.85; }

/* live-site thumbnail at the top of a project card */
.site-preview{
  display: block; position: relative; overflow: hidden;
  border-radius: 8px; border: 1px solid var(--line-soft);
  background: var(--panel-2);
  /* --mx/--my are written by JS as the cursor moves; they drive the tilt */
  --mx: 0; --my: 0;
  transform: perspective(900px) rotateX(calc(var(--my) * -3.5deg)) rotateY(calc(var(--mx) * 3.5deg));
  transition: transform .4s cubic-bezier(.16,.8,.3,1), border-color .3s ease, box-shadow .4s ease;
  will-change: transform;
}
.site-preview:hover{
  border-color: var(--line);
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}
/* while the cursor is inside, follow it closely instead of easing */
.site-preview.is-tracking{ transition: transform .1s ease-out, border-color .3s ease, box-shadow .4s ease; }
.site-preview img{
  display: block; width: 100%; height: auto;
  filter: saturate(0.95);
  transition: transform .45s cubic-bezier(.16,.8,.3,1), filter .35s ease;
}
.site-preview:hover img{ transform: scale(1.05); filter: saturate(1.02); }
/* for tall/square art: cap the height and letterbox on the artwork's own light ground */
.site-preview--contain{ background: #f2f2f2; }
.site-preview--contain img{ height: 230px; object-fit: contain; }
/* soft brass sheen tracking the cursor, hinting the card is openable */
.site-preview::after{
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(300px circle at calc(50% + var(--mx) * 45%) calc(50% + var(--my) * 45%),
              rgba(226,169,78,0.18), transparent 62%);
  opacity: 0; transition: opacity .3s ease;
}
.site-preview:hover::after{ opacity: 1; }
@media (prefers-reduced-motion: reduce){
  .site-preview, .site-preview img{ transform: none !important; }
  .site-preview::after{ display: none; }
}
/* "Visit website" link sits below the card body */
.site-link{
  align-self: flex-start; margin-top: 4px;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--brass);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, gap .2s ease;
}
.site-link:hover{ border-bottom-color: var(--brass); gap: 10px; }
.site-link svg{ width: 13px; height: 13px; flex-shrink: 0; }
@media (max-width: 860px){ .projects-grid{ grid-template-columns: 1fr; } }

/* ===================== EDUCATION / AWARDS ===================== */
.edu-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.edu-item{ margin-bottom: 20px; }
.edu-item h4{ font-size: 16px; margin-bottom: 3px; }
.edu-item .meta,
.edu-degree .meta,
.cred-item .meta{ font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }

/* Degrees: brass rule + year, no box — keeps the plain rhythm of the awards column. */
.edu-degree{
  display: flex; gap: 16px; align-items: baseline;
  border-left: 2px solid var(--brass);
  padding: 2px 0 2px 16px; margin-bottom: 22px;
}
.edu-degree .ed-year{
  font-family: var(--font-mono); font-size: 12.5px; color: var(--brass);
  min-width: 38px; flex-shrink: 0;
}
.edu-degree h4{ font-size: 16.5px; margin-bottom: 3px; }

/* Certifications and programmes read as a compact log, tagged by type. */
.cred-list{ display: flex; flex-direction: column; }
.cred-item{
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  padding: 12px 0; border-bottom: 1px dashed var(--line-soft);
}
.cred-item:last-child{ border-bottom: none; }
.cred-tag{
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.06em;
  padding: 4px 8px; border-radius: 4px; white-space: nowrap;
}
.cred-tag.prog{ background: rgba(150,162,220,0.15); color: var(--iris); }
.cred-tag.cert{ background: var(--teal-soft); color: var(--teal); }
.cred-item h4{ font-size: 15px; margin-bottom: 2px; }
.cred-year{ font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); }
@media (max-width: 520px){
  .cred-item{ grid-template-columns: auto 1fr; }
  .cred-year{ grid-column: 2; }
}
.award-list li{ display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line-soft); font-size: 13.5px; color: var(--text-dim); }
.award-list li:last-child{ border-bottom: none; }
.award-list li span:last-child{ font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); white-space: nowrap; }
@media (max-width: 860px){ .edu-grid{ grid-template-columns: 1fr; gap: 10px; } }

/* ===================== CONTACT ===================== */
.contact-panel{ text-align: left; }
.contact-panel h2{ margin-bottom: 16px; }
.contact-links{ display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.clink{
  display: flex; align-items: center; gap: 10px; padding: 14px 20px; border: 1px solid var(--line);
  border-radius: 9px; font-family: var(--font-mono); font-size: 13.5px; background: var(--panel);
  transition: border-color .2s ease, transform .2s ease;
}
.clink:hover{ border-color: var(--brass); color: var(--brass); transform: translateY(-2px); }
.clink svg{ width: 16px; height: 16px; }
.site-footer{
  padding: 0 max(40px, calc((100% - var(--maxw)) / 2)) 40px;
  background: var(--bg-1);
  border-top: 1px solid var(--line-soft);
}
.footer{ margin-top: 0; padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
.footer span:first-child{ color: var(--text-dim); }
@media (max-width: 720px){ .footer{ flex-direction: column; gap: 6px; } }

/* mobile sidebar overlay */
@media (max-width: 960px){
  html, body{ overflow-x: hidden; }
  .topbar{ display: flex; }
  .sidebar{ transform: translateX(-100%); transition: transform .3s ease; top: 60px; z-index: 95; }
  .sidebar.open{ transform: translateX(0); }
  main{ margin-left: 0; padding-top: 60px; }
  .section{ padding: 70px 22px; }
  /* sub-pages set an inline padding-top for the desktop offset; rein it in */
  .section[style*="padding-top"]{ padding-top: 90px !important; }
  .hero{ min-height: auto; padding-top: 90px; padding-bottom: 60px; }
  .pillar-stack{ max-width: none; }
  .cs-links, .proj-links{ gap: 12px; }
  .btn{ white-space: nowrap; }
  .about-grid, .edu-grid{ gap: 30px; }
}

/* parallax layers hold still when motion is reduced */
@media (prefers-reduced-motion: reduce){
  .bg-glow.g1, .bg-glow.g2, .bg-grid{ translate: none !important; }
}

/* ---- short-viewport sidebar (kept last so it wins the cascade) ---- */
/* shrink the portrait on short screens so everything fits without scrolling */
@media (max-height: 940px){
  .sidebar{ gap: 24px; }
  .sidebar .avatar{ width: 160px; height: 160px; margin-bottom: 14px; }
}
@media (max-height: 840px){
  .sidebar{ gap: 18px; padding-top: 26px; padding-bottom: 26px; }
  .sidebar .avatar{ width: 120px; height: 120px; margin-bottom: 12px; }
  .sidebar .brand strong{ font-size: 19px; }
  .navlinks a{ padding: 7px 10px; }
  .sidebar-foot{ gap: 8px; }
}
@media (max-height: 720px){
  .sidebar .avatar{ width: 92px; height: 92px; }
  .navlinks a{ padding: 6px 10px; font-size: 12.5px; }
}
