/* Illustrated chapters. The landscape, characters and copy remain separate. */
.brand-mark { background: none; flex-shrink: 0; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; transform: none; }
.header .button { white-space: nowrap; }
.expertise-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.expertise-card { grid-column: span 3; position: relative; overflow: hidden; padding: 0 24px 26px; display: flex; flex-direction: column; }
.expertise-card:first-child { grid-column: span 6; }
.expertise-card:nth-child(2) { grid-column: span 6; background: radial-gradient(ellipse at 100% 0, #61374b55, transparent 80%), #0c1c30; }
.feature-card { min-height: 0; background: radial-gradient(ellipse at 90% 70%, #28566b88, transparent 70%), #0c2232; }
.expertise-media { display: grid; place-items: center; margin:-16px -70px 0px; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 50% 45%, #17394c, #081725 72%); }
.expertise-card:nth-child(-n+2) .expertise-media { height: clamp(235px, 25vw, 320px); }
.expertise-media img { width: 100%; height: 100%; object-fit: contain; }
.expertise-card .card-top { margin-bottom: 18px; }
.expertise-card .tags { margin-top: auto; }
.expertise-card:nth-child(n+3) { padding: 0 22px 24px; }
.expertise-card:nth-child(n+3) .expertise-media { margin-inline: -72px; }
.expertise-card:nth-child(n+3) h3 { font-size: 20px; }
.approach { background: #09192a; padding-bottom: 60px; }
.journey-stage { position: relative; isolation: isolate; min-height: 695px; margin: 0 -4vw; padding: 350px 4vw 42px; overflow: hidden; border: 1px solid #7798b126; border-radius: 12px; }
.journey-scenery { position: absolute; inset: 0; z-index: -2; background: #081626; overflow: hidden; }
.journey-background, .journey-rocks { position: absolute; inset: -8%; width: 116%; max-width: none; height: 116%; object-fit: cover; object-position: 64% 55%; }
.journey-background { filter: brightness(.77); }
.journey-rocks { z-index: 1; opacity: .86; object-position: center 70%; mask-image: linear-gradient(transparent 35%, black 70%); }
.journey-stage:after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(0deg, #071424 2%, #071424e0 33%, #0714240a 70%, #07142444); }
.journey-runner { position: absolute; width: clamp(155px, 18vw, 260px); left: 31%; top: 29%; z-index: 3; filter: drop-shadow(0 14px 16px #01091688); }
.journey-runner img { width: 100%; }
.journey-note { position: absolute; left: 6%; top: 35px; font-family: Georgia, serif; font-style: italic; font-size: 22px; max-width: 210px; color: #c9e0e9; line-height: 1.3; }
.journey-route { position: absolute; top: 245px; left: 4%; width: 92%; height: 130px; color: #66e5e8; opacity: .8; filter: drop-shadow(0 0 5px #55dadd88); pointer-events: none; }
.journey { margin-top: 0; gap: 42px; }
.journey:before { display: none; }
.step-marker { background: #072135; box-shadow: 0 0 22px #2bc3c137; margin-bottom: 14px; border-color: #64eef0; }
.step-animation { display: grid; place-items: center; height: 160px; margin: 0 0 20px; overflow: hidden; border: 1px solid #8bc6d42b; border-radius: 8px; background: #081725c9; backdrop-filter: blur(8px); }
.step-animation img { width: 100%; height: 100%; object-fit: contain; }
.journey h3 { font-size: 29px; }
.journey article>p:not(.step-label) { color: #c4d3de; }
.step-output { color: #b9d1df; }
.journey-foot { border: 0; margin-top: 30px; padding-top: 0; }
.about { grid-template-columns: 1.1fr 1fr; gap: 65px; }
.about-visual { height: 460px; background: #0b1b2d; border: 1px solid #8da5b52b; }
.about-visual>img { filter: none; object-fit: cover; object-position: center; }
.about-animation { position: absolute; z-index: 2; right: 17px; bottom: 55px; width: 180px; height: 135px; display: grid; place-items: center; overflow: hidden; border: 1px solid #d9f1f055; border-radius: 14px; background: #081725d9; box-shadow: 0 14px 35px #01081399; backdrop-filter: blur(8px); }
.about-animation img { width: 100%; height: 100%; object-fit: contain; }
.about-caption { z-index: 2; background: linear-gradient(transparent, #0b1b2d); left: 0; right: 0; bottom: 0; padding: 50px 25px 22px; }
.contact { isolation: isolate; padding-top: 105px; padding-bottom: 430px; background: #081629; }
.contact-landscape { position: absolute; z-index: -2; left: 0; right: 0; bottom: 0; height: 750px; overflow: hidden; }
.contact-landscape img { width: 100%; height: 122%; margin-top: -7%; max-width: none; object-fit: cover; object-position: center 66%; }
.contact-landscape:after { content: ''; position: absolute; inset: 0; background: linear-gradient(#081629 0, #081629d9 15%, #08162935 44%, transparent 70%); }
.contact form { background: #09192dde; border: 1px solid #a9cfe130; border-radius: 14px; padding: 32px; box-shadow: 0 20px 80px #010c2544; backdrop-filter: blur(10px); }
.contact-grid { align-items: start; gap: 85px; }
.contact-grid>div { padding-top: 25px; }
.contact h2 { font-size: clamp(44px, 4.6vw, 68px); }
.footer { position: relative; }
.footer .brand-mark { width: 35px; height: 35px; }
@media (min-width:761px) and (max-width:980px) {
  .header { min-height: 66px; }
  .menu-toggle { display: flex; align-items: center; gap: 10px; color: #fff; background: none; border: 0; padding: 10px; font-size: 14px; }
  .header nav { display: none; position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px; background: #0b1b2df5; border: 1px solid var(--line); border-radius: 16px; }
  .header nav.open { display: flex; }
  .header nav>a { padding: 14px 10px; font-size: 16px; }
  .header nav>.button { padding: 14px 20px; margin: 8px 0; }
}
@media(max-width:1100px) {
  .expertise-card { grid-column: span 6; }
  .expertise-card:first-child, .expertise-card:nth-child(2) { grid-column: span 6; }
  .contact-grid { gap: 40px; }
  .contact form { padding: 25px; }
  .about { gap: 35px; }
  .journey { gap: 30px; }
}
@media(max-width:760px) {
  .hero-intro br { display: block; }
  .expertise-card:first-child, .expertise-card:nth-child(2) { grid-column: span 12; }
  .expertise-card, .expertise-card:nth-child(n+3) { grid-column: span 6; padding: 0 18px 22px; }
  .expertise-media, .expertise-card:nth-child(n+3) .expertise-media { height: 165px; margin-inline: -18px; }
  .expertise-card:nth-child(-n+2) .expertise-media { height: 210px; }
  .journey-stage { min-height: 0; padding: 260px 24px 35px; margin: 0 -2vw; }
  .journey-background { object-position: 66%; }
  .journey-rocks { object-position: 70%; }
  .journey-stage:after { background: linear-gradient(0deg, #071424 0, #071424fa 62%, #07142408 88%); }
  .journey-runner { width: 145px; left: 42%; top: 145px; }
  .journey-note { top: 24px; left: 24px; font-size: 20px; max-width: 160px; }
  .journey-route { top: 190px; height: 60px; }
  .journey { gap: 32px; }
  .journey article { padding-left: 70px; }
  .step-animation { height: 105px; }
  .journey h3 { font-size: 26px; }
  .step-output { font-size: 11px; }
  .journey-foot .text-link { width: auto; }
  .about { grid-template-columns: 1fr; }
  .about-visual { height: auto; aspect-ratio: 4/3; }
  .about-animation { width: 140px; height: 105px; right: 12px; bottom: 48px; }
  .contact { padding: 65px 0 310px; }
  .contact-grid { gap: 30px; }
  .contact-grid>div { padding-top: 0; }
  .contact form { padding: 24px 20px; }
  .contact-landscape { height: 590px; }
  .contact-landscape img { object-position: 75% bottom; }
  .contact h2 br:nth-child(2) { display: initial; }
}
@media(max-width:420px) {
  .expertise-card:nth-child(n+3) { grid-column: span 12; }
  .expertise-media, .expertise-card:nth-child(n+3) .expertise-media { height: 190px; }
  .journey h3 { font-size: 24px; }
  .journey-stage { padding-inline: 18px; }
  .journey article { padding-left: 63px; }
}
@media(prefers-reduced-motion:reduce) { .journey-plane, .contact-plane { transform: none!important; } }
