:root{
  --paper:#fffdfa;
  --white:#ffffff;
  --ink:#171717;
  --muted:#6f6b67;
  --soft:#f5f1eb;
  --line:#e8e2da;
  --red:#d8322d;
  --red-dark:#b8211d;
  --orange:#f17736;
  --orange-soft:#fff0e5;
  --black:#171717;
  --lime:#d8322d;
  --lime-soft:rgba(216,50,45,.12);
  --display:"DM Serif Display",Georgia,serif;
  --sans:"Manrope","DM Sans",Arial,sans-serif;
  --mono:"DM Mono",monospace;
  --header-h:78px;
  --ease:cubic-bezier(.2,.75,.25,1);
  --shadow:0 24px 70px rgba(25,20,15,.09)
}
html{scroll-padding-top:96px;}
body{font-family:var(--sans);font-size:1.5rem;line-height:1.75;overflow-x:hidden;}
img{max-width:100%;}
.scroll-progress{height:2px;}
.ambient-grid{opacity:.12;background-size:76px 76px;mask-image:linear-gradient(to bottom,#000,transparent 80%);}
.header{height:var(--header-h);padding:0 max(4.4vw,24px);backdrop-filter:blur(20px) saturate(140%);-webkit-backdrop-filter:blur(20px) saturate(140%);}
.header.scrolled{height:68px;}
.brand{min-width:160px;gap:10px;}
.brand-mark{width:35px;height:35px;border-radius:11px;font:700 1.9rem var(--display);transform:rotate(-5deg);}
.brand-name{font-size:1.08rem;letter-spacing:.19em;}
.navbar{gap:clamp(13px,2vw,30px);}
.navbar a{font-size:1.12rem;font-weight:700;}
.navbar a::after{height:2px;}
.header-actions{min-width:150px;}
.header-contact{font-size:1.12rem;}
.section{width:min(1400px,91%);padding:11.5rem 0;margin:0 auto;}
.section-index,.eyebrow,.visual-index,.visual-caption,.social-caption,.focus-note-label,.academic-card-top,.research-card-top,.tool-number,.community-index,.email-block>span{font-family:var(--mono);font-size:.94rem;letter-spacing:.15em;text-transform:uppercase;}
.section-index{margin-bottom:1.6rem;}
.button{border-radius:3px;min-height:48px;}
.hero{width:min(1400px,91%);min-height:min(900px,100svh);padding-top:calc(var(--header-h) + 7.5rem);padding-bottom:9rem;grid-template-columns:1.04fr .96fr;gap:5rem;}
.hero::before{content:"";position:absolute;z-index:0;inset:12% -14% 3% 35%;pointer-events:none;}
.hero-copy,.hero-visual{z-index:1;}
.eyebrow{gap:13px;}
.hero h1{font-size:clamp(7.4rem,10vw,13.2rem);letter-spacing:-.065em;}
.hero-description{max-width:610px;}
.accent-one{opacity:.75;}
.portrait-frame img{filter:saturate(.83) contrast(1.05);}
.ticker{margin-top:0;}
.profile-section{padding-top:12rem;}
.academic-card{border-radius:4px;}
.work-section{width:min(1500px,94%);padding:12rem 0 13rem;}
.work-layout{display:grid;grid-template-columns:minmax(250px,.62fr) minmax(0,1.38fr);gap:clamp(32px,5vw,88px);align-items:center;}
.work-intro{position:relative;align-self:center;min-width:0;padding:1rem 0 2rem;}
.work-intro h2,.empty-work-heading h2{font:italic 400 clamp(6.5rem,8.2vw,11.5rem)/.82 var(--display);letter-spacing:-.065em;margin:1.8rem 0 3rem;}
.work-intro h2 em,.empty-work-heading h2 em{font-style:italic;}
.work-intro>p,.empty-work-heading>p{max-width:34rem;font:400 1.25rem/2.05 var(--mono);}
.work-instruction{display:flex;align-items:center;gap:12px;margin-top:3.2rem;font:400 .92rem var(--mono);letter-spacing:.18em;}
.work-instruction i{display:block;width:30px;height:1px;}
.work-count{display:flex;flex-direction:column;gap:3px;margin-top:5rem;font:italic 5rem/.9 var(--display);}
.work-count small{font:400 .82rem var(--mono);letter-spacing:.18em;}
.work-stage{min-width:0;position:relative;}
.work-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;perspective:1200px;}
.work-tile{position:relative;display:block;isolation:isolate;min-width:0;width:100%;height:clamp(170px,17vw,250px);padding:0;overflow:hidden;text-align:left;border-radius:3px;transform:translateZ(0);transition:transform .55s var(--ease),border-color .35s,box-shadow .35s,filter .35s;}
.work-tile:nth-child(3n/**/+2){transform:translateY(13px);}
.work-tile:nth-child(3n){transform:translateY(-8px);}
.work-tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;transition:transform .8s var(--ease),filter .5s;filter:brightness(.75) saturate(.85);}
.work-tile-shade{position:absolute;inset:0;z-index:1;transition:background .4s;}
.work-tile-caption{position:absolute;z-index:2;left:16px;right:12px;bottom:17px;display:flex;flex-direction:column;gap:5px;}
.work-tile-caption small{font:400 .75rem var(--mono);letter-spacing:.14em;text-transform:uppercase;}
.work-tile-caption b{font:400 1.65rem/1.16 var(--display);letter-spacing:-.02em;}
.work-tile-number{position:absolute;z-index:2;top:12px;left:14px;font:400 .88rem var(--mono);letter-spacing:.08em;}
.work-tile:hover{z-index:4;transform:translateY(-8px) scale(1.025)!important;}
.work-tile:hover img{transform:scale(1.08);filter:brightness(.92) saturate(1.06);}
.work-tile.is-selected{z-index:3;}
.work-tile.is-selected img{filter:brightness(.96) saturate(1.02);}
.achievement-gallery .work-tile{height:clamp(185px,19vw,270px);}
.achievement-gallery .work-tile img{object-fit:cover;object-position:center 20%;}
.achievement-gallery .work-tile:nth-child(5) img,.achievement-gallery .work-tile:nth-child(6) img{object-position:center;}
.work-detail{display:grid;grid-template-columns:minmax(175px,.65fr) minmax(0,1.35fr);gap:25px;align-items:center;margin-top:29px;padding:19px;border-radius:3px;min-height:190px;}
.work-detail-visual,.feature-media{height:160px;overflow:hidden;}
.work-detail-visual img,.feature-media img{width:100%;height:100%;object-fit:cover;object-position:center;}
.work-detail-copy,.feature-copy{min-width:0;}
.feature-eyebrow{display:flex;align-items:center;gap:10px;font:400 .82rem var(--mono);letter-spacing:.13em;text-transform:uppercase;}
.feature-eyebrow i{width:18px;height:1px;}
.work-detail-copy h3,.feature-copy h3{font:400 clamp(2.3rem,3vw,3.4rem)/1.12 var(--display);margin:13px 0 8px;}
.work-detail-copy p,.feature-copy p{font-size:1.15rem;line-height:1.8;}
.feature-tags{display:flex;flex-wrap:wrap;gap:7px;margin:13px 0;}
.feature-tags span,.project-tags span{padding:5px 9px;border-radius:2px;font:400 .83rem var(--mono);}
.work-detail-actions{display:flex;flex-wrap:wrap;gap:17px;margin-top:15px;}
.feature-open{display:inline-flex;align-items:center;gap:8px;font-size:1.08rem;font-weight:800;}
.certificate-feature{cursor:pointer;}
.certificate-feature .feature-media{height:176px;display:flex;align-items:center;justify-content:center;}
.certificate-feature .feature-media img{object-fit:contain;}
.certificate-feature .feature-copy h3{font-size:2.8rem;}
.certificate-feature .feature-copy p{margin-top:8px;}
.certificate-feature .feature-open{margin-top:11px;}
.project-footer{display:flex;justify-content:flex-end;margin-top:2.8rem;}
.project-footer-links{display:flex;flex-wrap:wrap;gap:26px;align-items:center;}
.content-tool-link{font-size:1.05rem;}
.empty-work-section{width:min(1400px,91%);padding:10rem 0;}
.empty-work-layout{display:grid;grid-template-columns:minmax(250px,.7fr) minmax(0,1.3fr);align-items:center;gap:clamp(34px,6vw,100px);}
.empty-work-heading h2{font-size:clamp(5.6rem,7vw,9rem);margin-bottom:2.3rem;}
.empty-work-heading>p{max-width:37rem;}
.empty-work-panel,.empty-feature{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-height:330px;overflow:hidden;padding:clamp(28px,4vw,56px);border-radius:3px;}
.empty-work-panel::after,.empty-feature::after{content:"";position:absolute;right:-90px;bottom:-180px;width:340px;height:340px;border-radius:50%;pointer-events:none;}
.empty-orbit{display:grid;place-items:center;width:57px;height:57px;margin-bottom:25px;border-radius:50%;font-size:2.5rem;}
.empty-kicker{font:400 .85rem var(--mono);letter-spacing:.18em;}
.empty-work-panel h3,.empty-feature h3{position:relative;z-index:1;margin:12px 0 9px;font:400 clamp(2.6rem,3.2vw,4.1rem)/1.1 var(--display);}
.empty-work-panel p,.empty-feature p{position:relative;z-index:1;max-width:520px;font-size:1.18rem;line-height:1.9;}
.empty-work-panel .text-link,.empty-feature .text-link{position:relative;z-index:1;margin-top:22px;}
.journal-section{padding-bottom:10rem;}
.research-section{padding-top:9rem;padding-bottom:13rem;}
.coursework-section{padding-top:9rem;padding-bottom:10rem;}
.coursework-intro{border-radius:3px;}
.course-card{border-radius:3px;}
.toolkit-card,.toolkit-card:nth-child(2),.toolkit-card:last-child{border-radius:3px;}
.community-item{border-radius:3px;padding:2.6rem 2.5rem;}
.email-block{border-radius:3px;}
.contact-form{border-radius:3px;}
.contact-form input,.contact-form textarea{border-radius:2px;backdrop-filter:none;}
.credential-dialog::backdrop{backdrop-filter:blur(9px);}
.subhero{padding-top:calc(var(--header-h) + 9rem);}
.archive-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;}
.project-card{padding:0;overflow:hidden;border-radius:3px;transition:transform .4s var(--ease),border-color .3s,box-shadow .3s;}
.project-card:hover{transform:translateY(-7px);}
.project-card-cover{height:210px;position:relative;overflow:hidden;}
.project-card-cover img{width:100%;height:100%;object-fit:cover;transition:transform .65s var(--ease);}
.project-card:hover .project-card-cover img{transform:scale(1.045);}
.project-card-cover::after{content:"";position:absolute;inset:0;}
.project-card-cover-tag{position:absolute;z-index:1;top:14px;left:15px;font:400 .82rem var(--mono);letter-spacing:.12em;}
.project-card-cover-icon{position:absolute;z-index:1;right:15px;top:12px;width:37px;height:37px;display:grid;place-items:center;border-radius:50%;font-size:1.8rem;}
.project-card-copy{padding:21px;}
.project-card h3{font:400 2.6rem/1.13 var(--display);}
.project-card p{font-size:1.15rem;line-height:1.85;margin-top:9px;}
.project-tags{display:flex;flex-wrap:wrap;gap:7px;margin:16px 0;}
.project-tags span{font-size:.8rem;}
.project-links{display:flex;flex-wrap:wrap;gap:18px;padding-top:14px;}
.project-links a{font-size:1rem;font-weight:800;}
.project-links .project-kind{font:400 .82rem var(--mono);}
.project-card.is-hidden{display:none;}
.publication-card,.research-detail-card,.empty-state{border-radius:3px;}
.publication-stack .empty-state{padding:4rem;}
.blog-archive-grid{display:grid;grid-template-columns:1fr;gap:20px;}
.archive-post{border-radius:3px;}
@media(max-width:1120px){.header{padding:0 3.5vw;}
.navbar{gap:15px;}
.navbar a{font-size:1.04rem;}
.brand{min-width:140px;}
.header-actions{min-width:120px;}
.work-layout{grid-template-columns:minmax(220px,.55fr) minmax(0,1.45fr);gap:34px;}
.work-intro h2{font-size:clamp(6rem,7vw,8.5rem);}
.work-gallery{gap:8px;}
.work-tile-caption b{font-size:1.45rem;}
.archive-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:900px){:root{--header-h:72px}
.header{height:var(--header-h);}
.header.scrolled{height:66px;}
.navbar{position:absolute;top:calc(100% + 1px);left:0;right:0;display:none;align-items:stretch;flex-direction:column;gap:0;padding:12px 5vw 20px;backdrop-filter:blur(20px);}
.navbar.open{display:flex;}
.navbar a{padding:12px 0;font-size:1.25rem;}
.menu-btn{display:grid;place-items:center;}
.header-contact{font-size:1.05rem;}
.brand{min-width:0;}
.hero{grid-template-columns:1fr 1fr;gap:2rem;min-height:unset;padding-top:calc(var(--header-h) + 7rem);}
.hero h1{font-size:clamp(6rem,9vw,9rem);}
.portrait-stage{height:470px;}
.focus-note{right:-3%;width:190px;}
.work-layout,.empty-work-layout{grid-template-columns:1fr;gap:35px;}
.work-intro{max-width:720px;}
.work-intro h2,.empty-work-heading h2{font-size:clamp(6.5rem,12vw,10rem);margin-bottom:2rem;}
.work-intro>p,.empty-work-heading>p{max-width:620px;}
.work-count{position:absolute;right:0;bottom:10px;margin:0;}
.work-instruction{margin-top:2.4rem;}
.work-gallery{grid-template-columns:repeat(3,minmax(0,1fr));}
.work-tile{height:clamp(170px,25vw,235px);}
.empty-work-heading{max-width:700px;}
.empty-work-panel{min-height:290px;}
.toolkit-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
.community-list{grid-template-columns:1fr 1fr;}
.community-item{min-width:0;}}
@media(max-width:640px){html{font-size:9px;}
.section{width:89%;padding:8.5rem 0;}
.hero{width:89%;grid-template-columns:1fr;padding-top:calc(var(--header-h) + 6rem);gap:3rem;}
.hero-copy{padding-bottom:0;}
.hero h1{font-size:clamp(6.5rem,17vw,10rem);white-space:normal;}
.hero-description{font-size:1.42rem;}
.hero-visual{padding:0;}
.portrait-stage{width:min(100%,410px);height:430px;}
.visual-index{margin-left:0;margin-right:0;}
.visual-caption{margin-left:0;margin-right:0;}
.focus-note{right:0;bottom:1%;width:180px;}
.hero-coordinate{display:none;}
.scroll-cue{left:0;bottom:1rem;}
.ticker{margin-top:0;}
.work-section,.empty-work-section{width:89%;padding:8.5rem 0;}
.work-layout,.empty-work-layout{gap:25px;}
.work-intro h2,.empty-work-heading h2{font-size:clamp(6rem,18vw,9rem);}
.work-count{position:static;margin-top:2.8rem;font-size:4rem;}
.work-instruction{margin-top:2rem;}
.work-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
.work-tile,.achievement-gallery .work-tile{height:clamp(170px,48vw,235px);}
.work-tile:nth-child(n){transform:none;}
.work-tile-caption{left:11px;right:8px;bottom:12px;}
.work-tile-caption b{font-size:1.5rem;}
.work-tile-caption small{font-size:.7rem;}
.work-tile-number{top:9px;left:10px;}
.work-detail{grid-template-columns:1fr;gap:16px;padding:13px;margin-top:16px;}
.work-detail-visual,.feature-media{height:170px;}
.certificate-feature .feature-media{height:190px;}
.work-detail-copy h3{font-size:2.8rem;}
.project-footer{justify-content:flex-start;}
.project-footer-links{gap:14px;align-items:flex-start;flex-direction:column;}
.empty-work-panel,.empty-feature{min-height:280px;padding:28px 23px;}
.empty-work-panel h3,.empty-feature h3{font-size:3rem;}
.empty-work-panel p,.empty-feature p{font-size:1.15rem;}
.coursework-intro{grid-template-columns:44px 1fr;padding:1.6rem;gap:12px;}
.coursework-total{grid-column:1/-1;flex-direction:row;justify-content:flex-start;gap:10px;padding:10px 0 0;}
.course-controls{align-items:stretch;flex-direction:column;}
.course-search{width:100%;min-width:0;}
.course-filter-list{display:grid;grid-template-columns:repeat(5,1fr);gap:5px;}
.course-filter-btn{padding:9px 5px;font-size:.92rem;}
.course-results-note{font-size:.75rem;flex-direction:column;gap:5px;}
.course-grid{grid-template-columns:1fr;}
.course-year-heading{align-items:flex-start;flex-direction:column;}
.course-year-heading p{text-align:left;}
.coursework-footnote{align-items:flex-start;}
.toolkit-grid,.community-list{grid-template-columns:1fr;}
.toolkit-card,.toolkit-card:nth-child(2),.toolkit-card:last-child{padding:2.4rem 2rem;}
.pathway-panel{grid-template-columns:1fr;}
.pathway-graphic{min-height:400px;}
.contact-content{grid-template-columns:1fr;}
.form-row{grid-template-columns:1fr;}
.footer{gap:18px;flex-wrap:wrap;}
.footer p{width:100%;order:3;}
.archive-grid{grid-template-columns:1fr;}
.archive-tools{align-items:stretch;flex-direction:column;}
.filter-list{flex-wrap:wrap;}
.subhero{padding-top:calc(var(--header-h) + 6rem);}}
@media(max-width:390px){.header{padding:0 5vw;}
.header-contact{display:none;}
.work-gallery{grid-template-columns:1fr 1fr;}
.work-tile,.achievement-gallery .work-tile{height:165px;}
.hero-actions{flex-direction:column;align-items:stretch;}
.hero-actions .button{width:100%;}
.portrait-stage{height:380px;}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto;}
*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;}}
.work-tile.certificate-thumb::after{display:none;}
.work-tile.certificate-thumb img{border-radius:0;flex:none;}
.work-tile.certificate-thumb:hover,.work-tile.certificate-thumb.is-selected{transform:translateY(-8px) scale(1.025)!important;}
.work-tile:focus-visible{outline-offset:4px;}

/* ================================================================
   RED / ORANGE / WHITE THEME
   Palette overrides only; existing content and layout are retained.
   ================================================================ */
:root {
  --paper: #fffdfa;
  --white: #ffffff;
  --ink: #171717;
  --muted: #6f6b67;
  --soft: #f5f1eb;
  --line: #e8e2da;
  --red: #d8322d;
  --red-dark: #b8211d;
  --orange: #f17736;
  --orange-soft: #fff0e5;
  --black: #171717;
  --lime: #d8322d;
  --lime-soft: rgba(216, 50, 45, .12);
  --shadow: 0 24px 70px rgba(25, 20, 15, .09);
}
html { color-scheme: light; }
body::selection { background: var(--red); color: #fff; }

/* Nine-item desktop navigation: keep every destination in one horizontal row. */
.navbar {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
  gap: clamp(7px, .9vw, 14px);
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.navbar::-webkit-scrollbar { display: none; }
.navbar a { flex: 0 0 auto; font-size: .98rem; font-weight: 800; }
.navbar a::after { background: linear-gradient(90deg, var(--red), var(--orange)); }
.navbar a:hover, .navbar a.active { color: var(--red); }
.brand { min-width: 135px; }
.header-actions { min-width: 112px; }
.header-contact { white-space: nowrap; }
@media (max-width: 1120px) {
  .header { padding-left: 2.6vw; padding-right: 2.6vw; }
  .brand { min-width: 116px; }
  .navbar { gap: 8px; }
  .navbar a { font-size: .94rem; }
  .header-actions { min-width: 96px; }
  .header-contact { font-size: .95rem; }
}
@media (max-width: 900px) {
  .navbar {
    background: rgba(255, 253, 250, .98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 15px 25px rgba(23, 23, 23, .07);
    overflow: visible;
    white-space: normal;
  }
  .navbar a { font-size: 1.25rem; color: var(--ink); }
  .navbar a:hover, .navbar a.active { color: var(--red); }
}

/* Image-led galleries retain a dark caption fade for legibility. */
.work-tile {
  border: 1px solid rgba(23, 23, 23, .10);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 13px 35px rgba(45, 28, 20, .09);
}
.work-tile img { filter: brightness(.88) saturate(.92); }
.work-tile-shade {
  background: linear-gradient(180deg, rgba(12, 8, 6, .00) 10%, rgba(24, 13, 9, .18) 46%, rgba(24, 13, 9, .84) 100%);
}
.work-tile-caption { color: #fff; }
.work-tile-caption small { color: #ffd5bd; }
.work-tile-number {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 50%;
  background: rgba(216, 50, 45, .92);
  color: #fff;
}
.work-tile:hover { border-color: var(--orange); box-shadow: 0 16px 38px rgba(216, 50, 45, .14); }
.work-tile.is-selected { border: 2px solid var(--red); box-shadow: 0 0 0 1px rgba(216, 50, 45, .13), 0 18px 42px rgba(45, 28, 20, .16); }
.work-tile:focus-visible { outline: 3px solid rgba(241, 119, 54, .65); outline-offset: 4px; }

/* The selected certificate/project panel uses the same light academic palette. */
.work-detail {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 0;
  align-items: stretch;
  min-height: 320px;
  margin-top: 20px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(216, 50, 45, .16);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(255, 243, 235, .78));
  box-shadow: 0 18px 48px rgba(35, 24, 17, .07);
}
.work-detail-visual, .feature-media {
  min-width: 0;
  background: linear-gradient(145deg, #fff1e7, #fffdfa);
  border-right: 1px solid rgba(216, 50, 45, .10);
}
.work-detail-visual img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.work-detail-copy { padding: clamp(22px, 3vw, 40px); align-self: center; }
.work-detail-copy h3, .feature-copy h3 { color: var(--ink); }
.work-detail-copy p, .feature-copy p { color: #625c55; }
.feature-eyebrow { color: var(--red); }
.feature-eyebrow i { background: var(--orange); }
.feature-open { color: var(--red); }
.feature-open:hover { color: var(--orange); }
.feature-source { color: #a94a27; }
.feature-tags span, .project-tags span {
  border: 1px solid rgba(216, 50, 45, .15);
  background: rgba(241, 119, 54, .08);
  color: #7a3024;
  border-radius: 99px;
}
.certificate-feature { cursor: pointer; }
.certificate-feature .feature-media {
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: linear-gradient(145deg, #fff5ee, #ffffff);
}
.certificate-feature .feature-media img { max-width: 100%; max-height: 360px; object-fit: contain; }
.certificate-feature .feature-open { margin-top: 12px; }

/* Empty journal/research states remain intentionally empty, not fabricated. */
.empty-work-panel, .empty-feature {
  background: radial-gradient(circle at 82% 18%, rgba(241, 119, 54, .12), transparent 34%), linear-gradient(135deg, #fff3ea, #ffffff 72%);
  border: 1px solid rgba(216, 50, 45, .16);
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(35, 24, 17, .07);
  color: var(--ink);
}
.empty-work-panel::after, .empty-feature::after {
  border-color: rgba(216, 50, 45, .16);
  box-shadow: 0 0 0 30px rgba(241, 119, 54, .035), 0 0 0 65px rgba(216, 50, 45, .025);
}
.empty-orbit { border-color: rgba(216, 50, 45, .38); color: var(--red); box-shadow: 0 0 30px rgba(241, 119, 54, .12); }
.empty-kicker { color: var(--red); }
.empty-work-panel h3, .empty-feature h3 { color: var(--ink); }
.empty-work-panel p, .empty-feature p { color: #625c55; }
.empty-work-heading h2 em { color: var(--orange); }
.empty-work-heading > p { color: #625c55; }

/* Secondary pages and editor panels follow the same white/red/orange surfaces. */
.project-card, .publication-card, .research-detail-card, .empty-state, .archive-post,
.generator-shell, .generator-panel, .code-output, .content-panel, .subpage-header-note {
  background-color: rgba(255, 255, 255, .78);
  border-color: rgba(216, 50, 45, .12);
  color: var(--ink);
}
.project-card h3, .publication-card h3, .research-detail-card h2, .empty-state h3,
.archive-post h2, .generator-shell h1, .generator-panel h2, .content-panel h2 { color: var(--ink); }
.project-card p, .publication-card p, .research-detail-card p, .empty-state p,
.archive-post p, .generator-shell p, .generator-panel p, .content-panel p { color: #625c55; }
.project-links a, .research-note a, .publication-stack .empty-state i { color: var(--red); }
.project-search, .generator-shell input, .generator-shell textarea, .generator-shell select,
.generator-panel input, .generator-panel textarea, .generator-panel select {
  background: rgba(255, 255, 255, .88);
  border-color: rgba(23, 23, 23, .13);
  color: var(--ink);
}
.project-search i { color: var(--red); }
.project-search input::placeholder, .generator-shell input::placeholder,
.generator-shell textarea::placeholder { color: #958b82; }
.project-card-cover-icon { color: #fff; background: rgba(216, 50, 45, .88); border-color: rgba(255, 255, 255, .7); }
.project-card-cover-tag { color: #fff; }
.project-card-cover::after { background: linear-gradient(180deg, rgba(23, 23, 23, .02), rgba(23, 23, 23, .36)); }

@media (max-width: 640px) {
  .work-detail { grid-template-columns: 1fr; }
  .work-detail-visual, .feature-media { border-right: 0; border-bottom: 1px solid rgba(216, 50, 45, .10); }
  .work-detail-visual { height: 190px; }
}

/* Final red/orange accents for controls, branding and the certificate preview. */
.brand-mark { background: var(--red); color: #fff; }
.brand-mark > span { color: #ffd0b6; }
.header-contact { border-bottom-color: rgba(216, 50, 45, .55); }
.header-contact i { color: var(--red); }
.button-dark { background: var(--red); border-color: var(--red); color: #fff; }
.button-dark:hover { background: var(--orange); border-color: var(--orange); color: #fff; box-shadow: 0 12px 34px rgba(216, 50, 45, .16); }
.button-outline:hover { border-color: var(--orange); color: var(--red); background: rgba(241, 119, 54, .06); }
.course-filter-btn:hover, .course-filter-btn.active { background: var(--red); border-color: var(--red); color: #fff; }
.course-disclosure, .course-empty-state i, .coursework-footnote i { color: var(--orange); }
.back-top { border-color: rgba(216, 50, 45, .24); color: var(--red); }
.back-top:hover { background: var(--red); border-color: var(--red); color: #fff; }
.toast { background: var(--red); color: #fff; }
.credential-dialog-shell { background: #fffdfa; box-shadow: 0 28px 90px rgba(45, 24, 16, .20); }
.dialog-copy { background: linear-gradient(155deg, #b8211d, #d8322d 58%, #f17736); color: #fff; }
.dialog-copy .section-index { color: #ffd2b7; }
.dialog-copy h2 { color: #fff; }
.dialog-copy p { color: #ffebe1; }
.dialog-copy .inline-link { color: #fff; border-color: #ffc39f; }
.dialog-copy .inline-link i { color: #ffc39f; }
.dialog-close { background: rgba(184, 33, 29, .92); color: #fff; }
.dialog-close:hover { background: var(--orange); }
.dialog-media { background: #fff3ea; }
.credential-dialog::backdrop { background: rgba(35, 20, 15, .62); }


/* Journal spotlight: keep scientific artwork fully visible and give the featured title stronger hierarchy. */
.journal-feature .feature-visual {
  min-height: 100%;
  padding: clamp(18px, 2.4vw, 30px);
  background: linear-gradient(145deg, #fff3e9, #fffdfa 72%);
}
.journal-feature .feature-visual img {
  width: 100%;
  max-width: 100%;
  max-height: 490px;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(42, 24, 15, .14);
}
.journal-feature .feature-copy {
  align-self: center;
  padding: clamp(24px, 3.2vw, 46px);
}
.journal-feature .feature-copy h3 {
  max-width: 19ch;
  margin: 16px 0 12px;
  color: #211915;
  font-family: var(--sans);
  font-size: clamp(3rem, 3.35vw, 4.2rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.06em;
  text-wrap: balance;
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
}
.journal-feature .feature-copy h3::after {
  content: "";
  display: block;
  width: 72px;
  height: 5px;
  margin-top: 17px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--red), var(--orange));
}
.featured-note h3 {
  font-family: var(--sans);
  font-size: clamp(3.2rem, 4.2vw, 5.5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.055em;
  text-wrap: balance;
}
@media (max-width: 720px) {
  .journal-feature .feature-visual { min-height: 270px; }
  .journal-feature .feature-visual img { max-height: 340px; }
  .journal-feature .feature-copy { padding: 24px 22px 28px; }
  .journal-feature .feature-copy h3 { max-width: 100%; font-size: clamp(2.5rem, 7.6vw, 3.35rem); }
}


/* Journal and academic archive pages: shared editorial rhythm, distinct page identities. */
.journal-archive-cta {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 2.2rem;
  min-width: min(390px, 100%); padding: 1.45rem 1.55rem 1.45rem 1.9rem;
  border: 1px solid rgba(216, 50, 45, .22); border-radius: 4px;
  color: #fff; background: linear-gradient(110deg, #b8211d, #d8322d 58%, #ef762c);
  box-shadow: 0 15px 34px rgba(184, 33, 29, .18);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.journal-archive-cta:hover { transform: translateY(-4px); box-shadow: 0 22px 42px rgba(184, 33, 29, .24); filter: saturate(1.08); }
.journal-archive-cta-copy { display: flex; flex-direction: column; gap: .35rem; }
.journal-archive-cta-copy strong { font: 800 1.55rem/1.2 var(--sans); letter-spacing: -.025em; }
.journal-archive-cta-copy small { color: rgba(255,255,255,.82); font: 500 .95rem/1.4 var(--sans); }
.journal-archive-cta-icon { display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; font-size: 2rem; }
.journal-section .project-footer { justify-content: space-between; align-items: center; }
.journal-section .project-footer-links { width: 100%; justify-content: space-between; align-items: center; }

.blog-archive-section, .publication-section { width: min(1400px, 91%); padding-top: calc(var(--header-h) + 8rem); padding-bottom: 11rem; }
.blog-archive-hero, .publication-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); align-items: end; gap: clamp(3rem, 7vw, 9rem); margin-bottom: clamp(5rem, 8vw, 9rem); }
.blog-archive-hero-copy, .publication-hero-copy { min-width: 0; }
.blog-archive-hero .section-index, .publication-hero .section-index { display: inline-block; margin-bottom: 2rem; }
.blog-archive-hero .eyebrow, .publication-hero .eyebrow { display: flex; align-items: center; gap: 12px; color: #8a6253; font: 500 .92rem var(--mono); letter-spacing: .12em; }
.blog-archive-hero .eyebrow-line { display: inline-block; width: 34px; height: 1px; background: var(--orange); }
.blog-archive-hero h1, .publication-hero h1 { margin: 1.8rem 0 2.2rem; color: #211915; font: 400 clamp(5.2rem, 8.4vw, 10rem)/.96 var(--display); letter-spacing: -.055em; }
.blog-archive-hero h1 em, .publication-hero h1 em { color: var(--red); font-weight: 400; }
.blog-archive-description, .publication-hero-copy > p:not(.eyebrow) { max-width: 620px; color: #62564f; font: 500 1.3rem/1.85 var(--sans); }
.blog-hero-actions, .publication-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.7rem; margin-top: 2.6rem; }
.archive-workspace-link { display: inline-flex; align-items: center; gap: .6rem; color: var(--red); font: 800 1rem var(--sans); border-bottom: 1px solid rgba(216,50,45,.35); padding-bottom: .35rem; }
.archive-workspace-link i { font-size: 1.5rem; }
.blog-archive-aside, .publication-hero-stat { position: relative; min-height: 290px; padding: 2.5rem; overflow: hidden; color: #fff; background: linear-gradient(145deg, #191411, #351914 68%, #8e2c1e); box-shadow: 0 24px 60px rgba(49,22,14,.16); }
.blog-archive-aside::after, .publication-hero-stat::after { content: ""; position: absolute; width: 250px; height: 250px; right: -70px; bottom: -130px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; box-shadow: 0 0 0 30px rgba(255,255,255,.035), 0 0 0 60px rgba(255,255,255,.025); }
.blog-aside-index { color: #ffc39e; font: 500 .8rem var(--mono); letter-spacing: .16em; }
.blog-archive-aside > i { display: block; margin: 2.2rem 0 1.3rem; color: #ff9a66; font-size: 3.8rem; }
.blog-archive-aside > p { max-width: 28rem; color: rgba(255,255,255,.82); font: 500 1.2rem/1.8 var(--sans); }
.blog-aside-rule { position: absolute; left: 2.5rem; right: 2.5rem; bottom: 2.3rem; display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.22); color: #ffc39e; font: 500 .75rem var(--mono); letter-spacing: .08em; }
.archive-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.5rem; padding-bottom: 1.8rem; border-bottom: 1px solid rgba(42,27,20,.14); }
.archive-section-heading .section-index { display: block; margin-bottom: .9rem; }
.archive-section-heading h2 { color: #211915; font: 400 clamp(3rem, 4.8vw, 5rem)/1 var(--display); letter-spacing: -.04em; }
.archive-section-heading h2 em { color: var(--red); }
.archive-section-heading > p { max-width: 390px; color: #75665d; font: 500 1rem/1.7 var(--sans); }
.blog-archive-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; align-items: start; }
.archive-post { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid rgba(110,64,43,.13); border-radius: 5px; background: rgba(255,255,255,.86); box-shadow: 0 17px 44px rgba(42,24,15,.055); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.archive-post:hover { transform: translateY(-5px); border-color: rgba(216,50,45,.28); box-shadow: 0 24px 52px rgba(42,24,15,.10); }
.archive-post.is-featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(260px, .9fr) minmax(0, 1.1fr); min-height: 375px; }
.archive-media { position: relative; min-height: 220px; overflow: hidden; background: #f2e6dc; }
.archive-post.is-featured .archive-media { min-height: 375px; }
.archive-media img, .archive-media video { display: block; width: 100%; height: 100%; min-height: inherit; object-fit: contain; background: linear-gradient(145deg, #fff4eb, #f0e0d4); }
.archive-media-video video { object-fit: contain; background: #171311; }
.archive-media-art { display: grid; place-items: center; min-height: 220px; color: #fff; background: radial-gradient(circle at 75% 25%, rgba(255,180,122,.7), transparent 25%), linear-gradient(145deg, #a72b23, #231713 72%); }
.archive-media-art::before, .archive-media-art::after { content: ""; position: absolute; width: 170px; height: 170px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; }
.archive-media-art::after { width: 235px; height: 235px; }
.archive-media-art span { position: relative; z-index: 1; font: 400 3.4rem/.88 var(--display); letter-spacing: -.03em; text-align: center; }
.archive-media-art > i { position: absolute; right: 10%; top: 12%; color: rgba(255,255,255,.45); font-size: 3.5rem; }
.archive-post-copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: clamp(2rem, 3vw, 3.2rem); }
.archive-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; color: #85614f; font: 500 .78rem var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.archive-post-meta > i { width: 4px; height: 4px; border-radius: 50%; background: var(--orange); }
.archive-featured-label { margin-left: auto; color: var(--red); font-size: .7rem; letter-spacing: .13em; }
.archive-post h2 { max-width: 24ch; margin: 1.2rem 0 1rem; color: #211915; font: 600 clamp(2.25rem, 3vw, 3.4rem)/1.08 var(--sans); letter-spacing: -.055em; overflow-wrap: anywhere; }
.archive-post.is-featured h2 { font-size: clamp(2.7rem, 3.8vw, 4.3rem); }
.archive-post-excerpt { color: #6d5e55; font: 500 1.05rem/1.75 var(--sans); }
.archive-post-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; width: 100%; margin-top: auto; padding-top: 2rem; color: #8a776c; font: 500 .88rem var(--mono); }
.archive-post-bottom > span { display: inline-flex; align-items: center; gap: .5rem; }
.archive-post-bottom > span i { color: var(--orange); font-size: 1.4rem; }
.archive-external-link, .archive-read-link { color: var(--red); font: 800 1rem var(--sans); }
.archive-external-link i, .archive-read-link i { vertical-align: middle; font-size: 1.4rem; }
.post-reader { width: 100%; margin-top: 1.8rem; border-top: 1px solid rgba(42,27,20,.13); }
.post-reader summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.4rem 0 .2rem; color: var(--red); cursor: pointer; list-style: none; font: 800 1rem var(--sans); }
.post-reader summary::-webkit-details-marker { display: none; }
.post-reader summary i { font-size: 1.8rem; transition: transform .2s ease; }
.post-reader[open] summary i { transform: rotate(45deg); }
.post-reader-content { padding: 1.3rem 0 .5rem; color: #51443d; font: 500 1.05rem/1.95 var(--sans); }
.post-reader-content p { margin: 0 0 1.35rem; }
.post-reader-content ul { margin: 0 0 1.4rem; padding-left: 1.5rem; }
.post-reader-content li { margin: .45rem 0; padding-left: .25rem; }
.post-reader-content strong { color: #261b16; font-weight: 800; }
.archive-media-error { position: absolute; inset: auto 12px 12px; padding: 1rem; border: 1px solid rgba(184,33,29,.2); background: rgba(255,255,255,.95); color: #5a463d; font: 500 .9rem/1.5 var(--sans); }
.archive-media-error a { display: block; margin-top: .4rem; color: var(--red); font-weight: 800; }
.blog-empty-panel { grid-column: 1 / -1; min-height: 340px; background: #fff; border: 1px solid rgba(216,50,45,.13); }

.publication-hero { grid-template-columns: minmax(0, 1.3fr) minmax(240px, .7fr); }
.publication-hero h1 { max-width: 850px; }
.publication-hero-stat { display: flex; flex-direction: column; justify-content: flex-end; min-height: 325px; background: linear-gradient(145deg, #211713, #4c2118 70%, #a33325); }
.publication-stat-number { color: #fff; font: 400 clamp(7rem, 12vw, 12rem)/.85 var(--display); letter-spacing: -.07em; }
.publication-stat-label { margin-top: 1.5rem; color: #ffc39e; font: 500 .82rem var(--mono); letter-spacing: .17em; }
.publication-stat-line { width: 100%; height: 1px; margin: 1.6rem 0 1.2rem; background: rgba(255,255,255,.23); }
.publication-hero-stat p { max-width: 240px; color: rgba(255,255,255,.8); font: 500 1.05rem/1.7 var(--sans); }
.publication-list-heading { margin-bottom: 2.4rem; }
.publication-stack { display: grid; gap: 1.2rem; }
.publication-card { display: grid; grid-template-columns: 185px minmax(0, 1fr); gap: 2rem; align-items: center; padding: 2.3rem; border: 1px solid rgba(110,64,43,.14); border-radius: 5px; background: #fff; box-shadow: 0 14px 38px rgba(42,24,15,.045); }
.pub-card-mark { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.pub-mark { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 50%; background: #fff0e7; color: var(--red); font-size: 2.5rem; }
.pub-type-label { color: #8a6b5d; font: 500 .78rem var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.publication-card-copy { min-width: 0; }
.publication-card .pub-meta { color: #8a6253; font: 500 .8rem/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.publication-card h3 { margin: .8rem 0 .6rem; color: #211915; font: 700 clamp(1.8rem, 2.7vw, 2.8rem)/1.15 var(--sans); letter-spacing: -.045em; }
.publication-card p { max-width: 800px; color: #6d5e55; font: 500 1.05rem/1.75 var(--sans); }
.publication-card .text-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.1rem; color: var(--red); font: 800 1rem var(--sans); }
.publication-no-link { display: inline-block; margin-top: 1.1rem; color: #8a776c; font: 500 .9rem var(--mono); }
.publication-empty { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 2.5rem; align-items: center; min-height: 300px; padding: clamp(2.5rem, 5vw, 5rem); border: 1px solid rgba(216,50,45,.14); background: #fff; box-shadow: 0 18px 44px rgba(42,24,15,.05); }
.publication-empty-symbol { display: grid; width: 128px; height: 128px; place-items: center; border: 1px solid rgba(216,50,45,.25); border-radius: 50%; color: var(--red); background: radial-gradient(circle, #fff1e8, #fff 68%); font-size: 5rem; }
.publication-empty-copy .empty-kicker { color: var(--red); }
.publication-empty-copy h3 { margin: 1rem 0 .8rem; color: #211915; font: 400 clamp(2.8rem, 4vw, 4.2rem)/1.05 var(--display); }
.publication-empty-copy p { max-width: 700px; color: #6d5e55; font: 500 1.08rem/1.8 var(--sans); }
.publication-empty-copy .button { margin-top: 1.6rem; }
.publication-types { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .8rem; margin-top: 2rem; }
.publication-types > div { display: flex; align-items: center; gap: .8rem; min-height: 70px; padding: 1rem; border: 1px solid rgba(110,64,43,.12); background: rgba(255,255,255,.7); color: #6d5549; font: 700 .9rem var(--sans); }
.publication-types i { color: var(--orange); font-size: 1.75rem; }
.publication-footnote { display: flex; align-items: center; gap: 1.4rem; margin-top: 4rem; padding: 2rem 0; border-top: 1px solid rgba(42,27,20,.13); border-bottom: 1px solid rgba(42,27,20,.13); }
.publication-footnote .note-symbol { color: var(--orange); font-size: 2.5rem; }
.publication-footnote > div { flex: 1; }
.publication-footnote h3 { color: #211915; font: 700 1.2rem var(--sans); }
.publication-footnote p { margin-top: .45rem; color: #75665d; font: 500 .95rem/1.7 var(--sans); }
.publication-footnote .text-link { flex: none; color: var(--red); font: 800 .95rem var(--sans); }

@media (max-width: 900px) {
  .blog-archive-hero, .publication-hero { grid-template-columns: 1fr; gap: 3rem; }
  .blog-archive-aside, .publication-hero-stat { min-height: 250px; }
  .archive-post.is-featured { grid-template-columns: minmax(210px, .8fr) minmax(0, 1.2fr); }
  .publication-types { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .blog-archive-section, .publication-section { padding-top: calc(var(--header-h) + 5rem); }
  .blog-archive-hero h1, .publication-hero h1 { font-size: clamp(4.8rem, 14vw, 7rem); }
  .archive-section-heading { align-items: flex-start; flex-direction: column; gap: .8rem; }
  .blog-archive-grid { grid-template-columns: 1fr; }
  .archive-post.is-featured { grid-column: auto; display: flex; }
  .archive-post.is-featured .archive-media { min-height: 230px; }
  .archive-post-copy { padding: 2rem; }
  .archive-post h2, .archive-post.is-featured h2 { font-size: clamp(2.5rem, 8vw, 3.4rem); }
  .publication-card { grid-template-columns: 1fr; gap: 1.2rem; padding: 1.8rem; }
  .pub-card-mark { flex-direction: row; align-items: center; }
  .publication-empty { grid-template-columns: 1fr; gap: 1.5rem; }
  .publication-empty-symbol { width: 92px; height: 92px; font-size: 3.6rem; }
  .publication-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .publication-footnote { align-items: flex-start; flex-wrap: wrap; }
  .publication-footnote .text-link { margin-left: 3.7rem; }
  .journal-section .project-footer-links { align-items: stretch; flex-direction: column; }
  .journal-archive-cta { width: 100%; min-width: 0; }
}
@media (max-width: 420px) {
  .publication-types { grid-template-columns: 1fr; }
  .blog-aside-rule { left: 1.8rem; right: 1.8rem; }
  .journal-archive-cta-copy strong { font-size: 1.35rem; }
}
