/* PERSONAL PORTFOLIO
   1. Theme & foundations   2. Navigation   3. Introduction
   4. Projects             5. Experience   6. About & contact
   7. Motion               8. Responsive   9. Print
   Start with the variables below to change the whole site's appearance. */

/* 1. THEME & FOUNDATIONS */
:root {
  --color-background: #f8f9fc;
  --color-surface: #ffffff;
  --color-ink: #202532;
  --color-muted: #616775;
  --color-accent: #4558d6;
  --color-accent-hover: #3445b4;
  --color-line: #dfe2eb;
  --color-dark: #222938;
  --font-body: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --page-width: 1180px;
  --radius: 12px;
  --section-space: 100px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 105px;
}
body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}
img {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.04em;
}
::selection {
  background: #dce1ff;
  color: #202532;
}
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 5px;
}
[hidden] {
  display: none !important;
}
.container {
  width: min(var(--page-width), calc(100% - 96px));
  margin-inline: auto;
}
.section {
  padding-block: var(--section-space);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.short-rule {
  width: 28px;
  height: 2px;
  background: var(--color-accent);
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 16px;
  z-index: 20;
  padding: 10px 20px;
  background: var(--color-ink);
  color: white;
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: translateY(0);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 50px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  transition:
    background 0.2s,
    transform 0.2s;
}
.button-primary {
  background: var(--color-accent);
  color: white;
}
.button-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 600;
}
.text-link:hover {
  color: var(--color-accent);
}

/* 2. NAVIGATION */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 249, 252, 0.96);
  border-bottom: 1px solid var(--color-line);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 88px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-size: 0.9375rem;
  font-weight: 600;
}
.monogram {
  font-size: 1.6rem;
  font-weight: 750;
  letter-spacing: -0.09em;
}
.monogram span {
  color: var(--color-accent);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.875rem;
}
.site-nav a {
  padding-block: 10px;
  transition: color 0.2s;
}
.site-nav a:hover,
.site-nav a[aria-current="location"] {
  color: var(--color-accent);
}
.site-nav .nav-contact {
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  padding: 9px 17px;
}

/* 3. INTRODUCTION */
.hero {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  align-items: center;
  column-gap: 65px;
  padding-top: 84px;
}
.hero h1 {
  margin-top: 25px;
  font-size: clamp(2.6rem, 4.7vw, 4.15rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.055em;
}
.hero h1 span {
  color: var(--color-accent);
}
.hero-description {
  max-width: 510px;
  margin-top: 25px;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--color-muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  margin-top: 31px;
}
.hero-caption {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 27px;
  font-size: 0.8125rem;
  color: var(--color-muted);
}
.intro-card {
  align-self: center;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--color-dark);
  color: #d2d6e2;
  box-shadow: 12px 12px 0 #e8ebf4;
}
.card-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}
.card-topline > :last-child {
  color: #abb7ff;
  font-size: 2rem;
  line-height: 1;
}
.intro-card-title {
  margin-top: 38px;
  margin-bottom: 17px;
  color: white;
  font-size: 1.9rem;
  line-height: 1.2;
  letter-spacing: -0.035em;
}
.intro-card > p:not(.intro-card-title) {
  font-size: 1rem;
  line-height: 1.75;
}
.intro-card-bottom {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 31px;
  padding-top: 19px;
  border-top: 1px solid #495060;
  font-size: 0.875rem;
}
.intro-card-bottom > :first-child {
  align-self: center;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #aeb6c9;
}
.hero-footnote {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 65px;
  padding-block: 25px;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  color: var(--color-muted);
  font-size: 0.8125rem;
}
.hero-footnote > :first-child {
  letter-spacing: 0.1em;
}
.hero-footnote a {
  display: flex;
  gap: 20px;
}

/* 4. PROJECTS — replace a cover with <img class="project-cover"> if desired. */
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 40px;
}
.section-heading .eyebrow {
  color: var(--color-muted);
  margin-bottom: 13px;
}
h2 {
  font-size: clamp(2rem, 3vw, 2.65rem);
  font-weight: 600;
}
.section-heading > p {
  font-size: 0.9375rem;
  color: var(--color-muted);
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  align-items: start;
}
.project-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    box-shadow 0.25s,
    transform 0.25s;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px #2229380c;
}
.project-cover {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: start;
  width: 100%;
  min-height: 224px;
  padding: 24px;
  object-fit: cover;
}
.cover-blue {
  background: #e0e5ff;
  color: #354398;
}
.cover-dark {
  background: #28354a;
  color: #edf0fa;
}
.cover-green {
  background: #d8eee9;
  color: #275d54;
}
.project-category {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
}
.project-number {
  align-self: end;
  font-size: 5.7rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.075em;
}
.cover-caption {
  font-size: 0.8125rem;
}
.project-content {
  padding: 25px 24px 12px;
}
.project-meta {
  color: var(--color-muted);
  font-size: 0.75rem;
  letter-spacing: 0.055em;
}
.project-content h3 {
  margin-top: 12px;
  margin-bottom: 14px;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.2;
}
.project-content > p:not(.project-meta) {
  color: var(--color-muted);
  font-size: 1rem;
}
.project-content .project-result {
  min-height: 46px;
  margin: -4px 0 15px;
  color: var(--color-ink) !important;
  font-size: 0.8125rem !important;
  font-weight: 600;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 20px 0 24px;
}
.tags li {
  padding: 4px 10px;
  border-radius: 4px;
  background: #f0f2f7;
  font-size: 0.8125rem;
  color: #525b6c;
}
.case-study {
  border-top: 1px solid var(--color-line);
}
.case-study summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding-block: 12px;
  cursor: pointer;
  list-style: none;
  font-size: 0.875rem;
  font-weight: 600;
}
.case-study summary::-webkit-details-marker {
  display: none;
}
.details-icon {
  color: var(--color-accent);
  font-size: 1.4rem;
  transition: transform 0.2s;
}
.case-study[open] .details-icon {
  transform: rotate(45deg);
}
.case-study-body {
  padding: 4px 0 18px;
}
.case-study-body h4 {
  margin-top: 14px;
  margin-bottom: 5px;
  font-size: 0.9375rem;
}
.case-study-body p {
  font-size: 1rem;
  color: var(--color-muted);
}
.case-study-body p + p {
  margin-top: 10px;
}
.project-link {
  margin-bottom: 10px;
}
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 30px;
  border-top: 1px solid var(--color-line);
  color: var(--color-muted);
  font-size: 0.8125rem;
}

/* 5. EXPERIENCE */
.experience-section {
  background: #eef1f7;
  border-block: 1px solid var(--color-line);
}
.button-outline {
  color: var(--color-ink);
  background: transparent;
  border-color: #aab1c2;
  white-space: nowrap;
}
.button-outline:hover {
  background: white;
  transform: translateY(-2px);
}
.timeline {
  margin-top: 50px;
}
.timeline-entry {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  padding-block: 34px;
  border-top: 1px solid #d2d8e4;
}
.timeline-entry:last-child {
  padding-bottom: 0;
}
.timeline-date {
  color: var(--color-muted);
  font-size: 0.8125rem;
  letter-spacing: 0.025em;
}
.timeline-date span {
  display: block;
  margin-top: 7px;
  font-size: 0.875rem;
  letter-spacing: 0;
}
.organization {
  margin-bottom: 9px;
  font-size: 0.875rem;
  color: var(--color-accent);
  font-weight: 600;
}
.timeline-content h3 {
  font-size: 1.4rem;
  letter-spacing: -0.025em;
  line-height: 1.3;
}
.timeline-content ul {
  margin: 18px 0 0;
  padding-left: 19px;
  color: var(--color-muted);
}
.timeline-content li {
  padding-left: 5px;
  margin-top: 9px;
}
.timeline-content li::marker {
  color: #8792b0;
}

/* 6. ABOUT & CONTACT */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 120px;
}
.about-intro .eyebrow {
  color: var(--color-muted);
  margin-bottom: 19px;
}
.about-intro > p:not(.eyebrow) {
  margin-top: 25px;
  color: var(--color-muted);
}
.about-details h3 {
  margin-top: 17px;
  font-size: 1.4rem;
}
.about-details .eyebrow {
  color: var(--color-muted);
}
.education-degree {
  margin-top: 10px;
}
.muted {
  color: var(--color-muted);
  font-size: 0.875rem;
  margin-top: 3px;
}
.honors {
  margin-top: 20px;
  border-left: 2px solid var(--color-accent);
  padding-left: 15px;
  font-size: 0.9375rem;
}
.coursework {
  margin-top: 22px;
  color: var(--color-muted);
}
.coursework strong {
  font-size: 0.875rem;
  color: var(--color-ink);
  font-weight: 600;
}
.skills-block,
.community-block {
  border-top: 1px solid var(--color-line);
  margin-top: 36px;
  padding-top: 29px;
}
.skills-list {
  margin: 21px 0 0;
}
.skills-list > div + div {
  margin-top: 18px;
}
.skills-list dt {
  margin-bottom: 4px;
  font-size: 0.875rem;
  font-weight: 600;
}
.skills-list dd {
  margin: 0;
  color: var(--color-muted);
  overflow-wrap: anywhere;
}
.community-organization {
  margin-top: 10px;
}
.community-block > p:last-child {
  margin-top: 18px;
  color: var(--color-muted);
}
.contact-section {
  background: var(--color-dark);
  color: white;
}
.contact-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 45px;
  padding-block: 76px;
}
.contact-inner .eyebrow {
  color: #b8c3ff;
  margin-bottom: 20px;
}
.contact-inner h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
}
.contact-inner h2 + p {
  color: #c9cfdd;
  margin-top: 21px;
}
.contact-actions {
  min-width: 0;
}
.email-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding-block: 12px;
  border-bottom: 1px solid #697286;
  font-size: clamp(1rem, 1.75vw, 1.4rem);
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}
.email-link:hover {
  color: #bbc5ff;
}
.contact-actions > p {
  margin-top: 12px;
  color: #c9cfdd;
  font-size: 0.875rem;
}
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  font-size: 0.875rem;
}
.social-links a:hover {
  text-decoration: underline;
}
.print-header {
  display: none;
}
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-line);
  border-radius: 5px;
  min-height: 44px;
  padding: 8px 12px;
  font-size: 0.875rem;
  color: var(--color-ink);
}
.menu-toggle span {
  margin-left: 8px;
}

/* 7. MOTION — content remains visible when JavaScript is disabled. */
@keyframes enter-page {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-copy {
  animation: enter-page 0.65s ease-out both;
}
.intro-card {
  animation: enter-page 0.8s ease-out both;
}
.reveal-in {
  animation: enter-page 0.6s ease-out both;
}

/* 8. RESPONSIVE — wide screens, tablets, then phones. */
@media (max-width: 1050px) {
  .container {
    width: calc(100% - 64px);
  }
  .hero {
    column-gap: 36px;
    grid-template-columns: 1.4fr 1fr;
  }
  .intro-card {
    padding: 25px;
  }
  .project-grid {
    gap: 18px;
  }
  .project-content {
    padding-inline: 18px;
  }
  .about-section {
    gap: 60px;
  }
}
/* Collapse the menu before the extra project links crowd the header.
   Keep this breakpoint matched to mobileLayout in script.js. */
@media (max-width: 1000px) {
  .header-inner {
    flex-wrap: wrap;
    padding-block: 14px;
  }
  .site-nav {
    width: 100%;
    flex-wrap: wrap;
  }
  .menu-enabled .menu-toggle {
    display: inline-flex;
    align-items: center;
  }
  .menu-enabled .site-nav {
    display: none;
    padding-top: 14px;
  }
  .menu-enabled .site-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .menu-enabled .site-nav a {
    min-height: 44px;
    padding: 10px 12px;
  }
}
@media (max-width: 800px) {
  :root {
    --section-space: 70px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 55px;
  }
  .hero h1 {
    font-size: clamp(2.6rem, 7vw, 4rem);
  }
  .intro-card {
    display: none;
  }
  .project-grid {
    grid-template-columns: 1fr;
  }
  .project-cover {
    min-height: 220px;
  }
  .section-heading {
    align-items: start;
  }
  .site-nav {
    gap: 18px;
  }
  .site-nav .nav-contact {
    border: 0;
    padding-inline: 0;
  }
  .header-inner {
    gap: 15px;
  }
  .wordmark > :last-child {
    max-width: 145px;
    line-height: 1.3;
  }
  .timeline-entry {
    grid-template-columns: 170px 1fr;
    gap: 25px;
  }
  .about-section {
    grid-template-columns: 1fr;
    gap: 45px;
  }
  .about-intro {
    max-width: 560px;
  }
  .contact-inner {
    align-items: start;
    flex-direction: column;
    gap: 25px;
  }
}
@media (max-width: 600px) {
  .container {
    width: calc(100% - 40px);
  }
  .header-inner {
    flex-wrap: wrap;
    gap: 4px;
    padding-block: 14px;
  }
  .site-nav {
    width: 100%;
    justify-content: space-between;
    font-size: 0.8125rem;
    gap: 8px;
  }
  .site-nav .nav-contact {
    gap: 6px;
  }
  .wordmark > :last-child {
    max-width: none;
    font-size: 0.875rem;
  }
  .wordmark {
    gap: 10px;
  }
  .header-inner {
    min-height: 76px;
  }
  .timeline {
    margin-top: 30px;
  }
  .timeline-entry {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-block: 28px;
  }
  .timeline-date span {
    display: inline;
    margin-left: 12px;
  }
  .hero {
    padding-top: 42px;
  }
  .hero h1 {
    font-size: clamp(2.25rem, 8.5vw, 3.4rem);
  }
  .hero-description {
    font-size: 1.0625rem;
  }
  .hero-actions {
    gap: 20px;
  }
  .hero-footnote {
    margin-top: 42px;
    padding-block: 18px;
  }
  .hero-footnote > :first-child {
    display: none;
  }
  .section-heading {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
  }
  .desktop-break {
    display: none;
  }
  .project-content {
    padding-inline: 24px;
  }
  .site-footer {
    flex-wrap: wrap;
    gap: 12px;
  }
  .site-footer > :nth-child(2) {
    display: none;
  }
}
@media (max-width: 370px) {
  .wordmark > :last-child {
    max-width: 125px;
  }
  .hero-caption {
    gap: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* 9. PRINT / PDF RÉSUMÉ
   Print the same HTML content, so edits do not need to be made twice.
   Browser print settings control paper size, margins, and PDF destination. */
@page {
  size: auto;
  margin: 14mm;
}
@media print {
  :root {
    --section-space: 0;
  }
  html {
    scroll-behavior: auto;
  }
  body {
    background: white;
    color: #111;
    font-family: Arial, sans-serif;
    font-size: 9pt;
    line-height: 1.4;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    box-shadow: none !important;
  }
  .container {
    width: 100%;
  }
  .site-header,
  .skip-link,
  .hero,
  .site-footer,
  .contact-section,
  .button,
  .about-intro,
  .project-cover,
  .case-study,
  .project-link {
    display: none !important;
  }
  .print-header {
    display: block;
    padding-bottom: 9pt;
    border-bottom: 1pt solid #111;
  }
  .print-name {
    font-size: 20pt;
    font-weight: bold;
    line-height: 1.3;
  }
  .section {
    padding-block: 10pt 0;
  }
  .section-heading {
    margin-bottom: 7pt;
  }
  .section-heading > p,
  .section-heading h2,
  .section-heading .eyebrow + h2 {
    display: none;
  }
  .eyebrow,
  .section-heading .eyebrow {
    color: #111 !important;
    font-size: 10pt;
    font-weight: bold;
    letter-spacing: 0.04em;
    margin: 0;
  }
  .experience-section {
    background: white;
    border: 0;
  }
  .timeline {
    margin: 0;
  }
  .timeline-entry {
    grid-template-columns: 115pt 1fr;
    gap: 12pt;
    border: 0;
    padding: 6pt 0;
    break-inside: avoid;
  }
  .timeline-date,
  .timeline-date span {
    color: #333;
    font-size: 8pt;
  }
  .timeline-date span {
    display: block;
    margin: 3pt 0 0;
  }
  .organization {
    font-size: 9pt;
    color: #111;
    margin-bottom: 2pt;
  }
  .timeline-content h3 {
    font-size: 10pt;
  }
  .timeline-content ul {
    margin-top: 4pt;
    color: #333;
  }
  .timeline-content li {
    margin-top: 3pt;
  }
  .project-grid {
    grid-template-columns: 1fr;
    gap: 6pt;
  }
  .project-card {
    border: 0;
    border-radius: 0;
    break-inside: avoid;
  }
  .project-content {
    padding: 0;
  }
  .project-content h3 {
    margin: 2pt 0;
    font-size: 10pt;
  }
  .project-meta {
    font-size: 8pt;
    color: #333;
  }
  .project-content > p:not(.project-meta) {
    font-size: 9pt;
    color: #333;
  }
  .project-content .project-result {
    min-height: 0;
    font-size: 8pt !important;
    margin: 2pt 0;
  }
  .tags {
    margin: 3pt 0;
    gap: 8pt;
  }
  .tags li {
    padding: 0;
    background: white;
    font-size: 8pt;
    color: #333;
  }
  .about-section {
    display: block;
  }
  .about-details {
    display: block;
  }
  .about-details h3 {
    margin: 5pt 0 2pt;
    font-size: 10pt;
  }
  .education-block,
  .skills-block,
  .community-block {
    break-inside: avoid;
  }
  .education-degree,
  .community-organization {
    margin-top: 2pt;
  }
  .muted {
    font-size: 8pt;
    color: #333;
  }
  .honors {
    margin-top: 4pt;
    padding-left: 0;
    border: 0;
    font-size: 9pt;
  }
  .coursework {
    margin-top: 4pt;
    font-size: 9pt;
    color: #333;
  }
  .coursework strong {
    font-size: 9pt;
  }
  .skills-block,
  .community-block {
    margin-top: 9pt;
    padding-top: 7pt;
  }
  .skills-list {
    margin: 5pt 0 0;
  }
  .skills-list > div {
    display: flex;
    gap: 6pt;
  }
  .skills-list > div + div {
    margin-top: 3pt;
  }
  .skills-list dt {
    flex: 0 0 115pt;
    font-size: 9pt;
    margin: 0;
  }
  .skills-list dd {
    color: #333;
  }
  .community-block > p:last-child {
    margin-top: 4pt;
    color: #333;
  }
}
