:root {
  --ink: #16231d;
  --soft-ink: #536059;
  --cream: #f5f1e8;
  --line: rgba(30, 48, 39, .16);
  --accent: #d2f564;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--ink); font-family: "DM Sans", sans-serif; background: #322a1d; }
a { color: inherit; }
a:focus-visible { outline: 2px solid #739525; outline-offset: 4px; }
.backdrop { position: fixed; inset: 0; z-index: -2; background: linear-gradient(110deg, rgba(20,30,23,.36), rgba(73,45,20,.1)), url("assets/studio.jpg") center 54% / cover no-repeat; transform: scale(1.025); }
.backdrop::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 72% 28%, transparent 10%, rgba(18,22,16,.26) 100%); }

.glass-shell { width: min(94vw, 1440px); margin: 3.5vh auto; min-height: 93vh; position: relative; border: 1px solid rgba(255,255,255,.45); border-radius: 34px; overflow: clip; background: rgba(241, 240, 230, .79); backdrop-filter: blur(24px) saturate(.9); -webkit-backdrop-filter: blur(24px) saturate(.9); box-shadow: 0 28px 90px rgba(18,23,16,.28), inset 0 1px 0 rgba(255,255,255,.75); }
.ambient-orb { position: absolute; z-index: 0; width: 360px; height: 360px; border-radius: 50%; pointer-events: none; filter: blur(8px); opacity: .16; }
.orb-one { top: 11%; right: -150px; background: radial-gradient(circle, var(--accent), transparent 67%); animation: orbDriftOne 13s ease-in-out infinite alternate; }
.orb-two { top: 58%; left: -190px; background: radial-gradient(circle, #8ab6a0, transparent 68%); animation: orbDriftTwo 16s ease-in-out infinite alternate; }
.site-header, main { position: relative; z-index: 1; }

.site-header { height: 92px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 clamp(28px, 5vw, 76px); position: sticky; top: 0; z-index: 20; background: rgba(241,240,230,.76); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; text-decoration: none; font: 600 17px "Manrope", sans-serif; letter-spacing: -.03em; }
.brand-text { display: inline-block; min-width: 132px; color: var(--ink); transform-origin: left center; transition: opacity .24s ease, transform .32s cubic-bezier(.2,.8,.2,1), letter-spacing .32s ease; }
.brand.is-typing .brand-text::after { content: ""; display: inline-block; width: 1px; height: .95em; margin-left: 3px; vertical-align: -.08em; background: var(--ink); animation: cursorBlink .72s steps(1) infinite; }
.brand.is-collapsing .brand-text { opacity: 0; transform: scale(.72); }
.brand.is-monogram .brand-text { opacity: 1; transform: scale(.92); letter-spacing: .09em; }
nav { display: flex; gap: 8px; padding: 5px; border: 1px solid var(--line); border-radius: 30px; background: rgba(255,255,255,.3); }
.nav-link { padding: 10px 17px; border-radius: 22px; text-decoration: none; color: var(--soft-ink); font-size: 13px; transition: .25s ease; }
.nav-link:hover, .nav-link.active { color: #fff; background: var(--ink); }
.social-link { justify-self: end; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); text-decoration: none; font-weight: 600; }

.panel { min-height: calc(93vh - 92px); padding: clamp(42px, 5.5vw, 76px) clamp(28px, 7vw, 104px); position: relative; border-bottom: 1px solid var(--line); scroll-margin-top: 92px; }
.eyebrow { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; display: flex; align-items: center; gap: 9px; }
.pulse { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: #67a52d; box-shadow: 0 0 0 5px rgba(103,165,45,.13); }
h1, h2 { font: 600 clamp(46px, 6.6vw, 102px)/.94 "Manrope", sans-serif; letter-spacing: -.065em; margin: 26px 0; max-width: 900px; }
h1 em, h2 em { font-family: Georgia, serif; font-weight: 400; }
.section-title { margin: 0 0 28px; font-size: clamp(36px,4vw,58px); line-height: 1; }

.hero { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(48px,7vw,120px); }
.intro { max-width: 625px; color: var(--soft-ink); font-size: clamp(17px,1.5vw,21px); line-height: 1.65; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; margin-top: 40px; }
.button { display: inline-flex; gap: 34px; align-items: center; text-decoration: none; padding: 17px 22px; border-radius: 7px; font-size: 13px; font-weight: 600; }
.button.primary { color: white; background: var(--ink); }
.text-link { font-size: 13px; text-underline-offset: 5px; }
.portrait-wrap { position: relative; justify-self: end; width: min(100%, 430px); }
.portrait-image { position: relative; }
.portrait-frame { height: min(57vh, 590px); overflow: hidden; border-radius: 160px 160px 16px 16px; box-shadow: 0 26px 55px rgba(25,35,27,.2); }
.portrait-image { animation: portraitFloat 6s ease-in-out infinite; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; display: block; filter: saturate(.82) contrast(.96); }
.portrait-note { position: absolute; right: -22px; bottom: 30px; padding: 14px 18px; border-radius: 9px; background: var(--accent); transform: rotate(-2deg); box-shadow: 0 12px 28px rgba(31,42,31,.18); }
.portrait-note span, .portrait-note strong { display: block; }
.portrait-note span { font-size: 9px; text-transform: uppercase; letter-spacing: .13em; margin-bottom: 4px; }
.portrait-note strong { font-size: 13px; }
.profile-links { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; }
.profile-links a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 24px; color: var(--soft-ink); text-decoration: none; font-size: 11px; transition: color .2s ease, background .2s ease, border-color .2s ease; }
.profile-links a:hover, .profile-links a:focus-visible { color: var(--cream); background: var(--ink); border-color: var(--ink); }
.profile-links svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.profile-links a:nth-child(2) svg { fill: currentColor; stroke: none; }

.projects { display: block; min-height: 60vh; }
.projects .section-title { width: min(100%, 820px); margin-inline: auto; }
.section-heading { position: sticky; top: 160px; align-self: start; }
.section-heading h2, .about h2, .contact h2 { font-size: clamp(44px,5vw,78px); }
.project-list { width: min(100%, 820px); border-top: 1px solid var(--line); }
.project { display: grid; grid-template-columns: 126px 1fr; gap: 26px; padding: 24px 0 26px; border-bottom: 1px solid var(--line); }
.project-type { font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: var(--soft-ink); }
.project-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.project-meta time { flex: 0 0 auto; color: var(--ink); font: 600 clamp(14px,1.35vw,18px) "Manrope", sans-serif; letter-spacing: -.02em; }
.project h3 { font: 600 clamp(27px,3vw,40px) "Manrope", sans-serif; letter-spacing: -.05em; margin: 9px 0 11px; }
.project h3 a { text-decoration: underline; text-decoration-color: rgba(22,35,29,.3); text-decoration-thickness: 1px; text-underline-offset: 6px; }
.project h3 a:hover { text-decoration-color: #739525; }
.project p { color: var(--soft-ink); line-height: 1.55; margin: 0; max-width: 600px; }
.project-logo-link { position: relative; align-self: start; display: grid; place-items: center; width: 112px; height: 112px; padding: 10px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 12px 28px rgba(22,35,29,.1); transition: transform .25s ease, box-shadow .25s ease; }
.project-logo-link:hover, .project-logo-link:focus-visible { transform: translateY(-4px) rotate(-1.5deg); box-shadow: 0 18px 35px rgba(22,35,29,.16); }
.project-logo-link img { display: block; width: 88px; height: 88px; object-fit: contain; }
.project-emblem { background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(210,245,100,.42)); color: var(--ink); }
.project-emblem svg { width: 58px; height: 58px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.visit-link { display: inline-block; margin-top: 18px; color: var(--ink); font-size: 12px; font-weight: 600; text-decoration: underline; text-decoration-color: #739525; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.visit-link:hover { color: #59771a; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; padding: 0; margin: 18px 0 0; }
.tags li { border: 1px solid var(--line); border-radius: 20px; padding: 6px 10px; font-size: 10px; text-transform: uppercase; letter-spacing: .07em; transition: transform .2s ease, background .2s ease; }
.expandable:hover .tags li { transform: translateY(-2px); background: rgba(255,255,255,.32); }

.experience { display: block; min-height: auto; background: rgba(222,229,216,.32); }
.experience-heading { margin-bottom: 20px; }
.timeline { width: 100%; min-width: 0; border-top: 1px solid var(--line); }
.timeline article { padding: 28px 0 30px; border-bottom: 1px solid var(--line); }
.timeline-meta { display: flex; align-items: baseline; width: 100%; gap: 20px; color: var(--soft-ink); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.timeline-meta span { order: 1; }
.timeline-meta time { order: 2; margin-left: auto; color: var(--ink); font: 600 clamp(15px,1.5vw,20px) "Manrope", sans-serif; letter-spacing: -.02em; text-transform: none; }
.timeline-copy .role { margin: 18px 0 6px; color: var(--soft-ink); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.timeline-copy h3 { margin: 0 0 12px; font: 600 clamp(23px,2.7vw,37px) "Manrope", sans-serif; letter-spacing: -.045em; }
.timeline-copy { min-width: 0; }
.timeline-copy h3 { overflow-wrap: anywhere; }
.timeline-copy h3 a { text-decoration: underline; text-decoration-color: rgba(22,35,29,.3); text-decoration-thickness: 1px; text-underline-offset: 6px; }
.timeline-copy h3 a:hover { text-decoration-color: #739525; }
.timeline-copy h3 span { color: #739525; font-size: .55em; vertical-align: top; }
.timeline-copy > p:not(.role) { max-width: 920px; margin: 0; color: var(--soft-ink); line-height: 1.65; }
.timeline-copy > p:not(.role) strong, .project > div > p strong { color: var(--ink); font-weight: 600; padding: 0 .08em; background: linear-gradient(transparent 62%, rgba(210,245,100,.62) 62%); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.expandable { cursor: default; transition: background-color .3s ease, padding-inline .3s ease; }
.expandable:focus-visible { outline: 2px solid #739525; outline-offset: 5px; }
.resume-details { max-height: 0; overflow: hidden; opacity: 0; transform: translateY(-8px); transition: max-height .6s ease, opacity .3s ease, transform .4s ease, margin-top .4s ease; }
.resume-details > p { display: flex; justify-content: space-between; align-items: center; margin: 0 0 14px !important; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink) !important; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; }
.resume-details > p span { font-size: 17px; transition: transform .3s ease; }
.resume-details ul { margin: 0; padding: 0 0 0 18px; color: var(--soft-ink); }
.resume-details li { margin: 0 0 10px; padding-left: 5px; font-size: 13px; line-height: 1.55; }
.expandable:hover .resume-details, .expandable:focus-within .resume-details { max-height: 850px; margin-top: 22px; opacity: 1; transform: translateY(0); }
.expandable:hover .resume-details > p span, .expandable:focus-within .resume-details > p span { transform: rotate(45deg); }

.education { display: flex; min-height: 52vh; align-items: center; justify-content: center; }
.education-inner { width: min(100%, 820px); }
.education-layout { display: grid; grid-template-columns: 190px 1fr; align-items: center; gap: 52px; border-top: 1px solid var(--line); }
.msu-mark { position: relative; display: grid; place-items: center; width: 170px; height: 170px; border-radius: 50%; background: rgba(255,255,255,.32); text-decoration: none; box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px rgba(24,44,34,.09); transition: transform .35s ease, box-shadow .35s ease; }
.msu-mark:hover, .msu-mark:focus-visible { transform: translateY(-5px) rotate(-2deg); box-shadow: inset 0 0 0 1px rgba(24,44,34,.25), 0 25px 50px rgba(24,44,34,.16); }
.msu-mark img { width: 94px; max-height: 108px; position: relative; z-index: 1; }
.msu-link-label { position: absolute; z-index: 2; bottom: 13px; font-size: 9px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.logo-orbit { position: absolute; inset: -8px; border: 1px dashed rgba(24,44,34,.24); border-radius: 50%; animation: orbitSpin 18s linear infinite; }
.logo-orbit i { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(210,245,100,.18); }
.logo-orbit i:first-child { top: 24px; right: 18px; }
.logo-orbit i:last-child { bottom: 17px; left: 26px; }
.facts { margin-top: 0; border-top: 0; }
.facts div { display: grid; grid-template-columns: 90px 1fr; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts span { grid-row: span 2; color: var(--soft-ink); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.facts strong { font-size: 14px; }
.facts small { color: var(--soft-ink); margin-top: 3px; }
.coursework { display: grid; grid-template-columns: 190px 1fr; gap: 52px; align-items: start; padding-top: 16px; border-top: 1px solid var(--line); }
.coursework > span { color: var(--soft-ink); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .11em; }
.coursework ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.coursework li { padding: 5px 9px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.24); color: var(--soft-ink); font-size: 9px; line-height: 1.25; }

.contact { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; background: rgba(25,39,32,.93); color: #f3f1e9; }
.contact .eyebrow { color: #cbd4cc; }
.contact h2 { max-width: 1050px; }
.contact-links { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 34px; }
.email-link, .phone-link { display: inline-flex; align-items: center; color: var(--accent); font-size: clamp(17px,2vw,25px); text-underline-offset: 7px; }
.phone-link { color: #f3f1e9; text-decoration-color: rgba(210,245,100,.72); }
.email-link:hover, .phone-link:hover { color: var(--accent); }
.contact-footer { position: absolute; left: clamp(28px,7vw,104px); right: clamp(28px,7vw,104px); bottom: 25px; display: flex; color: #aeb8b0; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.contact-footer { align-items: center; justify-content: space-between; }
.contact-footer div { display: flex; gap: 24px; }
.contact-footer a { text-decoration: underline; text-decoration-color: rgba(210,245,100,.5); text-underline-offset: 4px; transition: color .2s ease, transform .2s ease; }
.contact-footer a:hover, .contact-footer a:focus-visible { color: var(--accent); transform: translateY(-2px); }

.motion-ready .reveal-target { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.motion-ready .reveal-target.is-visible { opacity: 1; transform: translateY(0); }

@keyframes portraitFloat { from, to { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
@keyframes orbDriftOne { from { transform: translate3d(0,0,0) scale(.9); } to { transform: translate3d(-80px,90px,0) scale(1.15); } }
@keyframes orbDriftTwo { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(110px,-70px,0) scale(.82); } }
@keyframes cursorBlink { 0%, 48% { opacity: 1; } 49%, 100% { opacity: 0; } }

.scroll-progress { position: fixed; z-index: 40; right: calc(3vw + 9px); top: 18vh; height: 64vh; width: 2px; background: rgba(255,255,255,.22); }
.scroll-progress span { display: block; width: 100%; height: 0; background: var(--accent); }
.section-marker { position: fixed; z-index: 40; left: calc(3vw + 18px); bottom: 6vh; color: rgba(255,255,255,.82); writing-mode: vertical-rl; display: flex; gap: 13px; align-items: center; font-size: 9px; text-transform: uppercase; letter-spacing: .15em; }
.section-marker span { color: var(--accent); }
.section-marker p { margin: 0; }

@media (max-width: 900px) {
  .glass-shell { width: calc(100vw - 24px); margin: 12px auto; border-radius: 23px; }
  .site-header { height: 76px; padding: 0 12px; display: flex; justify-content: center; }
  .brand { display: none; }
  nav { background: rgba(242,241,233,.7); box-shadow: 0 8px 22px rgba(20,30,23,.08); }
  .nav-link { padding: 9px 12px; }
  .social-link { display: none; }
  .panel { min-height: auto; padding: 52px 28px 68px; scroll-margin-top: 76px; }
  .hero { grid-template-columns: 1fr; }
  .portrait-wrap { width: 100%; justify-self: center; }
  .portrait-frame { height: 520px; border-radius: 140px 140px 14px 14px; }
  .section-heading, .experience-heading { position: static; }
  .scroll-progress, .section-marker { display: none; }
  .projects, .education { min-height: 52vh; }
  .project { grid-template-columns: 96px 1fr; gap: 18px; }
  .project-logo-link { width: 82px; height: 82px; border-radius: 18px; padding: 8px; }
  .project-logo-link img { width: 66px; height: 66px; }
  .education-layout { grid-template-columns: 1fr; gap: 32px; }
  .coursework { grid-template-columns: 1fr; gap: 10px; }
  .msu-mark { width: 150px; height: 150px; margin-inline: auto; }
  .contact { min-height: 74vh; }
  .contact-footer { position: static; margin-top: 70px; }
}

@media (max-width: 540px) {
  h1 { font-size: 48px; }
  .nav-link { padding: 9px 6px; font-size: 11px; }
  nav { gap: 2px; }
  .intro { font-size: 16px; }
  .portrait-frame { height: 430px; }
  .portrait-note { right: -5px; }
  .project { grid-template-columns: 1fr; gap: 14px; }
  .project-logo-link { margin-top: 8px; }
  .facts div { grid-template-columns: 75px 1fr; }
  .contact-footer { flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .expandable, .resume-details, .resume-details > p span, .reveal-target, .msu-mark, .tags li { transition: none !important; }
  .portrait-image, .logo-orbit, .ambient-orb, .brand-text::after { animation: none !important; }
  .motion-ready .reveal-target { opacity: 1; transform: none; }
}
