/* Portfolio overview, guided paths, and readability. */
.hero-role { font-size: 12px; letter-spacing: 1px; max-width: 470px; }
.hero-intro { font-size: 16px; line-height: 1.8; }
.portfolio-overview { display: grid; grid-template-columns: .85fr 1.15fr; gap: 36px; padding: 32px; margin-bottom: 28px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(120deg, var(--accent-dim), var(--muted-surface) 55%); }
.overview-intro { display: flex; flex-direction: column; align-items: start; padding: 8px 0; }
.overview-intro h3 { margin: 18px 0 15px; font-size: clamp(24px, 2.3vw, 31px); line-height: 1.22; letter-spacing: -.85px; }
.overview-intro > p { font-size: 14px; line-height: 1.8; max-width: 350px; margin-bottom: 24px; }
.overview-guide { display: inline-flex; align-items: center; gap: 15px; color: var(--accent); font-size: 13px; padding-block: 12px; margin-top: auto; }
.overview-guide:hover { text-decoration: underline; text-underline-offset: 5px; }
.overview-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-width: 0; }
.overview-tile { display: flex; position: relative; flex-direction: column; align-items: start; min-width: 0; padding: 23px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .2s, background .2s; }
.overview-tile:hover { border-color: var(--faint); background: var(--surface-hover); }
.overview-number { display: block; font-size: 38px; font-weight: 500; letter-spacing: -1.4px; line-height: 1.1; margin-bottom: 16px; color: var(--text); }
.overview-number > span { font-size: 21px; vertical-align: top; padding-left: 2px; }
.overview-tile > strong { font-size: 13px; font-weight: 550; line-height: 1.5; }
.overview-tile > small { display: block; color: var(--muted); font-size: 11px; line-height: 1.7; margin-top: 6px; }
.overview-arrow { position: absolute; top: 20px; right: 20px; color: var(--faint); font-size: 18px; }
.overview-tile--accent { background: var(--accent-dim); }
.overview-tile--accent .overview-number, .overview-tile--accent .overview-arrow { color: var(--accent); }
.flagship-copy > p, .project-contribution p { font-size: 14px; }
.project-contribution > span, .flagship-copy .tag-list > span { font-size: 11px; }
.work-label { font-size: 10px; }
.preview-caption > span { font-size: 11px; }
.preview-caption p { font-size: 12px; max-width: 400px; }
.guided-demo { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.guided-demo > p { font-size: 12px; line-height: 1.75; margin: 10px 0 16px; }
.guided-scenarios { display: flex; flex-wrap: wrap; gap: 7px; }
.guided-scenarios a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; color: var(--text); font-size: 11px; line-height: 1.6; }
.guided-scenarios a:hover { border-color: var(--accent); }
.guided-scenarios a > span { margin-left: 3px; color: var(--muted); }
.scenario-dot { display: inline-block; width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; }
.scenario-dot--steady { background: #84b99a; }
.scenario-dot--risk { background: #d9b77d; }
.scenario-dot--empty { background: #d5918e; }
[data-theme="light"] .scenario-dot--steady { background: #39734c; }
[data-theme="light"] .scenario-dot--risk { background: #9a6d28; }
[data-theme="light"] .scenario-dot--empty { background: #a64545; }
.sample-card p, .expertise-card p, .career-content p, .career-content li { font-size: 14px; line-height: 1.8; }
.sample-skill, .career-date, .career-company, .expertise-card .tag-list > span { font-size: 11px; }
.evidence-context > p { font-size: 14px; }
.brand-project-header > p { font-size: 14px; }
.brand-project-caption h5 { font-size: 15px; }
.brand-project-card { transition: border-color .2s, transform .2s; }
.brand-project-card:hover { border-color: var(--faint); transform: translateY(-2px); }
.brand-gallery-controls { display: flex; justify-content: center; margin-top: 22px; }
.brand-gallery-controls button { display: inline-flex; justify-content: center; align-items: center; gap: 16px; min-height: 44px; padding: 12px 21px; border: 1px solid var(--line); border-radius: 100px; color: var(--accent); background: var(--surface); font-size: 12px; }
.brand-gallery-controls button:hover { border-color: var(--accent); }
.contact-purpose-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; width: min(810px, 100%); margin: 30px auto; text-align: left; position: relative; }
.contact-purpose { display: block; padding: 24px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.contact-purpose:hover { border-color: var(--faint); }
.contact-purpose > strong { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 17px 0 12px; font-size: 21px; font-weight: 500; letter-spacing: -.4px; }
.contact-purpose strong > span { color: var(--accent); }
.contact-purpose p { font-size: 14px; line-height: 1.8; margin-bottom: 0; }
.icon-button[hidden] { display: none; }
.nav-controls .icon-button { width: 44px; height: 44px; }
@media (max-width: 1050px) {
  .site-nav { gap: 16px; }
  .site-nav .nav-contact { padding-inline: 14px; margin-left: 0; }
  .site-header { padding-left: 22px; }
  .site-header .brand { font-size: 22px; }
  .portfolio-overview { gap: 24px; padding: 26px; }
  .overview-tile { padding: 19px; }
}
@media (max-width: 860px) {
  .portfolio-overview { grid-template-columns: 1fr; gap: 24px; }
  .overview-intro > p { max-width: 580px; }
  .overview-intro h3 br { display: none; }
  .overview-intro { padding: 0; }
  .overview-guide { padding-bottom: 0; }
}
@media (max-width: 620px) {
  .hero-role { font-size: 11px; letter-spacing: .6px; }
  .hero-intro { font-size: 15px; }
  .portfolio-overview { padding: 20px; border-radius: 18px; }
  .overview-intro h3 { font-size: 27px; }
  .overview-tile { padding: 16px; }
  .overview-number { font-size: 33px; margin-bottom: 14px; }
  .overview-arrow { top: 15px; right: 15px; font-size: 16px; }
  .overview-tile > strong { font-size: 12px; }
  .overview-tile > small { font-size: 11px; }
  .contact-purpose-grid { grid-template-columns: 1fr; }
  .contact-purpose { padding: 22px; }
  .contact-purpose > strong { font-size: 20px; }
  .nav-controls { margin-left: auto; gap: 0; }
  .site-header { padding-inline: 17px 9px; }
  .site-header .brand { font-size: 19px; }
}
@media (max-width: 370px) {
  .site-header { padding-inline: 13px 6px; }
  .site-header .brand { font-size: 17px; letter-spacing: -.6px; }
  .nav-controls .icon-button { width: 40px; height: 44px; }
  .portfolio-overview { padding: 17px; }
  .overview-tiles { gap: 9px; }
  .overview-tile { padding: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .overview-tile, .brand-project-card { transition: none; }
  .brand-project-card:hover { transform: none; }
}
@media print {
  .brand-gallery-controls, #portfolio-search-open { display: none; }
  .portfolio-overview, .contact-purpose { break-inside: avoid; }
}
