/* Journey now has its own section beneath the project collection. */
.journey-section { margin: 22px 2.45%; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #03101a; }
.journey-section .journey { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5px 30px; border: 0; padding: 0; margin: 0; }
.journey-section .journey > p, .journey-section .journey h2 { grid-column: 1; }
.journey-section .journey-video { grid-column: 2; grid-row: 1 / 5; height: 180px; }
.journey-section .journey-caption { grid-column: 2; }
.journey-section .cv-button { grid-column: 1; justify-self: start; margin-top: 12px; }
.journey-player { grid-column: 2; grid-row: 1 / 6; width: 100%; max-width: 560px; aspect-ratio: 16 / 9; align-self: center; justify-self: end; overflow: hidden; border: 1px solid #17415c; border-radius: 14px; background: #020b12; }
.journey-player video { display: block; width: 100%; height: 100%; object-fit: contain; }
.journey-section .journey-player { aspect-ratio: 9 / 16; max-width: 270px; justify-self: center; }
.facts .fact:nth-child(4) p { white-space: normal; line-height: 1.4; }
.cv-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
@media (min-width: 1051px) { .projects-layout { grid-template-columns: 17.18% repeat(3, minmax(0, 1fr)); } }
/* Mobile layout uses document flow instead of the desktop hero overlays. */
@media (max-width: 900px) {
  html { scroll-padding-top: 16px; }
  .header { position: relative; height: 66px; padding: 0 16px; gap: 10px; background: #020b12; }
  .brand { gap: 8px; font-size: clamp(14px, 3.8vw, 18px); min-width: 0; }
  .brand-mark { width: 34px; height: 35px; }
  .navigation, .theme-switch { display: none; }
  .header-controls { gap: 8px; flex-shrink: 0; }
  .language-switch { height: 30px; }
  .language-switch span { font-size: 11px; padding: 7px 9px; }
  .menu-toggle { padding: 7px; }
  .menu-toggle svg { width: 23px; }
  .mobile-menu { top: 60px; right: 16px; }
  .hero { height: auto; overflow: visible; display: flex; flex-direction: column; gap: 0; padding: 0 16px 24px; }
  .hero-media { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 16 / 9; z-index: 0; overflow: hidden; border: 1px solid #17415c; border-radius: 16px; background: #03111c; box-shadow: 0 12px 35px #0085ff12; }
  .hero-media #hero-video { inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; mask-image: none; }
  .hero-media .hero-backdrop, .hero-media .hero-still { object-fit: cover; object-position: 100% 0; }
  .hero-shade { display: none; }
  .hero-copy { position: static; width: 100%; max-width: none; margin-top: 24px; }
  .hero .eyebrow { font-size: 10px; letter-spacing: 2px; }
  .hero h1 { font-size: clamp(27px, 6.7vw, 43px); line-height: 1.14; letter-spacing: -.7px; margin-bottom: 14px; overflow-wrap: anywhere; }
  .intro { font-size: 14px; line-height: 1.65; color: #d2dfed; }
  .desktop-break { display: none; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
  .hero-actions .button { width: 100%; min-width: 0 !important; min-height: 46px; padding: 11px 8px; gap: 8px; font-size: 15px; border-radius: 11px; white-space: normal; text-align: center; }
  .hero-actions svg { width: 20px; }
  .process-panel { position: static; width: 100%; min-width: 0; margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 8px 12px; border-radius: 14px; }
  .hero .process-item { flex-direction: row; text-align: left; min-width: 0; gap: 10px; padding: 13px 4px; border: 0; }
  .process-item:nth-child(-n+2) { border-bottom: 1px solid #143049; }
  .process-item svg { width: 25px; height: 25px; }
  .process-item div { min-width: 0; }
  .process-item h3 { font-size: 17px; }
  .process-item p { font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
  .quote { display: block; position: static; width: 100%; max-width: none; padding: 17px 20px; margin-top: 12px; border-radius: 14px; }
  .quote blockquote { font-size: 15px; line-height: 1.45; }
  .signature { font-size: 32px; }
  .replay { top: 12px; right: 28px; bottom: auto; z-index: 3; opacity: 1; padding: 9px; background: #031522db; }
  .capabilities { margin: 0 16px; padding: 12px; gap: 16px; flex-direction: column; min-width: 0; }
  .tech-list { width: 100%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; overflow: visible; padding: 0; }
  .tech { width: auto; min-width: 0; padding: 9px 2px; gap: 7px; }
  .tech span { font-size: 10px; }
  .tech-logo { width: 28px; height: 28px; }
  .service-list { border-left: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .service { min-width: 0; gap: 8px; padding: 13px 9px; }
  .service div { min-width: 0; }
  .service svg { width: 24px; height: 24px; }
  .service h3 { font-size: 14px; white-space: normal; overflow-wrap: anywhere; }
  .service p { font-size: 11px; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
  .projects-layout { display: grid; grid-template-columns: minmax(0, 1fr); margin: 28px 16px 20px; gap: 16px; }
  .projects-intro { display: block; padding: 0; margin-bottom: 5px; min-width: 0; }
  .projects-intro h2 { font-size: 34px; margin: 12px 0; }
  .projects-intro > p:not(.eyebrow) { max-width: none; margin-bottom: 17px; }
  .project-card { padding: 15px; min-width: 0; }
  .project-card h3 { font-size: 28px; overflow-wrap: anywhere; }
  .project-card > p { font-size: 13px; margin-bottom: 12px; }
  .project-card > img { height: auto; aspect-ratio: 2.6; object-fit: cover; }
  .category { white-space: normal; line-height: 1.4; }
  .tags { flex-wrap: wrap; gap: 6px; }
  .tags > span { font-size: 12px; padding: 4px 7px; }
  .journey { display: block; border: 0; margin: 8px 0 0; padding: 0; min-width: 0; }
  .journey-section { margin: 20px 16px; padding: 18px; }
  .journey-section .journey { display: block; }
  .journey-section .journey-video { height: auto; }
  .journey-player { margin-top: 20px; max-width: none; }
  .journey-section .journey-caption { margin-top: 9px; }
  .journey h2 { font-size: 28px; }
  .journey > p:not(.eyebrow) { font-size: 14px; margin: 10px 0 14px; }
  .journey-video { height: auto; aspect-ratio: 2.2; }
  .facts { margin: 0 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; padding: 18px 12px; }
  .fact { gap: 9px; padding: 0; min-width: 0; border: 0; }
  .fact div { min-width: 0; }
  .fact strong { font-size: 15px; overflow-wrap: anywhere; }
  .fact p { font-size: 11px; line-height: 1.5; white-space: normal; }
  .fact-icon { width: 35px; height: 35px; border-radius: 10px; }
  .fact-icon svg { width: 21px; }
  .fact:nth-child(4) { grid-column: 1 / -1; grid-row: auto; }
  footer { padding: 28px 20px; flex-wrap: wrap; gap: 16px; line-height: 1.6; }
  footer > span { max-width: 100%; }
  .footer-name { display: none; }
  dialog { padding: 24px 18px; max-height: 90dvh; overflow: auto; }
}
@media (max-width: 359px) {
  .header { padding: 0 12px; }
  .brand { font-size: 13px; gap: 6px; }
  .brand-mark { width: 28px; }
  .header-controls { gap: 3px; }
  .language-switch span { padding: 7px; }
  .hero-actions { grid-template-columns: 1fr; }
  .service-list { grid-template-columns: 1fr; }
  .tech-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
