/* Public-only editorial system. Natural Paper by Mihaela Hinayon, via
   https://www.transparenttextures.com/natural-paper.html / Subtle Patterns.
   Texture attribution and font licenses are retained under assets/. */
@font-face { font-family: 'Riso Fraunces'; src: url('assets/fonts/fraunces-regular.ttf') format('truetype'); font-weight: 400 600; font-display: swap; }
@font-face { font-family: 'Riso DM Sans'; src: url('assets/fonts/dm-sans-regular.ttf') format('truetype'); font-weight: 400 500; font-display: swap; }
@font-face { font-family: 'Riso DM Sans'; src: url('assets/fonts/dm-sans-semibold.ttf') format('truetype'); font-weight: 600 800; font-display: swap; }
:root {
  --paper: #faf7f2;
  --paper-dark: #f0ebe3;
  --ink: #1a1a1a;
  --muted: #6b6560;
  --accent: #ff4d24;
  --accent-strong: #1a1a1a;
  --accent-text: #b52f13;
  --cobalt: #2e5eaa;
  --highlight: #eee1c8;
  --line: #cfc6b8;
  --font-body: 'Riso DM Sans', Arial, sans-serif;
  --font-display: 'Riso DM Sans', Arial, sans-serif;
  --font-editorial: 'Riso Fraunces', Georgia, serif;
  --black: #24241f;
  --light-gray: #eee5d4;
  --orange-hover: #833328;
  --border-dark: 1px solid #f7f1e635;
  --font-mono: 'Cascadia Mono', Consolas, monospace;
}
/* The fixed texture has no pointer hit area, animation, or layout footprint. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10003;
  opacity: .46;
  background-image: url('assets/textures/natural-paper.png');
  background-size: 523px 384px;
  mix-blend-mode: multiply;
}
.navbar, .navbar.scrolled, .navbar.navbar--light, .navbar.navbar--light.scrolled {
  background: var(--paper);
  backdrop-filter: none;
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 #ffffff65;
}
.navbar__link.active, .navbar.navbar--light .navbar__link.active { color: var(--accent); }
.navbar__link:last-child { box-shadow: inset 0 0 0 1px #f7f1e633; }
.hero { background: #e5d9c6; }
.hero__image {
  filter: sepia(.16) saturate(.86) contrast(.92) brightness(1.06);
  animation: none;
  transform: none;
  transition: opacity .35s ease;
}
.hero::after { background: #f7f1e626; }
.hero__title { color: var(--ink); text-shadow: .7px .35px 0 #a6413222; }
#heroTitleLine2 { color: var(--accent); }
.hero__subtitle { color: var(--ink); }
.hero__content > * { animation: print-arrive .55s ease both; }
.hero__content > :nth-child(n) { animation-delay: 0s; }
.hero__content > :nth-child(3), .hero__content > :nth-child(4), .hero__content > :nth-child(5) { animation-delay: .09s; }
.hero__label, .hero__eyebrow, .hero__footnote, .hero__scroll-cue span { font-family: var(--font-mono); }
.hero__label, .hero__eyebrow { font-size: 11px; }
.hero__eyebrow i { border-radius: 0; box-shadow: 2px 2px 0 #a6413225; }
.hero__scroll-arrow { border-color: #625c5166; }
.btn { border-radius: 2px; box-shadow: inset 0 0 0 1px #f7f1e62a, 1px 1px 0 #29282112; transition: color .2s, background .2s, box-shadow .2s; }
.btn--primary:hover, .btn--resume:hover { transform: none; background: #833328; color: var(--paper); border-color: #833328; box-shadow: inset 0 0 0 1px #f7f1e64a; }
.btn--secondary { box-shadow: none; border-bottom-color: var(--muted); }
.btn--secondary:hover { color: var(--accent); }
.discipline-strip { background: var(--accent); color: var(--paper); box-shadow: inset 0 1px #f7f1e640, inset 0 -1px #29282130; }
.discipline-strip b { color: var(--highlight); }
.section-label { font-family: var(--font-mono); font-size: 11px; }
.section-label::before { color: var(--accent); }
.section-label::after { animation: none; background: var(--accent); box-shadow: 0 2px 0 #a6413222; }
.about__heading, .contact__heading, #contactHeadingLine2, .projects-page__title, .milestone-archive h1 { color: var(--ink); }
.about__heading, .projects-preview__title { text-shadow: .65px .3px 0 #a6413220; }
.experience { background: #eee5d4; border-top-color: var(--line); }
.education-item { animation: none; transition: border-color .25s; }
.education-item:hover { padding-left: 0; border-color: var(--accent); }
.education-item:first-child { border-top-color: var(--muted); }
.education-item__title a { text-decoration-color: #a6413270; }
.education-item__year { color: var(--accent); }
.milestone-column__heading { color: var(--ink); }
.projects-preview { background: #303028; box-shadow: inset 0 2px 0 #a64132; position: relative; }
.projects-preview::before {
  content: '';
  position: absolute;
  top: 20px;
  right: var(--section-pad-x);
  width: 72px;
  height: 28px;
  background: radial-gradient(#e8d9ba 1px, transparent 1.4px) 0 0 / 5px 5px;
  opacity: .23;
  pointer-events: none;
}
.projects-preview .section-label::before, .projects-preview .section-label { color: var(--highlight); }
.projects-preview .project-card__desc { color: #ded4bf; }
.project-card { display: flex; flex-direction: column; }
.project-card, .project-card:hover { transform: none; transition: opacity .3s; }
.project-card__image-wrapper { background: #eee5d4; border-radius: 2px; box-shadow: 0 0 0 1px #29282124, 2px 3px 0 #29282110; }
.project-card__image { transition: opacity .3s; }
.project-card:hover .project-card__image { transform: none; opacity: .94; }
.project-card__image-wrapper::after { background: var(--paper); color: var(--accent); border-radius: 0; box-shadow: inset 0 0 0 1px #a6413255; transition: background .2s; }
.project-card:hover .project-card__image-wrapper::after { transform: none; background: var(--highlight); }
.project-working-badge { color: #4c553c; background: #e2e3d0; border: 1px dashed #74785a; border-radius: 2px; box-shadow: 1px 1px 0 #74785a25; }
.skills { background: #e0e1cf; }
.skills__heading { color: var(--ink); }
.skills__marquee-container { border-color: #74785a60; box-shadow: 0 1px 0 #ffffff50; }
.skill-tag { color: #4c553c; border-color: #74785a60; }
.contact__form { border-top-color: var(--accent); }
.contact__input, .contact__textarea { border-bottom-color: #b6a993; box-shadow: 0 1px 0 #ffffff66; background: transparent; }
.contact__input:focus, .contact__textarea:focus { outline-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.contact__label { font-family: var(--font-mono); font-size: 11px; }
.contact__link { text-decoration: underline; text-decoration-color: #a6413260; text-underline-offset: 5px; }
.footer { background: #eee5d4; }
.filter-tab { border-radius: 2px; box-shadow: 1px 1px 0 #29282112; }
.filter-tab.active { background: var(--accent); border-color: var(--accent); }
.project-detail__hero { background: #303028; border-bottom: 2px solid var(--accent); }
.project-detail__hero-image { border-radius: 2px; box-shadow: 0 0 0 1px var(--line); }
.project-detail__tech-tag, .project-nav { background: #eee5d4; }
.project-detail__tech-tag { color: var(--ink); }
.project-nav__link-title { color: var(--ink); }
.ai-chat-toggle-btn { background: var(--accent); box-shadow: inset 0 0 0 1px #f7f1e640, 2px 2px 0 #29282120; border-radius: 2px; }
.ai-chat-window { border-radius: 4px; background: var(--paper); box-shadow: 3px 4px 0 #2928211a; }
.ai-chat-header { background: #303028; }
.reveal, .reveal-left, .reveal-right { transition-duration: .45s; }
@keyframes print-arrive { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 768px) {
  .navbar__links, .navbar.navbar--light .navbar__links { background: var(--paper); }
  .hero::after { background: #292821ce; }
  .hero__title { color: var(--paper); text-shadow: none; }
  #heroTitleLine2 { color: var(--highlight); }
  .hero__label, .hero__eyebrow, .hero__subtitle { color: var(--paper); }
  .hero__label { font-size: 10px; }
  .hero__eyebrow { font-size: 9px; }
  .hero__cta-row .btn--primary { background: var(--highlight); border-color: var(--highlight); color: var(--ink); }
  .hero__cta-row .btn--primary:hover { background: var(--paper); }
  .projects-preview::before { width: 48px; height: 18px; top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__content > * { animation: none; }
}

/* Publication hierarchy and printed components. No changes to disclosure states. */
.navbar__link, .navbar.navbar--light .navbar__link { font-family: var(--font-body); }
.navbar__link.active, .navbar.navbar--light .navbar__link.active { color: var(--accent-text); }
.navbar__link:last-child, .navbar.navbar--light .navbar__link:last-child { background: var(--ink); color: white; border-radius: 0; }
.hero__title { font-size: 104px; line-height: .95; font-weight: 400; text-shadow: 1px 1px 0 #ff4d2420; }
#heroTitleLine2 { color: var(--accent-text); }
.hero__label, .section-label, .education-item__year, .contact__label, .milestone-more { color: var(--accent-text); }
.hero__statement em { font-size: 26px; }
.btn { border-radius: 0; border: 1px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.btn--primary, .btn--resume { background: var(--accent); color: var(--ink); }
.btn--primary:hover, .btn--resume:hover { background: #e63d15; color: var(--ink); box-shadow: 1px 1px 0 var(--ink); border-color: var(--ink); }
.btn:active { transform: translateY(1px); box-shadow: inset 1px 2px 0 #1a1a1a30; }
.btn--secondary { background: transparent; border: 0; border-bottom: 1px solid var(--ink); box-shadow: none; }
.discipline-strip { background: var(--ink); color: var(--paper); border-block: 2px solid var(--accent); }
.discipline-strip b { color: var(--accent); }
.about__heading, .projects-preview__title, .skills__heading, .contact__heading { font-weight: 400 !important; text-shadow: 1px 1px 0 #ff4d2415; }
.about__heading { font-size: 52px; }
.section-label::after { background: var(--accent); box-shadow: 2px 2px 0 #2e5eaa30; }
.about__right { border-bottom: 1px solid var(--line); }
.about, .contact { overflow-x: clip; }
.hero__scroll-cue { color: var(--paper); }
.hero__scroll-cue span { color: var(--paper); text-shadow: 0 1px 3px #1a1a1a; }
.hero__scroll-arrow { color: var(--paper); border-color: #faf7f280; }
.milestone-column__heading { font-family: var(--font-editorial); font-size: 26px; font-weight: 400; }
.education-item__title { font-family: var(--font-body); font-size: 21px; }
.education-item__year { font-size: 12px; }
.education-item__title a { text-decoration-color: var(--cobalt); }
.milestone-more { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; border-bottom: 1px solid var(--accent-text); }
.milestone-more[hidden] { display: none !important; }
.experience { background: var(--paper-dark); position: relative; isolation: isolate; }
.experience::before {
  content: ''; position: absolute; top: 30px; right: var(--section-pad-x); width: 180px; height: 60px;
  background: radial-gradient(var(--cobalt) 1px, transparent 1.6px) 0 0 / 6px 6px;
  opacity: .18; transform: rotate(-4deg); z-index: -1; pointer-events: none;
}
.projects-preview { background: var(--paper); border-top: 1px solid var(--ink); box-shadow: none; }
.projects-preview::before { background: repeating-linear-gradient(90deg, var(--accent) 0 2px, transparent 2px 7px); opacity: .7; height: 22px; }
.projects-preview__title { color: var(--ink); font-size: 72px; }
#featuredTitleLine2 { color: var(--accent-text); }
.projects-preview .section-label, .projects-preview .section-label::before { color: var(--accent-text); }
.projects-preview__header .btn { background: transparent; border-color: var(--ink); color: var(--ink); }
.projects-preview__header .btn:hover { background: var(--highlight); }
.project-card__image-wrapper { flex: none; padding: 12px; background: white; border: 1px solid #ccc5b8; box-shadow: 4px 5px 0 #1a1a1a12; border-radius: 0; }
.project-card:nth-child(even) .project-card__image-wrapper { box-shadow: -4px 5px 0 #2e5eaa1c; border-bottom: 3px solid var(--cobalt); }
.project-card:nth-child(odd) .project-card__image-wrapper { border-bottom: 3px solid var(--accent); }
.project-card__image-wrapper::after { background: var(--accent); color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.project-card__content { flex: 1; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
.project-card__category, .projects-preview .project-card__category { color: var(--cobalt); font-size: 11px; }
.project-card__title, .projects-preview .project-card__title { color: var(--ink); font: 400 34px/1.15 var(--font-editorial); }
.project-card__desc, .projects-preview .project-card__desc { color: var(--muted); font-size: 16px; }
.projects-preview .project-card:hover .project-card__title { color: var(--accent-text); text-shadow: 1px 1px 0 #2e5eaa30; }
.project-working-badge { color: var(--cobalt); border-color: var(--cobalt); background: var(--paper); transform: rotate(-2deg); box-shadow: 2px 2px 0 #2e5eaa22; }
.skills { background: var(--cobalt); color: var(--paper); position: relative; isolation: isolate; }
.skills::before {
  content: ''; position: absolute; inset: 24px 24px auto auto; width: 24%; height: 100px;
  background: radial-gradient(#faf7f2 1.1px, transparent 1.6px) 0 0 / 6px 6px;
  opacity: .24; pointer-events: none; z-index: -1;
}
.skills .section-label, .skills .section-label::before, .skills__heading, .skill-tag { color: var(--paper); }
.skills__heading { font-size: 62px; }
.skills__marquee-container, .skill-tag { border-color: #faf7f255; box-shadow: none; }
.skill-tag { font-size: 22px; }
.skills .btn--resume { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.skills .btn--resume:hover { background: var(--highlight); color: var(--ink); }
.contact__heading { font-size: 76px; }
#contactHeadingLine2 { color: var(--accent-text); }
.contact__form { border-top: 3px double var(--ink); }
.contact__input, .contact__textarea { background: #ffffff60; padding-inline: 12px; border-bottom-color: var(--muted); }
.contact__link { color: var(--cobalt); text-decoration-color: #2e5eaa60; min-height: 44px; display: inline-flex; align-items: center; }
.contact__label { color: var(--ink); }
.footer { background: var(--paper-dark); border-top: 3px double var(--line); }
.filter-tab { min-height: 44px; border: 1px solid var(--line); border-radius: 0; }
.filter-tab.active { background: var(--ink); border-color: var(--ink); color: var(--paper); box-shadow: 3px 3px 0 var(--accent); }
.projects-page__title { font-size: 88px; }
.project-detail__title { font-size: 72px; }
.project-detail__description h2 { font-size: 38px; }
.project-detail__description h1 { font: 400 44px/1.15 var(--font-editorial); }
.project-detail__description a, .project-detail__link, .tech-tag { color: var(--cobalt); }
.tech-tag { border-color: var(--line); background: var(--paper-dark); }
.project-nav__container { gap: 24px; align-items: flex-start; }
.project-nav__link { flex: 1; min-width: 0; }
.project-nav__link-title { overflow-wrap: anywhere; text-transform: none; }
.milestone-back, .milestone-archive__tabs a[aria-current], .education-item__title a:hover, .education-item__title a:focus-visible { color: var(--accent-text); }
.milestone-archive h1 { font-size: 68px; }
.milestone-archive__tabs a { min-height: 44px; }
.ai-chat-toggle-btn { background: var(--ink); color: var(--paper); box-shadow: 3px 3px 0 var(--accent); }
@media (min-width: 1600px) { .hero__title { font-size: 116px; } }
@media (min-width: 769px) and (max-height: 800px) { .hero__title { font-size: 80px; } }
@media (min-width: 769px) and (max-width: 1100px) {
  .hero__title { font-size: 82px; }
  .about__heading { font-size: 44px; }
  .contact__heading { font-size: 56px; }
  .hero__cta-row { gap: 14px; }
  .hero__cta-row .btn { padding-inline: 14px; font-size: 12px; }
}
@media (max-width: 768px) {
  .hero__title { font-size: 80px; }
  #heroTitleLine2 { color: var(--highlight); }
  .hero__label { color: var(--paper); }
  .hero__statement em { font-size: 24px; }
  .hero__cta-row .btn { min-height: 48px; }
  .about__heading { font-size: 40px; }
  .projects-preview__title { font-size: 54px; }
  .skills__heading { font-size: 44px; }
  .contact__heading { font-size: 52px; }
  .project-card__title { font-size: 30px; }
  .project-card__image-wrapper { padding: 8px; }
  .experience::before { width: 72px; height: 36px; top: 12px; }
  .skills::before { width: 64px; height: 40px; inset: 14px 24px auto auto; }
  .milestone-archive h1 { font-size: 44px; }
  .project-detail__title { font-size: 48px; }
  .project-nav__link-title { font-size: 24px; }
  .project-detail__description { overflow-wrap: anywhere; min-width: 0; }
  .project-detail__description pre, .project-detail__description table { max-width: 100%; overflow-x: auto; display: block; }
  .projects-page__title { font-size: 68px; }
  .ai-chat-window { max-width: calc(100vw - 32px); }
  .navbar__links { overflow-y: auto; }
}
@media (max-width: 380px), (max-width: 768px) and (max-height: 740px) {
  .hero__title { font-size: 68px; }
  .hero__statement em { font-size: 22px; }
  .hero__cta-row { gap: 12px; }
  .hero__cta-row .btn { padding-inline: 12px; }
  .hero__cta-row .btn--secondary { padding-inline: 0; }
}
@media (max-width: 380px) {
  .milestone-archive h1 { font-size: 36px; }
}
@media (max-width: 768px) and (max-height: 620px) {
  .hero__title { font-size: 56px; }
  .hero__statement em { font-size: 20px; }
}
