/* Homepage additions: hero, featured collection, education, and build log. */
#home { min-height: 760px; height: 100svh; }
.hero-content { width: min(100%, 1100px); padding: 96px 28px 120px; user-select: auto; }
.hero-eyebrow { color: rgba(255,255,255,.75); }
.hero-focus { max-width: 680px; margin: 30px auto 14px; font-size: clamp(1rem, 1.7vw, 1.3rem); line-height: 1.6; text-wrap: pretty; }
.hero-current { font-family: var(--mono); font-size: .76rem; line-height: 1.8; color: rgba(255,255,255,.75); }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero-action { padding: 14px 20px; border: 1px solid rgba(255,255,255,.5); color: white; background: rgba(13,13,13,.55); font-family: var(--mono); font-size: .78rem; text-decoration: none; }
.hero-action span { margin-left: 14px; }
.hero-action.primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.hero-action:hover { background: var(--red); border-color: var(--red); color: white; }
.hero-building { display: inline-flex; align-items: center; justify-content: center; gap: 9px; color: white; font-family: var(--mono); font-size: .7rem; line-height: 1.8; text-underline-offset: 5px; }
.building-dot { width: 6px; height: 6px; flex-shrink: 0; background: var(--red); border-radius: 50%; }
.hero-action:focus-visible, .hero-building:focus-visible { outline: 2px solid white; outline-offset: 5px; }

/* Current work: a shallow, horizontally moving image strip. */
#projects { padding-top: 64px; padding-bottom: 0; }
.current-projects { position: relative; padding-top: 27px; margin-bottom: 64px; scroll-margin-top: 76px; }
.live-stamp { position: absolute; top: 8px; left: -12px; z-index: 3; transform: rotate(-8deg); padding: 6px 13px; border: 2px solid #ff353a; border-radius: 5px; background: #170b0de8; color: #ff4149; font: 700 2.2rem/1 var(--mono); letter-spacing: .1em; text-shadow: 0 0 4px #ff3942, 0 0 18px #ff172d; box-shadow: 0 0 5px #ff353a, 0 0 22px #ff203b55, inset 0 0 12px #ff203b33; pointer-events: none; }
.current-controls { display: flex; justify-content: flex-end; gap: 7px; margin: -27px 0 12px; }
.current-controls button { min-height: 32px; min-width: 36px; border: 1px solid var(--rule); background: transparent; color: var(--ink); font: .65rem var(--mono); padding: 6px 10px; cursor: pointer; }
.current-controls button:hover { border-color: var(--ink); }
.current-track { display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; border-radius: 3px; }
.current-track::-webkit-scrollbar { display: none; }
.current-card { flex: 0 0 calc((100% - 40px) / 3.25); min-width: 260px; padding: 0; border: 1px solid #303335; background: #151719; color: white; text-align: left; cursor: pointer; font-family: var(--sans); }
.current-card img { display: block; width: 100%; height: 130px; object-fit: cover; }
.current-copy { display: block; padding: 12px 15px 15px; }
.current-copy strong { display: block; font-size: 1rem; line-height: 1.3; font-weight: 500; }
.current-copy > span { display: block; margin-top: 7px; font: .62rem/1.5 var(--mono); color: #b5b9b9; }
.current-card:hover { border-color: #ff4149; }
.current-card:focus-visible, .current-controls button:focus-visible { outline: 2px solid var(--red); outline-offset: -3px; }
.featured-header { margin-bottom: 42px; }
.proj-summary { margin: 12px 0; line-height: 1.65; font-size: .98rem; }
.proj-result { margin: 0 0 16px; padding-left: 12px; border-left: 2px solid var(--red); font-size: .92rem; line-height: 1.6; }
/* The next row is visible behind one full-width, clickable shadow. */
.project-collection { position: relative; z-index: 1; }
.collection-window { position: relative; z-index: 0; height: 260px; overflow: hidden; transition: height .7s cubic-bezier(.2,.7,.2,1); }
#additional-projects .proj-card:nth-child(even) { margin-top: 0; }
#additional-projects .proj-card-img img { height: 260px; object-fit: cover; }
.collection-reveal { position: absolute; z-index: 2; inset: 0; width: 100%; border: 0; padding: 105px 24px 40px; background: linear-gradient(to bottom, rgba(13,13,13,0) 0%, rgba(13,13,13,.62) 35%, #0d0d0d 92%); color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px; }
.collection-reveal > span:first-child { font: 500 clamp(1.3rem, 2.5vw, 2rem)/1.3 var(--sans); }
.collection-reveal > span:first-child > span { display: inline-block; margin-left: 15px; transition: transform .25s; }
.collection-reveal:hover > span:first-child > span { transform: translateY(5px); }
.collection-count { font: .73rem var(--mono); color: #ddd; }
.collection-reveal:focus-visible { outline: 2px solid white; outline-offset: -8px; }
.collection-reveal[hidden] { display: none; }
.project-collection.expanded .collection-window { height: auto; }
/* An in-page modal, with native focus containment and Escape support. */
.current-dialog { position: fixed; inset: 0; margin: auto; width: min(580px, calc(100% - 40px)); max-height: calc(100svh - 48px); overflow-y: auto; border: 1px solid #393b3d; padding: 48px 36px 40px; background: #151719; color: #f7f4ee; box-shadow: 0 24px 100px #0008; }
.current-dialog::backdrop { background: #08090bc9; backdrop-filter: blur(5px); }
.dialog-close { position: absolute; right: 12px; top: 10px; width: 40px; height: 40px; border: 0; background: transparent; color: white; font: 1.8rem var(--sans); cursor: pointer; }
.dialog-close:focus-visible { outline: 2px solid #ff4149; }
.dialog-eyebrow { font: .7rem var(--mono); text-transform: uppercase; letter-spacing: .13em; color: #ff5359; }
.current-dialog h2 { font: 500 clamp(1.5rem, 4vw, 2rem)/1.15 var(--sans); margin: 18px 0; }
.current-dialog p { font-size: 1rem; line-height: 1.8; color: #c7c9c7; }
body.project-dialog-open { overflow: hidden; }
/* One university, one primary degree, one subordinate degree. */
.graduate-education { margin-bottom: 0; }
.undergraduate-education { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--rule); }
.undergraduate-education .edu-school { font-size: 1.1rem; letter-spacing: -.02em; line-height: 1.4; margin-bottom: 9px; }
.undergraduate-education .edu-focus { font-size: .8rem; }
@media (max-width: 960px) {
  #home { min-height: 720px; }
  .hero-name { font-size: clamp(2.8rem, 10vw, 6rem); }
  .hero-content { padding: 100px 24px 120px; }
  .current-card { flex-basis: 43%; }
  .current-projects { margin-bottom: 48px; }
  .collection-window { height: 230px; }
}
@media (max-width: 600px) {
  .hero-focus { margin-top: 24px; }
  .hero-current { font-size: .7rem; }
  .hero-action { padding: 13px 14px; }
  .hero-action span { margin-left: 6px; }
  .hero-actions { gap: 8px; }
  .hero-building { font-size: .65rem; }
  .current-card { flex-basis: 85%; min-width: 240px; }
  .current-card img { height: 112px; }
  .live-stamp { left: -7px; font-size: 1.8rem; }
  .current-dialog { padding: 46px 24px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .collection-window { transition: none; }
}
