/* Final layout rules: viewport-aware desktop, natural document flow on mobile. */
:root { --header-height: 88px; }
html { overflow-x: clip; scroll-padding-top: calc(var(--header-height) + 16px); }
body { overflow-x: clip; }
.header { position: sticky; top: 0; z-index: 50; width: 100%; max-width: none; height: var(--header-height); padding: 0 clamp(20px,4vw,76px); gap: clamp(20px,2.5vw,48px); background: #fffffff5; border-bottom: 1px solid #0922410a; box-shadow: 0 3px 14px #09224106; }
.header .brand { flex-shrink: 0; }
.header nav { gap: clamp(20px,2.2vw,42px); }
.header nav a { transition: color 250ms ease, text-shadow 250ms ease; }
.header nav > a::after, .services-trigger::after { content: ''; position: absolute; left: 0; bottom: 3px; width: 100%; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform 250ms ease, box-shadow 250ms ease; }
.header nav a.active::after { width: 100%; transform: scaleX(1); }
.header nav a:is(:hover,:focus-visible,:active) { color: var(--orange); text-shadow: 0 0 14px #e9470828; }
.header nav a:is(:hover,:focus-visible,:active)::after { transform: scaleX(1); box-shadow: 0 2px 8px #e9470840; }
.nav-services { position: relative; }
.services-dropdown { position: absolute; top: 100%; right: 0; width: 285px; max-width: calc(100vw - 40px); padding: 10px 16px; background: #fff; border: 1px solid #f4e2d7; border-radius: 12px; box-shadow: 0 12px 28px #09224114; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 220ms ease, transform 220ms ease, visibility 220ms; }
.header .services-dropdown a { display: block; padding: 10px 0; font-size: 13px; line-height: 1.5; }
.nav-services.is-open .services-dropdown { opacity: 1; visibility: visible; transform: none; }
.hero-hd { width: calc(100% - 32px); max-width: 1880px; margin: 16px auto; padding: clamp(20px,3vw,48px); gap: clamp(24px,3vw,56px); align-items: center; border: 1.5px solid #ff5108; }
.mobile-hero-copy { padding: 0; gap: 0; }
.mobile-hero-copy .eyebrow { font-size: clamp(10px,1vw,17px); line-height: 1.5; }
.hero-hd .mobile-hero-copy h1 { font-size: clamp(44px,min(5.3vw,9svh),94px); line-height: 1.02; margin: clamp(12px,2svh,22px) 0; }
.mobile-hero-copy > p:not(.eyebrow) { font-size: clamp(14px,1.15vw,20px); line-height: 1.55; }
.mobile-hero-copy .button { margin-top: clamp(14px,2.4svh,24px); padding: 13px 20px; font-size: clamp(14px,1.1vw,19px); }
.mobile-hero-copy .hero-tagline { margin-top: 12px; font-size: 12px!important; }
.mobile-services { margin-top: 14px; gap: 6px; }
.mobile-services a { padding: 6px 9px; font-size: 11px; }
.hero-canvas { justify-self: center; width: 100%; max-width: calc((100svh - var(--header-height) - 48px) * 1022 / 868); aspect-ratio: 1022/868; margin: 0; }
.hero-hd .hero-art { animation: none; display: block; width: 100%; height: 100%; }
.scene-caption { padding: 9px 12px; }
.scene-caption strong { font-size: clamp(11px,1vw,16px); }
.scene-caption small { font-size: clamp(9px,.75vw,12px); }
@media (min-width: 901px) { .hero-hd { min-height: calc(100svh - var(--header-height) - 32px); padding-block: 6px; } }
@media (min-width: 1101px) { .hero-hd { grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: clamp(24px,2vw,40px); padding-right: 24px; } }
@media (max-width: 1100px) { .header { gap: 20px; padding-inline: 24px; } .header nav { gap: 20px; } .header .brand,.header .brand-vector { width: 160px; } }
@media (max-width: 900px) {
  :root { --header-height: 76px; }
  .header .menu { display: block; padding: 0; }
  .header > nav { display: none; position: absolute; top: 100%; left: 16px; right: 16px; padding: 18px 24px; background: #fff; border: 1px solid #f4e2d7; border-radius: 12px; box-shadow: 0 10px 24px #09224114; }
  .header > nav.open { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
  .services-dropdown { position: static; display: none; width: 100%; box-shadow: none; margin-top: 6px; }
  .nav-services.is-open .services-dropdown { display: flex; flex-direction: column; gap: 2px; }
  .hero-hd { padding: 26px; gap: 24px; }
  .hero-canvas { max-width: none; }
  .hero-hd .mobile-hero-copy h1 { font-size: clamp(40px,5.8vw,52px); }
}
@media (max-width: 700px) {
  .header { padding-inline: 18px; gap: 14px; }
  .header .brand,.header .brand-vector { width: 140px; }
  .header .button.small { display: none; }
  .hero-hd { width: calc(100% - 24px); margin: 12px auto; padding: 18px 20px; grid-template-columns: minmax(0,1fr); gap: 16px; }
  .hero-hd .mobile-hero-copy h1 { font-size: clamp(42px,11.5vw,68px); margin-block: 12px; }
  .mobile-hero-copy .eyebrow { font-size: 10px; }
  .mobile-hero-copy > p:not(.eyebrow) { font-size: 14px; line-height: 1.45; }
  .mobile-hero-copy .button { width: 100%; padding: 12px 10px; margin-top: 14px; }
  .mobile-hero-copy .hero-tagline { font-size: 11px!important; margin-top: 8px; }
  .mobile-services { margin-top: 10px; }
  .mobile-services a { font-size: 10px; padding: 5px 8px; }
  .hero-canvas { width: 100%; }
}
.dark-mode .services-dropdown,.dark-mode .header > nav.open { background: #0b1828; border-color: #27456b; }
@media (prefers-reduced-motion: reduce) { .header nav a,.header nav a::after,.services-dropdown { transition: none; } }

