/* A single, font-independent icon language on every device. */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.ui-icon { display: inline-block; width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.button > span:last-child, .product-link > span:last-child, .external-link > span:last-child { display: inline-flex; align-items: center; justify-content: center; }
.play-symbol .ui-icon, [data-chart-symbol] .ui-icon { width: 18px; height: 18px; }
.pattern-check .ui-icon { width: 14px; height: 14px; }
.details-plus { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; }
.guide-experience-link, .weave-footer a { display: inline-flex; align-items: center; gap: 14px; }
.guide-experience-link .ui-icon, .chapter-next-arrow .ui-icon { flex-shrink: 0; }
.weave-page .menu-toggle { cursor: pointer; }

@media (max-width: 1000px) {
  :root { --header-height: 82px; }
  html { scroll-padding-top: calc(var(--header-height) + 20px); }
  .site-header, .weave-page .site-header { position: sticky; top: 0; z-index: 60; height: var(--header-height); padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); gap: 12px; background: #171c1bf5; }
  .brand, .weave-page .brand { gap: 9px; }
  .brand-monogram, .weave-page .brand-monogram { width: 38px; height: 44px; }
  .brand-name, .weave-page .brand-name { font-size: 18px; letter-spacing: .14em; }
  .brand-name > span { font-size: 11px; letter-spacing: .22em; margin-top: 5px; }
  .header-actions, .weave-page .header-actions { gap: 8px; margin-left: auto; }
  .languages, .weave-page .languages { gap: 0; }
  .languages > span { display: none; }
  .languages button, .weave-page .languages button { display: grid; place-items: center; width: 32px; min-width: 32px; min-height: 44px; padding: 0; font-size: 14px; font-weight: 600; color: #afb8af; border-radius: 5px; }
  .languages button[aria-pressed="true"] { background: #c897651a; color: #e9c9a3; text-decoration: none; box-shadow: inset 0 -2px #c89765; }
  .menu-toggle, .weave-page .menu-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 44px; height: 44px; min-width: 44px; padding: 0; gap: 6px; border: 1px solid #f3f1eb30; border-radius: 6px; background: transparent; }
  .menu-toggle span, .weave-page .menu-toggle span { display: block; width: 20px; height: 1.5px; background: #f3f1eb; transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .mobile-nav, .weave-page .mobile-nav { position: fixed; top: var(--header-height); left: 0; right: 0; z-index: 59; max-height: calc(100dvh - var(--header-height)); overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 0; padding: 12px max(24px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); background: #171c1b; box-shadow: 0 24px 44px #0004; }
  .mobile-nav[hidden], .weave-page .mobile-nav[hidden] { display: none; }
  .mobile-nav a { min-height: 54px; padding: 14px 0; border-bottom: 1px solid #f3f1eb20; font-size: 16px; line-height: 1.55; }
  .mobile-nav a[aria-current] { color: #e9c9a3; }
  .mobile-nav a:last-child { margin-top: 8px; color: #e9c9a3; }
  .weave-page .mobile-nav a { padding: 14px 0; }
  .guide-toc { top: var(--header-height); }
}

@media (max-width: 600px) {
  body { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  .home-page .hero-copy { padding-top: 34px; }
  .home-page .hero-copy h1 { font-size: clamp(2.75rem, 11.2vw, 3.75rem); line-height: 1.12; }
  .home-page .hero-actions { display: grid; grid-template-columns: minmax(0,1fr); gap: 10px; align-items: stretch; }
  .home-page .hero-actions .button { justify-content: space-between; min-height: 54px; padding: 13px 20px; }
  .home-page .hero-actions .text-link { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 16px; margin: 0; border: 1px solid #f3f1eb30; text-decoration: none; }
  .home-page .hero-visual { margin-top: 0; height: clamp(225px, 63vw, 325px); }
  .home-page .hero-copy > p { max-width: none; line-height: 1.75; }
  .home-page .section-label { font-size: 12px; letter-spacing: .06em; flex-wrap: wrap; row-gap: 5px; }
  .home-page .contact-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .home-page .contact-buttons .button { min-width: 0; min-height: 52px; justify-content: space-between; gap: 12px; padding: 12px 14px; font-size: 14px; }
  .home-page .contact-card .phone { font-size: clamp(1.55rem, 7.3vw, 2.5rem); white-space: nowrap; letter-spacing: -.045em; }
  .material-detail { min-height: 44px; }
  .back-top { min-height: 44px; gap: 12px; }
  .back-top > span:last-child { min-width: 44px; height: 44px; }
  .footer-bottom { line-height: 1.7; }
  .guide-intro-copy { padding: 28px 6% 32px; }
  .guide-intro h1 { font-size: clamp(2.5rem, 10vw, 3.4rem); line-height: 1.14; }
  .guide-intro p { font-size: 16px; }
  .guide-experience-link { min-height: 48px; padding: 10px 0; font-size: 15px; line-height: 1.6; }
  .guide-toc > div { width: 88%; column-gap: 16px; }
  .guide-toc a { font-size: 14px; min-height: 48px; }
  .guide-content, .guide-contact { width: 88%; }
  .chapter-next { gap: 16px; }
  .chapter-next-arrow { min-width: 44px; min-height: 44px; display: grid; place-items: center; }
  .weave-heading h1 { font-size: clamp(2.25rem, 10vw, 3.1rem); }
  .weave-lead { font-size: 16px; line-height: 1.7; }
  .weave-heading { margin-left: 4px; margin-right: 4px; }
  .weave-stage { min-height: 350px; height: 48svh; }
  .scene-toolbar { top: 12px; left: 12px; right: 12px; gap: 6px; justify-content: flex-end; }
  .scene-toolbar button { display: grid; place-items: center; width: 44px; min-width: 44px; height: 44px; padding: 0; }
  .scene-toolbar #weave-expand { width: auto; min-width: 0; margin-right: auto; padding: 0 10px; font-size: 12px; line-height: 1.3; }
  .scene-toolbar .ui-icon { width: 20px; height: 20px; }
  .scene-legend { left: 15px; bottom: 38px; gap: 20px; font-size: 12px; }
  .scene-hint { left: 15px; right: 15px; bottom: 12px; max-width: none; font-size: 12px; text-align: left; }
  .studio-transport { grid-template-columns: minmax(0,1fr); padding: 16px 14px 10px; gap: 10px; }
  .playback-controls { justify-content: space-between; gap: 10px; }
  .weave-play { min-height: 48px; font-size: 14px; gap: 10px; }
  .play-symbol { width: 42px; height: 42px; }
  .speed-control select, .light-option select { min-height: 44px; font-size: 16px; }
  .timeline-meta { grid-column: 1; grid-row: auto; flex-direction: row; max-width: none; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; text-align: left; }
  .weave-timeline button { min-height: 52px; font-size: 13px; }
  .weave-controls { padding: 20px 16px; }
  .swatches { grid-template-columns: repeat(2,44px); }
  .swatches button, .custom-colour { width: 44px; height: 44px; }
  .focus-buttons button, .view-presets button { min-height: 44px; }
  .separate-control { min-height: 48px; }
  .weave-stage-copy p { font-size: 16px; }
  .weave-footer p { font-size: 13px; line-height: 1.7; }
  .weave-footer a { min-height: 44px; font-size: 15px; }
  .studio-shell.is-expanded .studio-close { top: max(12px, env(safe-area-inset-top)); }
}

@media (max-width: 360px) {
  .home-page .contact-buttons { grid-template-columns: 1fr; }
  .home-page .hero-copy h1 { font-size: 2.7rem; }
  .scene-toolbar { flex-wrap: wrap; }
  .scene-toolbar #weave-expand { flex-basis: 100%; min-height: 36px; height: 36px; }
  .weave-stage { min-height: 380px; }
}
@media (max-height: 560px) and (max-width: 1000px) {
  :root { --header-height: 70px; }
  .guide-toc { position: relative; top: auto; }
  .studio-shell.is-expanded .weave-stage { min-height: 300px; }
}
@media (prefers-reduced-motion: reduce) { .menu-toggle span { transition: none; } }
