@font-face {
  font-family: Manrope;
  src: url('/assets/manrope-medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Reading copy has a consistent size and weight on every screen size.
   Surface-specific colours keep dark text on pale panels and light text on blue/navy. */
@media screen {
  :root { --muted: #30394f; }
  body { font-weight: 500; }

  .section-heading > p {
    color: var(--muted);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.75;
    max-width: 460px;
  }

  .project-text > p:not(.eyebrow),
  .timeline-content > p:last-child,
  .teaching-inner > p,
  .current-inner div > p,
  .approach-grid p,
  .project-dialog h3 + p,
  .approach-points li,
  .project-dialog .dialog-intro {
    color: var(--muted);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.8;
  }

  .current-inner div > p,
  .approach-grid p { color: #252e43; }

  .hero-intro,
  .expertise-item p,
  .contact-intro {
    color: #f5f6ff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.8;
  }
  .expertise-section .section-heading > p { color: #f5f6ff; }

  .eyebrow, .mono, .project-text .eyebrow,
  .dialog-top .eyebrow, .proof-title .eyebrow,
  .delivery > .eyebrow, .hero-copy > .eyebrow {
    font-size: 11px;
    font-weight: 500;
  }
  .hero-copy > .eyebrow { color: #f5f6ff; }
  .project-text .eyebrow { color: var(--muted); }

  .proof-metric > p { font-size: 14px; }
  .proof-metric > p > span { color: #e1e7ff; font-size: 12px; }
  .hero-stats p { color: #f5f6ff; font-size: 13px; }
  .hero-stats p > span { color: #f5f6ff; font-size: 12px; }
  .delivery-numbers span { color: #f5f6ff; font-size: 13px; }
  .teaching-proof span { color: var(--ink); font-size: 13px; }

  .timeline-role { font-size: 14px; line-height: 1.65; }
  .timeline-date, .education .mono { font-size: 12px; }
  .education h4 { font-size: 15px; }
  .education p { color: var(--muted); font-size: 14px; }
  .tags li { color: #f5f6ff; font-size: 12px; }
  .project-dialog .tags li { color: var(--ink); }
  .project-dialog h3 { font-size: 16px; }
  .dialog-stage, .project-stage, .project-number { font-size: 11px; }

  .filters button { font-size: 13px; min-height: 44px; }
  .filters button span { font-size: 11px; opacity: 1; }
  .project-more { font-size: 13px; }
  .text-link { font-size: 14px; }
  .header nav a { font-size: 14px; }
  .language { font-size: 12px; }
  .language > span { color: var(--muted); }
  .brand-role { color: var(--muted); font-size: 11px; font-weight: 500; }
  .footer-inner > p { font-size: 12px; }
  .footer-inner > p > span { color: #e1e7ff; font-size: 12px; }
  .footer-inner button, .footer-inner a { font-size: 12px; }
  .linkedin-link, .copy-status { font-size: 14px; }
}

@media screen and (max-width: 900px) {
  .hero-stats > div { align-items: flex-start; }
  .hero-stats p { font-size: 12px; }
  .hero-stats p > span { font-size: 11px; }
}

@media screen and (max-width: 600px) {
  .section-heading > p { font-size: 16px; }
  .hero-copy > .eyebrow { font-size: 10px; letter-spacing: .025em; }
  .hero-name { font-size: 16px; }
  .hero-actions .button, .hero-actions .text-link { font-size: 12px; }
  .hero-stats p { max-width: none; }
  .proof-metric > p { font-size: 13px; }
  .proof-metric > p > span { font-size: 11px; }
  .proof-title .eyebrow { font-size: 9px; }
  .delivery-numbers span { font-size: 12px; }
  .teaching-proof span { font-size: 12px; }
  .project-stage { font-size: 10px; }
  .project-text .eyebrow { font-size: 10px; }
  .education > div { grid-template-columns: 1fr; }
  .education h4 { font-size: 15px; }
  .education p { font-size: 14px; }
  .footer-inner { flex-direction: column; gap: 14px; }
  .footer-inner > p > span { max-width: none; }
  .footer-inner > div { flex-direction: row; gap: 25px; align-items: center; }
  .footer-inner button, .footer-inner a { min-height: 44px; }
  .dialog-body { padding-inline: 22px; }
  .dialog-top .eyebrow { font-size: 10px; }
  .dialog-source { font-size: 13px; }
}

/* Reading-first typography: clear body text and a calmer hierarchy. */
@media screen {
  :root { --muted: #20283b; }
  body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 18px; font-weight: 400; }
  h1, h2, h3, h4 { font-family: Manrope, Arial, sans-serif; }
  .section-heading { display: block; }
  .section-heading h2 { font-size: 42px; line-height: 1.18; letter-spacing: -.035em; }
  .section-heading > p { color: var(--muted); font-size: 20px; line-height: 1.6; max-width: 760px; margin-top: 18px; }
  .project-text > p:not(.eyebrow), .timeline-content > p:last-child, .teaching-inner > p, .current-inner div > p, .approach-grid p, .project-dialog h3 + p, .approach-points li, .project-dialog .dialog-intro { color: var(--muted); font-size: 18px; line-height: 1.65; font-weight: 400; }
  .hero-intro, .expertise-item p, .contact-intro { color: #f5f6ff; font-size: 18px; line-height: 1.65; font-weight: 400; }
  .hero-intro { font-size: 20px; }
  .expertise-section .section-heading > p { color: #f5f6ff; }
  .project-image { height: 220px; aspect-ratio: auto; }
  .project-image img { object-fit: contain; }
  .project:nth-child(1) .project-image, .project:nth-child(2) .project-image { background: #3045ff; }
  .project:nth-child(3) .project-image { background: #dcff59; }
  .project:nth-child(4) .project-image, .project:nth-child(5) .project-image { background: #e3e8ff; }
  .project:nth-child(6) .project-image { background: #11162d; }
  .project-text h3, .timeline-content h3 { font-size: 26px; line-height: 1.28; letter-spacing: -.025em; }
  .project-text > p:not(.eyebrow) { max-width: 60ch; }
  .project-more { font-size: 16px; min-height: 44px; }
  .eyebrow, .mono, .project-text .eyebrow, .dialog-top .eyebrow, .delivery > .eyebrow { font-size: 13px; }
  .project-text .eyebrow { color: var(--muted); }
  .timeline-role { font-size: 16px; line-height: 1.6; }
  .timeline-date, .education .mono { font-size: 13px; }
  .education h4 { font-size: 17px; }
  .education p { font-size: 16px; }
  .tags li, .filters button { font-size: 14px; }
  .project-dialog .tags li { color: var(--ink); }
  .hero-stats p, .delivery-numbers span, .teaching-proof span { font-size: 14px; }
  .hero-stats p > span, .proof-metric > p > span { font-size: 12px; }
  .proof-metric > p { font-size: 14px; }
  .header nav a, .text-link, .button { font-size: 15px; }
  .language > span { color: var(--muted); }
  .footer-inner > p, .footer-inner button, .footer-inner a { font-size: 14px; }
}
@media screen and (max-width: 600px) {
  .section-heading h2 { font-size: 34px; }
  .section-heading > p, .hero-intro { font-size: 18px; }
  .project-image { height: 170px; }
  .project-text h3 { font-size: 24px; }
  .hero-actions .button, .hero-actions .text-link { font-size: 14px; }
  .hero-stats p { font-size: 12px; max-width: none; }
  .hero-stats p > span { font-size: 11px; }
  .education > div { grid-template-columns: 1fr; }
  .timeline-role { max-width: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-inner > div { flex-direction: row; }
}


/* Selected work: compact editorial rows with supporting illustrations. */
@media screen {
  .project-grid { display:block; border-top:1px solid #c8cee0; }
  .project { border-bottom:1px solid #c8cee0; }
  .project-open { display:grid; grid-template-columns:170px minmax(0,1fr) 36px; gap:30px; align-items:center; width:100%; padding:24px 0; color:inherit; text-decoration:none; }
  .project-image { width:170px; height:112px; aspect-ratio:auto; }
  .project-image img { object-fit:contain; }
  .project-number { top:8px; left:8px; font-size:10px; }
  .project-text { padding:0; }
  .project-text h3 { margin-top:8px; }
  .project-text > p:not(.eyebrow) { margin-top:7px; }
  .project-more { margin-top:8px; min-height:0; }
  .project-row-arrow { width:36px; height:36px; border:1px solid #adb7d2; border-radius:50%; display:grid; place-items:center; }
  .project-row-arrow svg { width:17px; }
  .project-open:hover .project-row-arrow { background:#dcff59; border-color:#dcff59; }
  .project-open:focus-visible { outline:3px solid #3045ff; outline-offset:3px; }
  .detail-header { border-bottom:1px solid #d5d9e5; }
  .detail-header .container { min-height:92px; display:flex; align-items:center; justify-content:space-between; gap:20px; }
  .detail-header a { text-decoration:none; font-size:15px; font-weight:700; }
  .detail-brand { font-family:Manrope,sans-serif; font-size:19px!important; }
  .detail-brand span { display:block; color:#4d5871; font:12px sans-serif; margin-top:4px; }
  .detail-main { padding-block:70px 90px; }
  .detail-lead { display:grid; grid-template-columns:minmax(0,1fr) 270px; align-items:center; gap:70px; margin-top:28px; }
  .detail-lead h1 { font-size:clamp(42px,5vw,68px); max-width:800px; margin-top:20px; }
  .detail-stage { font-size:13px; text-transform:uppercase; letter-spacing:.08em; color:#4b5874; }
  .detail-intro { font-size:21px; line-height:1.65; max-width:740px; margin-top:24px; }
  .detail-image { background:#e3e8ff; padding:12px; }
  .detail-image img { width:100%; display:block; }
  .detail-content { max-width:820px; margin-top:70px; border-top:1px solid #c8cee0; }
  .detail-content section { display:grid; grid-template-columns:200px 1fr; gap:24px; padding:28px 0; border-bottom:1px solid #c8cee0; }
  .detail-content h2 { font-size:20px; }
  .detail-content p,.detail-content li { font-size:17px; line-height:1.7; }
  .detail-content .approach-points li:first-child { margin-top:0; }
  .detail-tags { display:flex; flex-wrap:wrap; gap:8px; list-style:none; padding:0; margin:0; }
  .detail-tags li { border:1px solid #aeb8d1; padding:5px 10px; font-size:14px; }
  .detail-source { grid-column:2; margin-top:8px; }
  .detail-back { display:inline-block; margin-top:40px; font-weight:700; }
}
@media screen and (max-width:600px) {
  .project-open { grid-template-columns:86px minmax(0,1fr); gap:16px; align-items:start; padding:21px 0; }
  .project-image { width:86px; height:75px; }
  .project-number { font-size:8px; top:5px; left:5px; }
  .project-row-arrow { display:none; }
  .project-text h3 { font-size:21px; }
  .project-text > p:not(.eyebrow) { font-size:16px; }
  .project-more { font-size:14px; }
  .detail-header .container { min-height:76px; }
  .detail-header a { font-size:13px; }
  .detail-main { padding-block:45px 65px; }
  .detail-lead { grid-template-columns:1fr; gap:25px; }
  .detail-lead h1 { font-size:39px; }
  .detail-intro { font-size:18px; }
  .detail-image { max-width:180px; }
  .detail-content { margin-top:45px; }
  .detail-content section { grid-template-columns:1fr; gap:12px; }
  .detail-source { grid-column:1; }
}
