/* Shared responsive refinements for the three public pages. */
:root { --orange: #b94b10; }
html { scroll-padding-top: 100px; }
img, canvas, svg { max-width: 100%; }
.wrap > *, .form-grid > *, .global-panel > *, .builder-layout > * { min-width: 0; }
h1, h2, h3 { overflow-wrap: anywhere; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #b94b10; outline-offset: 4px;
}
.btn, .navcta { min-height: 48px; font-size: 11px; line-height: 1.5; text-align: center; }
.navlinks a[aria-current="page"] { color: var(--orange); text-decoration: underline; text-underline-offset: 6px; }
.menu { width: 48px; height: 48px; padding: 0; color: var(--ink); cursor: pointer; flex-shrink: 0; }
.skip-link { position: fixed; top: 8px; left: 12px; padding: 14px 20px; background: #fff; color: #17191b; z-index: 100; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.builder-intro h1 { font-size: clamp(38px,5vw,58px); line-height: .98; letter-spacing: -.06em; text-transform: uppercase; margin: 15px 0 20px; }
.builder-form input, .builder-form select, .builder-form textarea, .country-control select { font-size: 16px; min-height: 48px; }
.builder-form label, .country-control label { font-size: 11px; line-height: 1.6; }
.builder-form label { color: #535c61; }
.form-hint, .builder-disclaimer { font-size: 12px; color: #626b70; }
.footerlinks a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 1100px) {
  .navlinks { display: none; position: absolute; top: 84px; left: 0; right: 0; background: #fff; padding: 12px 24px 24px; flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); box-shadow: 0 18px 24px #17191b12; max-height: calc(100dvh - 120px); overflow-y: auto; }
  .navlinks.open { display: flex; }
  .navlinks > a { display: flex; align-items: center; min-height: 48px; padding: 14px 0; font-size: 12px; line-height: 1.6; border-bottom: 1px solid var(--line); }
  .navcta { display: none; }
  .menu { display: block; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 88px; }
  .wrap { width: calc(100% - 36px); }
  .topline { font-size: 9px; letter-spacing: .08em; line-height: 1.6; }
  .topline .wrap span:last-child { display: none; }
  .nav { height: 74px; gap: 12px; }
  .navlinks { top: 74px; padding-inline: 18px; }
  .brand { gap: 10px; }
  .brandname { font-size: 10px; }
  .brandname small { font-size: 7px; letter-spacing: .12em; }
  .section { padding: 56px 0; }
  .sectionhead { display: block; margin-bottom: 28px; }
  .sectionhead p { margin-top: 20px; }
  .section h2, .story-heading h2, .founder-copy h2, .builder-intro h1 { font-size: clamp(32px,9vw,48px); line-height: 1.03; }
  .hero-new { min-height: 0; }
  .hero-new-content { padding: 64px 0 48px; }
  .hero-new h1 { font-size: clamp(48px,13.5vw,76px); line-height: .93; }
  .hero-new p { font-size: 16px; line-height: 1.7; }
  .hero-shade { background: linear-gradient(90deg,#0a0d0fee,#0a0d0fa8); }
  .hero-signature { margin-top: 36px; gap: 14px; flex-wrap: wrap; line-height: 1.8; }
  .actions, .global-actions, .form-actions { flex-direction: column; align-items: stretch; }
  .actions .btn, .global-actions .btn, .form-actions .btn { width: 100%; }
  .global-panel { padding: 20px 16px; gap: 20px; }
  .global-copy h3 { font-size: clamp(28px,8vw,40px); }
  .globe-stage { min-height: 260px; }
  .globe-caption { left: 0; right: 0; bottom: 8px; font-size: 8px; text-align: center; line-height: 1.8; }
  .drag-hint { display: block; }
  .factory-photo, .factory-photo img { min-height: 0; }
  .factory-photo img { height: auto; max-height: 420px; }
  .factory-copy h3 { font-size: 40px; }
  .story-topline { gap: 16px; flex-wrap: wrap; }
  .story-heading { padding: 28px 0; }
  .story-image { height: 300px; }
  .founder-portrait { min-height: 310px; }
  .catalogs, .contactgrid, .form-grid { grid-template-columns: 1fr; }
  .catalog { min-height: 260px; padding: 24px; }
  .catalog h3 { font-size: 38px; }
  .builder-form { padding: 20px 16px; }
  .form-top { flex-direction: column; align-items: flex-start; gap: 10px; line-height: 1.7; }
  .form-field.full { grid-column: auto; }
  .footerrow { display: block; }
  .footerlinks { margin-top: 22px; gap: 4px 20px; }
  .copyright { display: block; line-height: 2; }
  .copyright span { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
/* A locally textured sphere, with direct manipulation confined to the globe. */
.earth-wrap canvas { touch-action: none; cursor: grab; border-radius: 50%; }
.earth-wrap.is-dragging canvas { cursor: grabbing; }
.earth-wrap.earth-ready .earth-svg { visibility: hidden; }
.earth-wrap.earth-ready { filter: drop-shadow(0 0 8px #84b6d944) drop-shadow(0 18px 24px #0008); }
.earth-wrap canvas:focus-visible { outline: 3px solid #ef8a50; outline-offset: 6px; }
.globe-stage { padding-bottom: 44px; }
.globe-caption { bottom: 8px; }
@media (max-width: 600px) {
  .globe-stage { min-height: 300px; }
}
