:root { --bg: #f9fafb; --surface: #ffffff; --text: #111827; --text-secondary: #6b7280; --text-tertiary: #9ca3af; --accent: #2563eb; --accent-hover: #1d4ed8; --accent-light: #eff6ff; --border: #e5e7eb; --success: #10b981; --success-light: #ecfdf5; --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; --max-w: 800px; --max-w-wide: 1100px; --radius: 12px; --shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }

* { margin: 0; padding: 0; box-sizing: border-box; }

html { height: 100%; }

body { font-family: var(--font); line-height: 1.6; color: var(--text); background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }

img, video { max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

body > section { flex: 1; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.site-header .header-inner { max-width: var(--max-w-wide); margin: 0 auto; padding: 0 2rem; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.site-header .site-logo { font-size: 1.125rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.site-header .site-logo:hover { color: var(--text); }
.site-header .site-nav { display: flex; gap: 2rem; }
.site-header .site-nav a { color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; padding: 0.25rem 0; border-bottom: 2px solid transparent; transition: all 0.2s; }
.site-header .site-nav a:hover { color: var(--text); }
.site-header .site-nav a.active { color: var(--text); border-bottom-color: var(--text); }

main.container { max-width: var(--max-w-wide) !important; width: 100% !important; margin: 0 auto !important; padding: 3rem 2rem !important; flex: 1; }

.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 1.2rem; border-radius: 8px; font-size: 0.875rem; font-weight: 500; transition: all 0.2s; cursor: pointer; border: none; text-decoration: none; line-height: 1.4; }

.btn-primary { background: var(--text); color: #fff; }
.btn-primary:hover { background: #374151; color: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); }

.btn-outline { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: #c4c8cc; box-shadow: var(--shadow); color: var(--text); }

.hero { padding: 3rem 0; }
.hero .hero-title { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.hero .hero-greeting { font-size: 2.5rem; color: var(--text-secondary); font-weight: 300; letter-spacing: -0.02em; line-height: 1.1; }
.hero .hero-name { font-size: 2.5rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; color: var(--text); }
.hero .hero-status { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 1.5rem; }
.hero .status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-tertiary); animation: status-blink 2s ease-in-out infinite; }
@keyframes status-blink { 0%, 100% { opacity: 1; }
  50% { opacity: 0.3; } }
.hero .hero-bio { color: var(--text-secondary); line-height: 1.8; margin-bottom: 1.75rem; }
.hero .hero-bio p { margin-bottom: 0.75rem; }
.hero .hero-bio p:last-child { margin-bottom: 0; }
.hero .hero-bio p:first-child { color: var(--text); font-size: 1.125rem; line-height: 1.65; margin-bottom: 1rem; }
.hero .hero-bio a { font-weight: 600; }
.hero .hero-bio strong { color: var(--text); font-weight: 600; }
.hero .hero-social { display: flex; gap: 1.25rem; align-items: center; }
.hero .hero-social a { color: var(--text); font-size: 1.5rem; transition: color 0.2s; }
.hero .hero-social a:hover { color: var(--text-secondary); }

.timeline-section { padding: 2rem 0; border-top: 1px solid var(--border); }

.timeline-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }

.timeline-col > h2 { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; color: var(--text-secondary); text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.08em; margin-bottom: 1.5rem; }

.timeline { display: flex; flex-direction: column; position: relative; }
.timeline::before { content: ''; position: absolute; left: 4px; top: 0; bottom: 0; width: 1px; background: var(--border); }

.timeline-item { display: flex; gap: 1.25rem; padding-bottom: 2rem; position: relative; }
.timeline-item:last-child { padding-bottom: 0; }

.timeline-node { flex-shrink: 0; width: 10px; margin-top: 4px; position: relative; z-index: 1; }

.timeline-line { display: none; }

.timeline-marker { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); box-shadow: 0 0 0 1.5px var(--accent); flex-shrink: 0; }
.timeline-education .timeline-marker { background: var(--success); box-shadow: 0 0 0 1.5px var(--success); }

.timeline-body { display: flex; flex-direction: column; min-width: 0; }

.timeline-date { font-size: 0.78rem; font-weight: 600; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.2rem; }

.timeline-details h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.15rem; color: var(--text); line-height: 1.3; }
.timeline-details .timeline-org { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 0.35rem; }
.timeline-details .timeline-org a { color: var(--text-secondary); }
.timeline-details .timeline-org a:hover { color: var(--accent); }

.badge { display: inline-block; font-size: 0.6rem; font-weight: 600; padding: 0.1rem 0.4rem; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.03em; }
.badge.badge-current { background: var(--accent-light); color: var(--accent); }
.badge.badge-education { background: var(--success-light); color: var(--success); }

.timeline-blog-link { display: inline-block; margin-top: 0.3rem; font-size: 0.75rem; font-weight: 500; color: var(--accent); }
.timeline-blog-link:hover { color: var(--accent-hover); text-decoration: underline; }

.latest-posts { padding: 2rem 0; border-top: 1px solid var(--border); }
.latest-posts .section-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.5rem; }
.latest-posts .section-header h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.latest-posts .section-header .see-all { font-size: 0.875rem; font-weight: 500; }

.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }

.post-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; transition: all 0.2s ease; display: flex; flex-direction: column; }
.post-card:hover { border-color: #c4c8cc; box-shadow: var(--shadow); transform: translateY(-2px); }
.post-card .post-date { font-size: 0.8rem; color: var(--text-tertiary); font-weight: 500; }
.post-card h3 { font-size: 1rem; font-weight: 700; margin: 0.5rem 0; line-height: 1.3; color: var(--text); }
.post-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; flex: 1; margin-bottom: 0.75rem; }
.post-card .post-link { font-size: 0.85rem; font-weight: 500; }

.projects-section { padding: 1rem 0; }
.projects-section .projects-page-header { margin-bottom: 2rem; }
.projects-section .projects-page-header h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.75rem; }
.projects-section .projects-page-header .projects-intro { color: var(--text-secondary); line-height: 1.7; }

.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }

.project-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; display: flex; flex-direction: column; min-height: 160px; transition: all 0.2s ease; cursor: pointer; }
.project-card:hover { border-color: #c4c8cc; box-shadow: var(--shadow); transform: translateY(-2px); }
.project-card .entry-header { margin-bottom: 0.5rem; }
.project-card .entry-header h2 { font-size: 1rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.project-card .entry-content { flex: 1; }
.project-card .entry-content p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }
.project-card .entry-footer { display: none; }
.project-card .entry-link { position: absolute; inset: 0; z-index: 1; }

.blog-list > h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 1.5rem; }

.blog-entries { display: flex; flex-direction: column; gap: 1rem; }

.blog-entry { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; transition: all 0.2s ease; cursor: pointer; }
.blog-entry:hover { border-color: #c4c8cc; box-shadow: var(--shadow); transform: translateY(-1px); }
.blog-entry h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text); }
.blog-entry .blog-excerpt { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 0.75rem; }
.blog-entry .blog-meta { font-size: 0.8rem; color: var(--text-tertiary); }
.blog-entry .entry-link { position: absolute; inset: 0; z-index: 1; }

.contact-section { padding: 1rem 0; }
.contact-section h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.75rem; }
.contact-section .contact-intro { color: var(--text-secondary); margin-bottom: 2rem; line-height: 1.7; }
.contact-section .contact-list { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-section .contact-item { display: flex; align-items: center; gap: 1rem; font-size: 0.95rem; color: var(--text); }
.contact-section .contact-item .icon { font-size: 1.25rem; color: var(--text-tertiary); width: 24px; text-align: center; }
.contact-section .contact-item strong { font-weight: 600; margin-right: 0.25rem; }
.contact-section .contact-item a { color: var(--text); }
.contact-section .contact-item a:hover { color: var(--accent); }

.internship-media-grid { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2em 0; }
.internship-media-grid figure { flex: 1; min-width: 300px; margin: 0; }
.internship-media-grid figure img, .internship-media-grid figure video { width: 100%; height: auto; border-radius: 8px; object-fit: cover; }
.internship-media-grid figure figcaption { font-size: 0.9em; color: var(--text-secondary); margin-top: 0.5em; text-align: center; }

.portrait { overflow: hidden; }

.button.is-big { font-size: 1.5rem; padding: 1rem 1.5rem; height: auto; }

.button.is-big .icon { font-size: 1.75rem; }

.footer .footer-links a { font-size: 1.25rem; color: var(--text); }

.footer .button.is-small { padding: 0.2rem; height: 2rem; width: 4rem; }

.footer .button.is-small .icon { margin: 0; font-size: 2rem; }

footer, .footer { flex-shrink: 0; margin-top: auto; }

.site-footer { text-align: center; padding: 2rem 0; color: var(--text-tertiary); font-size: 0.85rem; }

@media (max-width: 768px) { .site-header .header-inner { padding: 0 1.25rem; }
  .site-header .site-nav { gap: 1.25rem; }
  .site-header .site-nav a { font-size: 0.85rem; }
  main.container { padding: 2rem 1.25rem !important; }
  .hero .hero-name { font-size: 1.875rem; }
  .hero .hero-greeting { font-size: 1.875rem; }
  .posts-grid, .projects-grid { grid-template-columns: 1fr; }
  .latest-posts .section-header { flex-direction: column; gap: 0.5rem; }
  .internship-media-grid figure { min-width: 100%; }
  .timeline-columns { grid-template-columns: 1fr; gap: 2rem; } }
@media (max-width: 480px) { .site-header .header-inner { padding: 0 1rem; height: 56px; }
  .site-header .site-logo { font-size: 1rem; }
  .site-header .site-nav { gap: 0.75rem; }
  .site-header .site-nav a { font-size: 0.8rem; }
  main.container { padding: 1.5rem 1rem !important; }
  .hero .hero-name { font-size: 1.5rem; }
  .hero .hero-greeting { font-size: 1.5rem; }
  .contact-section .contact-item { align-items: flex-start; }
  .contact-section .contact-item .icon { margin-top: 0.15rem; } }
html { scroll-padding-top: 90px; }

a:focus-visible { outline: 2px solid var(--text-secondary); outline-offset: 4px; }

.portfolio-hero { padding: 1.5rem 0 2.75rem; }
.portfolio-hero .hero-title { margin-bottom: 1.25rem; }
.portfolio-hero .hero-greeting, .portfolio-hero .hero-name { font-size: 2.5rem; line-height: 1.1; }
.portfolio-hero .hero-summary { max-width: 900px; font-size: 1.125rem; line-height: 1.65; color: var(--text); margin-bottom: 1.75rem; }
.portfolio-hero .hero-social { gap: 1.25rem; }
.portfolio-hero .hero-social a { font-size: 1.5rem; color: var(--text); }
.portfolio-hero .hero-social a:hover { color: var(--text-secondary); }

.featured-work { padding-bottom: 1.75rem; }

.work-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.work-section-heading h2 { font-size: 1.1rem; font-weight: 600; letter-spacing: -.015em; }
.work-section-heading .see-all { font-size: .8rem; color: var(--text-secondary); }

.featured-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; }

.work-feature { min-width: 0; display: grid; grid-template-rows: auto auto 1fr; gap: .8rem; }

.work-copy h3 { font-size: .95rem; font-weight: 600; line-height: 1.5; margin-bottom: .35rem; }
.work-copy h3 span { color: var(--text-secondary); font-weight: 400; }
.work-copy p { font-size: .9rem; line-height: 1.65; color: var(--text-secondary); }

@supports (grid-template-rows: subgrid) { .work-feature { grid-row: span 3; grid-template-rows: subgrid; } }
.demo-player, .coaches-photo { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: #e5e7eb; }

.demo-player iframe { display: block; width: 100%; height: 100%; border: 0; }

.coaches-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }

.demo-preview { display: block; position: relative; width: 100%; height: 100%; }
.demo-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }

.demo-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 44px; height: 44px; padding-left: 2px; background: #fffffff2; color: #111827; border-radius: 50%; font-size: .9rem; box-shadow: 0 2px 8px #0002; }

.demo-preview:hover .demo-play { background: #fff; }

.work-actions { display: flex; flex-wrap: wrap; align-items: start; gap: .5rem 1.25rem; }
.work-actions a { font-size: .78rem; color: var(--text-secondary); }
.work-actions a:hover { color: var(--text); text-decoration: underline; }

.academic-heading { font-size: 1.1rem; font-weight: 600; margin-bottom: 1.25rem; }

@media (min-width: 769px) { main.container:has(.portfolio-hero) { padding-top: 1.75rem !important; } }
@media (max-width: 600px) { .featured-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .work-feature { grid-row: auto; grid-template-rows: auto auto auto; }
  .site-header .header-inner { flex-wrap: wrap; height: auto; min-height: 64px; gap: .5rem; padding-top: .7rem; padding-bottom: .7rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
body main.container { max-width: 1100px !important; margin: 0 auto !important; padding: 1.75rem 2rem !important; }

.site-header .header-inner { max-width: 1100px; }

.portfolio-hero .hero-name { color: #243e63; }

.portfolio-hero .hero-summary strong { color: var(--text); font-weight: 700; }

.hero-social a:hover { color: var(--accent) !important; }

.work-section-heading h2 { color: #243e63; }

.work-section-heading .see-all { color: var(--accent); }

.work-feature { padding: 1.25rem; border: 1px solid #e4e8ee; border-radius: 10px; background: #fff; gap: 1rem; align-content: start; }

.work-copy .project-context { font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: .4rem; color: #b4232c; }

.work-sport .project-context { color: #245bb1; }

.work-copy h3 { font-size: 1.06rem; margin-bottom: .5rem; }

.demo-player, .coaches-photo { display: grid; place-items: center; aspect-ratio: 4 / 3; height: auto; width: 100%; background: #f6f7f9; border-radius: 6px; }

.demo-preview img, .coaches-photo img { width: 100%; height: 100%; object-fit: contain; }

.demo-player:has(iframe) { background: #111; }

.work-mistral .work-actions a { color: #925021; }

.work-sport .work-actions a { color: #345d8c; }

.work-actions a:hover { text-decoration: underline; }

.education-section { padding: 1.5rem 0; border-top: 1px solid var(--border); }

.education-section > h2, .latest-posts .section-header h2 { font-size: 1.1rem; font-weight: 600; }

.education-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 1rem; }

.education-item h3 { font-size: .9rem; font-weight: 600; }
.education-item h3 a { color: #345d8c; }
.education-item p { font-size: .8rem; line-height: 1.7; color: var(--text-secondary); }

@media (max-width: 768px) { body main.container { padding: 1.5rem 1.25rem !important; } }
@media (max-width: 600px) { body main.container { padding: 1.25rem 1rem !important; }
  .education-grid { grid-template-columns: 1fr; }
  .demo-player, .coaches-photo { max-height: none; } }
.work-actions { border-top: 1px solid #edf0f3; padding-top: .85rem; gap: .6rem 1.25rem; }

.work-actions a { font-size: .85rem; font-weight: 500; }

.work-feature { grid-template-rows: auto auto auto; }

@supports (grid-template-rows: subgrid) { .work-feature { grid-template-rows: subgrid; } }
@media (max-width: 600px) { .work-feature { grid-template-rows: auto auto auto; padding: 1rem; } }
.latest-posts .post-card { position: relative; }
.latest-posts .post-card .post-link::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius); }
.latest-posts .post-card:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (max-width: 768px) { .portfolio-hero .hero-greeting, .portfolio-hero .hero-name { font-size: 1.875rem; } }
@media (max-width: 480px) { .portfolio-hero .hero-greeting, .portfolio-hero .hero-name { font-size: 1.5rem; } }
@media (max-width: 600px) { .portfolio-hero { padding-top: 1rem; padding-bottom: 2.25rem; }
  .portfolio-hero .hero-summary { margin-bottom: 1.5rem; } }
.project-visual { margin: 0; min-width: 0; }
.project-visual figcaption { margin-top: .55rem; font-size: .75rem; line-height: 1.5; color: var(--text-secondary); }
