/* Extends the original Alvista paper, tobacco and editorial type system. */
.header { gap: 22px; flex-wrap: wrap; padding-block: 20px; }
.header-tools { margin-left:auto; }
.nav { gap: 15px; order: 3; width: 100%; padding: 12px 0 3px; flex-wrap: wrap; }
.nav a { font-size:13px; }
.language-switch { border:0; padding:0; gap:3px; }
.lang-link { border:0; color:var(--body); padding:7px; min-height:40px; }
.lang-link[aria-current] { color:var(--accent-deep); font-weight:700; text-decoration:underline; text-underline-offset:6px; }
.hero h1 { font-size:clamp(34px,4vw,53px); max-width:950px; }
.hero { grid-template-columns:minmax(0,1fr) 175px; padding-top:55px; padding-bottom:50px; }
.hero-subtitle { max-width:900px; line-height:1.7; }
.page-hero h1 { font-size:clamp(32px,3.7vw,48px); }
.scene-photo { margin:0; }
.scene-photo img { display:block; width:100%; height:clamp(300px,38vw,550px); object-fit:cover; object-position:50% 53%; }
.scene-photo figcaption { padding-block:12px; color:var(--body); font-size:12px; line-height:1.6; }
.compact-photo img { height:clamp(320px,45vw,620px); }
.content-section { padding-top:40px; padding-bottom:65px; }
.content-section>.section-heading { margin-bottom:22px; }
.content-section>p,.intro>p { max-width:1000px; font-size:16px; line-height:1.85; }
.intro .text-link { margin-top:24px; }
.editorial-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; margin-top:28px; }
.editorial-card { background:var(--surface); padding:32px; min-width:0; display:flex; flex-direction:column; align-items:flex-start; }
.editorial-card h3,.editorial-card h2 { font-size:23px; line-height:1.35; margin:12px 0; }
.editorial-card p { line-height:1.8; font-size:15px; margin-bottom:25px; }
.editorial-card .text-link { margin-top:auto; padding-top:12px; }
.copy-block { padding:30px 0; border-bottom:1px solid var(--rule); }
.copy-block h2 { font-size:25px; margin-bottom:15px; line-height:1.4; }
.copy-block p,.copy-block li,.prose>p { font-size:16px; line-height:1.9; }
.copy-block ul { padding-left:22px; color:var(--body); }
.copy-block li { margin:10px 0; }
.prose { max-width:1080px; }
.prose>.text-link,.prose>.button { margin-top:26px; }
.scope-note { line-height:1.8; padding:22px; margin-bottom:20px; }
.journey-list { margin-top:35px; }
.journey-list li { grid-template-columns:90px 1fr; padding-bottom:25px; }
.journey-list p { line-height:1.8; }
.job-panel { padding:40px; background:var(--surface); }
.job-panel h2 { margin:20px 0; font-size:30px; line-height:1.35; }
.job-panel p { margin-bottom:20px; max-width:850px; line-height:1.8; }
.job-panel .button { margin-top:15px; }
.contact-info { margin:30px 0; }
.contact-info p { line-height:1.9; }
.footer { grid-template-columns:1.2fr 1fr 1.1fr; gap:30px; padding-top:50px; }
.footer-legal { grid-column:1/-1; }
.footer a,.footer button { overflow-wrap:anywhere; }
.footer-nav .text-link { padding:0; font-size:13px; }
.footer-nav .text-link span { display:none; }
.consent-dialog { width:min(650px,calc(100% - 32px)); padding:35px; border:1px solid var(--rule); color:var(--ink); background:var(--paper); max-height:90dvh; }
.consent-dialog::backdrop { background:rgb(20 22 20 / .45); }
.consent-dialog h2 { padding-right:30px; margin-bottom:16px; font-size:27px; }
.consent-dialog p { line-height:1.8; margin-bottom:16px; }
.consent-dialog>a { color:var(--accent-deep); text-decoration:underline; }
.cookie-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:25px; }
.cookie-actions .button { white-space:normal; min-height:46px; }
.dialog-close { font-size:30px; }
.status-note { line-height:1.7; white-space:normal; }
@media(max-width:900px) {
 .header { flex-wrap:nowrap; position:relative; gap:10px; }
 .wordmark { font-size:18px; }
 .menu-button { display:grid; }
 .header-tools { gap:6px; }
 .nav { display:none; position:absolute; top:100%; left:0; right:0; z-index:10; background:var(--paper); padding:20px 24px; border-bottom:1px solid var(--rule); width:auto; box-shadow:0 12px 24px #18191f12; }
 .nav.open { display:flex; flex-direction:column; align-items:flex-start; gap:0; }
 .nav a { padding:12px 0; min-height:44px; font-size:16px; }
 .nav .active::after { display:none; }
 .hero { grid-template-columns:1fr; }
 .hero-aside { display:none; }
}
@media(max-width:680px) {
 .header { min-height:75px; padding-block:13px; }
 .wordmark { font-size:16px; }
 .language-switch { gap:0; }
 .lang-link { padding:6px 5px; font-size:11px; }
 .icon-button { width:30px; }
 .header-tools { gap:2px; }
 .hero { padding-top:38px; padding-bottom:35px; gap:0; }
 .hero h1 { font-size:36px; line-height:1.17; }
 .hero-subtitle { font-size:16px; line-height:1.75; }
 .editorial-grid { grid-template-columns:1fr; gap:18px; }
 .editorial-card { padding:25px; }
 .editorial-card h3 { font-size:23px; }
 .content-section { padding-top:30px; padding-bottom:42px; }
 .section-heading h2 { font-size:29px; }
 .footer { display:grid; grid-template-columns:1fr; }
 .footer-legal { display:block; }
 .footer-legal p+p { margin-top:20px; }
 .job-panel { padding:25px; }
 .job-panel h2 { font-size:25px; }
 .consent-dialog { padding:27px 23px; }
 .consent-dialog h2 { font-size:24px; }
 .cookie-actions { flex-direction:column; }
 .journey-list li { grid-template-columns:65px 1fr; gap:12px; }
 .scene-photo img { height:320px; object-position:51% 50%; }
 .compact-photo img { height:350px; }
}
@media(prefers-reduced-motion:reduce) { html {scroll-behavior:auto;} * {transition:none!important;} }
.content-section:has(a[href="project-delivery.html"]) .editorial-card:nth-child(1) { background:linear-gradient(90deg,#eeece7 35%,#eeece7e8 60%,#eeece780),url('assets/alvista-technical-project.png') center/cover; }
.content-section:has(a[href="system-integration.html"]) .editorial-card:nth-child(2) { background:linear-gradient(90deg,#eeece7 35%,#eeece7ee 65%,#eeece7a0),url('assets/alvista-technical-systems.png') center/cover; }
.content-section:has(a[href="model-api.html"]) .editorial-card:nth-child(3) { background:linear-gradient(90deg,#eeece7 35%,#eeece7ee 65%,#eeece7a0),url('assets/alvista-ai-technology.png') center/cover; }
