/* A shared rhythm; each project keeps its own palette and character. */
.global-language-switch,
.page-language-switch {
  position: static; display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto; gap: 2px; min-height: 44px; padding: 0 3px;
  border: 1px solid currentColor; border-radius: 6px;
  background: transparent; color: #c4b6a0; font: 12px/1.4 Arial,sans-serif;
  letter-spacing: .06em; backdrop-filter: none;
}
.global-language-switch a,
.page-language-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 44px; color: inherit; text-decoration: none; }
.global-language-switch a.is-selected { color: #f1bb4b; }
.global-language-switch a:focus-visible,
.page-language-switch a:focus-visible { outline: 2px solid currentColor; outline-offset: -3px; }
.portfolio-home .hero--personal { grid-template-columns: 1.05fr 1fr; gap: 40px; padding-block: 56px; min-height: 600px; }
.portfolio-home .hero--personal h1 { font-size: clamp(42px,4.6vw,64px); line-height: 1.08; text-wrap: balance; }
.portfolio-home .hero-project-image { overflow: hidden; aspect-ratio: 1.65; }
.portfolio-home .hero-project-image img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.45); transform-origin: 50% 35%; }
.portfolio-home .hero-project-heading { padding: 18px 22px; }
.portfolio-home .button { font-size: 14px; letter-spacing: .02em; min-height: 48px; }
.portfolio-home .projects-section { padding-top: 72px; }
.portfolio-home .card-media { aspect-ratio: 16/10; }
.portfolio-home .card-preview--assembly > img { transform: scale(1.42); transform-origin: 50% 25%; }
.portfolio-home .card-preview--hermes > img { transform: scale(1.22); transform-origin: 45% 15%; }
.portfolio-home .card-content { padding: 26px; }
.portfolio-home .card-content h3 { line-height: 1.12; text-wrap: balance; }
.portfolio-home .card-contribution { line-height: 1.65; }
.showcase-shell .showcase-nav,
.hermes-showcase .hermes-nav { flex-wrap: wrap; gap: 16px 28px; padding-block: 16px; }
.showcase-shell .showcase-nav-links,
.hermes-showcase .hermes-nav-links { flex-wrap: wrap; gap: 14px 20px; }
.showcase-shell .showcase-brand img,
.hermes-showcase .hermes-brand img { width: 106px; height: 60px; }
.showcase-shell .showcase-hero,
.hermes-showcase .hermes-hero { grid-template-columns: 1fr 1.05fr; gap: 44px; min-height: 580px; padding-block: 64px; }
.showcase-shell .showcase-hero h1,
.hermes-showcase .hermes-hero h1 { font-size: clamp(44px,4.5vw,68px); line-height: 1.04; letter-spacing: -.05em; text-wrap: balance; }
.showcase-shell .showcase-lead { font-size: 17px; line-height: 1.7; color: #ccc5ce; }
.showcase-shell .showcase-actions { flex-wrap: wrap; gap: 14px; }
.showcase-shell .showcase-button { font-size: 14px; line-height: 1.5; letter-spacing: .015em; }
.product-evidence { min-width: 0; margin: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.22); border-radius: 12px; background: #111116; box-shadow: 0 24px 70px rgba(0,0,0,.2); }
.product-evidence .evidence-image { display: block; overflow: hidden; aspect-ratio: 1.6; border-bottom: 1px solid rgba(255,255,255,.15); }
.product-evidence .evidence-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.assembly-evidence .evidence-image img { object-fit: contain; transform: scale(1.45); transform-origin: 50% 35%; }
.product-evidence figcaption { padding: 22px 24px; }
.product-evidence figcaption > span { font: 12px/1.5 Arial,sans-serif; letter-spacing: .1em; color: #ff987f; }
.product-evidence figcaption strong { display: block; margin-top: 10px; font-size: 23px; line-height: 1.3; }
.product-evidence figcaption p { margin: 10px 0 0; font: 14px/1.6 Arial,sans-serif; color: #c4bec8; }
.hermes-evidence { background: #0b2626; border-color: #42605b; }
.hermes-evidence .evidence-image { aspect-ratio: 2.2; }
.hermes-evidence .evidence-image img { object-position: center top; }
.hermes-evidence figcaption > span { color: #ffce76; }
.hermes-evidence blockquote { margin: 14px 0; color: #ffe6cb; font: 23px/1.4 Georgia,serif; }
.hermes-evidence figcaption p { color: #c1ccc6; }
.cv-page .cv-header { height: auto; min-height: 88px; flex-wrap: wrap; gap: 12px; padding-block: 8px; }
.cv-page .cv-header nav { align-items: center; flex-wrap: wrap; gap: 18px; font-size: 14px; }
.cv-page .cv-hero { padding-block: 64px; gap: 30px; flex-wrap: wrap; }
.cv-page .cv-hero h1 { font-size: clamp(54px,7vw,88px); line-height: 1.05; }
.cv-page .cv-hero-meta { font-size: 14px; white-space: normal; flex-wrap: wrap; }
.cv-page .cv-section { padding-block: 60px; gap: 40px; }
.cv-page .cv-timeline article p:last-child,
.cv-page .cv-projects span,
.cv-page .cv-bottom-grid p { font-size: 16px; line-height: 1.7; color: #c1b9ae; }
.cv-page .cv-date,.cv-page .cv-company { font-size: 14px; line-height: 1.5; letter-spacing: .02em; }
.cv-page .cv-cert-grid { grid-template-columns: 1fr; gap: 8px; }
.cv-page .cv-cert-grid h3,.cv-page .cv-cert-grid article:nth-child(n+3) h3 { font: 18px/1.6 Arial,sans-serif; max-width: 68ch; }
.cv-page .cv-cert-grid p,.cv-page .cv-cert-grid span { font-size: 14px; line-height: 1.5; letter-spacing: .02em; }
.cassandra-page .nav { height: auto; min-height: 88px; flex-wrap: wrap; gap: 14px; padding-block: 12px; }
.cassandra-page .nav-actions { flex-wrap: wrap; gap: 14px; }
.cassandra-page .hero { min-height: 590px; padding-block: 52px; gap: 34px; }
.cassandra-page .hero h1 { font-size: clamp(44px,4.8vw,68px); line-height: 1.06; letter-spacing: -.05em; }
.cassandra-page .hero h1 em { color: #d3c8bc; }
.cassandra-page .hero-stage { position: relative; }
.cassandra-page .illustration-label { position: absolute; inset: 0 0 auto; text-align: center; font: 12px/1.5 Arial,sans-serif; color: #c2b8b2; }
.ovg-page .site-header { height: auto; min-height: 88px; flex-wrap: wrap; gap: 14px; padding-block: 10px; }
.ovg-page .site-header > div { flex-wrap: wrap; }
.ovg-page .page-language-switch { color: #49443c; }
.ovg-page .hero { min-height: 0; padding-block: 44px; }
.ovg-page .hero h1 { font-size: clamp(48px,5.6vw,84px); line-height: .98; }
.ovg-page .hero-text { margin-left: 0; }
.ovg-page .hero-visual { min-height: 340px; height: 380px; }
.ovg-page .workspace { padding-top: 40px; }
@media(max-width:1000px) {
  .showcase-shell .showcase-nav,.hermes-showcase .hermes-nav { align-items: flex-start; }
  .showcase-shell .showcase-nav-links,.hermes-showcase .hermes-nav-links { gap: 12px; }
}
@media(max-width:900px) {
  .portfolio-home .hero--personal,.showcase-shell .showcase-hero,.hermes-showcase .hermes-hero { grid-template-columns: 1fr; min-height: 0; gap: 32px; padding-block: 40px; }
  .portfolio-home .hero--personal h1 { font-size: clamp(38px,7.4vw,62px); }
  .showcase-shell .showcase-hero h1,.hermes-showcase .hermes-hero h1 { font-size: clamp(40px,7vw,62px); }
  .product-evidence { width: 100%; max-width: 680px; justify-self: center; }
  .cassandra-page .hero { min-height: 0; }
}
@media(max-width:600px) {
  .portfolio-home .site-header { gap: 6px 14px; }
  .portfolio-home .site-header nav { order: 4; width: 100%; justify-content: space-between; gap: 8px; }
  .portfolio-home .site-header nav a { padding-block: 12px; }
  .portfolio-home .site-header nav a::after { bottom: 3px; }
  .portfolio-home .language-switch { margin-right: 0; }
  .portfolio-home .hero-actions { flex-wrap: wrap; }
  .portfolio-home .card-content { padding: 22px 18px; }
  .showcase-shell .showcase-nav-links,.hermes-showcase .hermes-nav-links { width: 100%; justify-content: space-between; }
  .showcase-shell .showcase-nav-links .portfolio-link,.hermes-showcase .hermes-nav-links .hermes-portfolio-link { display: inline-flex; }
  .showcase-shell .showcase-nav-links .nav-cta,.hermes-showcase .hermes-nav-links .hermes-demo-link { display: none; }
  .showcase-shell .showcase-actions { align-items: stretch; }
  .showcase-shell .showcase-actions a { flex: 1 1 180px; }
  .product-evidence figcaption { padding: 20px; }
  .hermes-evidence blockquote { font-size: 21px; }
  .cv-page .cv-hero { padding-block: 40px; }
  .cv-page .cv-section { padding-block: 44px; gap: 24px; }
  .cv-page .cv-hero-meta { margin-top: 24px; }
  .cassandra-page .nav { justify-content: space-between; }
  .cassandra-page .nav-actions { gap: 12px; }
  .cassandra-page .nav-cta { display: none; }
  .cassandra-page .hero h1 { font-size: clamp(40px,10vw,56px); }
  .cassandra-page .hero-stage { margin-top: 16px; }
  .ovg-page .site-header > div { width: 100%; justify-content: space-between; gap: 10px; }
  .ovg-page .site-header .ghost-button { display: inline-flex; font-size: 12px; padding: 10px; }
  .ovg-page .hero { padding: 32px 24px; }
  .ovg-page .hero-visual { min-height: 300px; height: 340px; }
}
@media(prefers-reduced-motion:reduce) {
  .cassandra-page .reveal { opacity: 1; transform: none; transition: none; }
}
@media(max-width:760px) {
  .showcase-shell .showcase-nav-links .global-language-switch a,
  .hermes-showcase .hermes-nav-links .global-language-switch a { display: inline-flex; }
  .showcase-shell .showcase-brand span { display: inline; font-size: 18px; }
  .showcase-shell .showcase-actions { flex-direction: row; }
  .showcase-shell .showcase-actions a { min-height: 48px; }
}
