/* Motion layer for the owner's second DESIGN.md and video reference. */
html { scroll-padding-top: 110px; }
.site-header { position: absolute; inset: 0 0 auto; background: transparent; }
.header-inner { min-height: 104px; }
.header-cta { background: none; color: white; padding-inline: 0; }
.header-cta:hover { color: var(--spark); background: none; }
.story { position: relative; background: black; overflow-anchor: none; }
.scene-stage { position: relative; isolation: isolate; }
.scene-canvas-wrap { display: none; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.scene-canvas-wrap canvas { display: block; width: 100%; height: 100%; }
.scene-canvas-wrap canvas[hidden] { display: none; }
.story-panel { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 36px; min-height: 760px; padding-block: 120px 60px; }
.story-copy { max-width: 570px; min-width: 0; }
.story-copy h1 { font-size: clamp(78px,8.3vw,113px); line-height: .99; letter-spacing: -.04em; font-weight: 400; margin: 0 0 30px; }
.story-copy h2 { font-size: clamp(66px,6.8vw,96px); line-height: 1.04; margin-bottom: 30px; }
.story-copy p:not(.eyebrow) { max-width: 435px; font-size: 18px; line-height: 1.5; font-weight: 200; }
.story-copy .eyebrow { margin-bottom: 30px; }
.story-copy>.text-link { margin-top: 30px; }
.story-panel-right .story-copy { grid-column: 2; grid-row: 1; }
.story-panel-right .static-scene-art { grid-column: 1; grid-row: 1; }
.static-scene-art { display: block; width: 100%; min-width: 0; overflow: visible; }
.story-controls { display: none; }
.motion-ready:not(.motion-static) .story { height: 340svh; min-height: 2200px; }
.motion-ready:not(.motion-static) .scene-stage { position: sticky; top: 0; height: 100svh; min-height: 550px; overflow: clip; }
.motion-ready:not(.motion-static) .scene-canvas-wrap { display: block; }
.motion-ready:not(.motion-static) .story-panels { position: absolute; inset: 0; height: 100%; }
.motion-ready:not(.motion-static) .story-panel { position: absolute; inset: 0 48px; min-height: 0; height: 100%; padding-block: 100px; grid-template-columns: 1fr 1fr; gap: 0; opacity: var(--panel-opacity,0); transform: translateY(var(--panel-y,0px)); pointer-events: none; will-change: opacity,transform; }
.motion-ready:not(.motion-static) .story-panel:first-child { --panel-opacity: 1; }
.motion-ready:not(.motion-static) .story-panel .story-copy { pointer-events: auto; }
.motion-ready:not(.motion-static) .story-panel[inert] .story-copy { pointer-events: none; }
.motion-ready:not(.motion-static) .static-scene-art { display: none; }
.motion-ready:not(.motion-static) .story-controls { display: flex; align-items: center; justify-content: space-between; gap: 24px; position: absolute; bottom: 24px; left: 0; right: 0; font-size: 11px; color: var(--ash); }
.story-controls nav { display: flex; gap: 30px; }
.story-controls a { display: inline-flex; min-height: 44px; align-items: center; gap: 10px; font-size: 11px; }
.story-controls nav a span { font-size: 10px; color: var(--ash); }
.story-controls nav a[aria-current] { color: white; }
.story-controls nav a[aria-current] span { color: #b095ff; }
.story-controls a:hover { color: white; }
.scroll-cue { display: flex; align-items: center; gap: 12px; }
.scroll-cue i { width: 1px; height: 30px; background: var(--ash); transform-origin: center top; animation: scroll-cue 2s ease-in-out infinite; }
.story-skip { color: var(--silver); margin-right: 150px; }
.story-skip span { font-size: 18px; margin-left: 8px; }
@keyframes scroll-cue { 0%,100% { transform: scaleY(.55); opacity: .4; }50% { transform: scaleY(1); opacity: 1; } }
#motion-toggle.motion-control { position: fixed; z-index: 40; bottom: 18px; right: 24px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 10px 14px; border: 1px solid #555; border-radius: 24px; background: black; color: var(--silver); font-size: 11px; font-weight: 400; letter-spacing: 0; }
#motion-toggle.motion-control:hover { border-color: #999; color: white; }
.motion-indicator { width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--iris); }
#motion-toggle[aria-pressed=true] .motion-indicator { background: var(--ash); }
.motion-ready:not(.motion-static) .reveal-ready { opacity: 0; transform: perspective(1000px) translate3d(0,42px,0) rotateX(5deg); transition: opacity .8s ease,transform 1s cubic-bezier(.2,.7,.2,1); transition-delay: var(--reveal-delay,0ms); }
.motion-ready:not(.motion-static) .reveal-ready.is-visible { opacity: 1; transform: perspective(1000px) translate3d(0,0,0) rotateX(0deg); }
.role-visual { transform: perspective(900px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg)); transition: transform .35s ease; transform-style: preserve-3d; }
.role-visual>span { transform: translateZ(24px); }
.team-card .role-visual { height: auto; aspect-ratio: 1; }
.team-card .role-visual img { object-position: 50% 25%; }
.team-card[data-team-id="network-engineer"] .role-visual img { object-position: center; }
.team-card[data-team-id="engineering-consultant"] .role-visual img { object-fit: contain; object-position: center; }
a[href^="mailto:"] { overflow-wrap: anywhere; }
.contact-email { max-width: 100%; }
.contact-email-address { min-width: 0; }
.connection-art { transform: perspective(1000px) rotateY(var(--art-y,0deg)) rotateZ(var(--art-z,0deg)); transform-origin: center; }
.enquiry-form input,.enquiry-form select,.enquiry-form textarea { border-bottom-color: #666; }
.site-footer { padding-bottom: 90px; }
.motion-static .story { padding-top: 60px; }
.motion-static .story-panel { min-height: 650px; padding-block: 80px; }
.motion-static .reveal-ready { opacity: 1; transform: none; }
.motion-static .role-visual,.motion-static .connection-art { transform: none; }
@media(min-width:1377px) { .motion-ready:not(.motion-static) .story-panel { left: max(48px,calc((100vw - 1280px)/2)); right: max(48px,calc((100vw - 1280px)/2)); } }
@media(max-width:1100px) { .story-copy h1 { font-size: 90px; }.story-copy h2 { font-size: 78px; }.motion-ready:not(.motion-static) .story-panel { inset-inline: 36px; }.story-copy p:not(.eyebrow) { max-width: 380px; } }
@media(max-width:960px) { .story-copy h1 { font-size: 78px; }.story-copy h2 { font-size: 66px; }.story-copy p:not(.eyebrow) { max-width: 340px; }.story-copy .eyebrow { font-size: 10px; }.story-controls nav { gap: 20px; }.story-copy .hero-actions { flex-direction: column; align-items: start; gap: 12px; }.story-copy .hero-location { margin-top: 24px; } }
@media(max-width:740px) {
  html { scroll-padding-top: 90px; }.header-inner { min-height: 86px; }
  .story-panel { grid-template-columns: 1fr; gap: 12px; padding-block: 100px 48px; min-height: 0; }
  .story-copy { max-width: 500px; }.story-panel-right .story-copy,.story-panel-right .static-scene-art { grid-column: auto; grid-row: auto; }
  .story-copy h1 { font-size: 66px; line-height: .98; margin-bottom: 24px; }.story-copy h2 { font-size: 62px; margin-bottom: 24px; }
  .story-copy p:not(.eyebrow) { font-size: 16px; line-height: 1.5; max-width: 390px; }.story-copy .eyebrow { margin-bottom: 20px; font-size: 10px; }.story-copy .hero-actions { margin-top: 22px; }.story-copy>.text-link { margin-top: 20px; }.story-copy .hero-location { display: none; }
  .motion-ready:not(.motion-static) .story { height: 310svh; min-height: 0; }
  .motion-ready:not(.motion-static) .story-panel { display: block; inset-inline: 30px; padding-block: 114px 0; }
  .motion-ready:not(.motion-static) .story-panel .story-copy { max-width: 500px; }
  .motion-ready:not(.motion-static) .story-controls { bottom: 8px; gap: 12px; }
  .story-controls .scroll-cue { display: none; }.story-controls nav { gap: 18px; }.story-controls a { font-size: 10px; gap: 6px; }.story-controls .story-skip { font-size: 10px; }.story-skip span { font-size: 14px; margin-left: 0; }
  .story-copy .hero-actions .text-link { display: none; }.story-copy .button { min-height: 46px; font-size: 12px; padding: 12px 20px; }
  .static-scene-art { max-width: 450px; margin-inline: auto; }
  #motion-toggle.motion-control { right: 12px; bottom: 12px; font-size: 10px; padding-inline: 12px; }
  .motion-ready:not(.motion-static) .story-controls { padding-right: 150px; justify-content: flex-start; }
  .motion-ready:not(.motion-static) .story-skip { position: absolute; bottom: 45px; right: 24px; margin-right: 0; }
  .motion-static .story-panel { min-height: 0; padding-block: 60px; }
}
@media(max-width:480px) { .motion-ready:not(.motion-static) .story-panel { inset-inline: 24px; padding-top: 108px; }.story-copy h1 { font-size: 62px; }.story-copy h2 { font-size: 58px; }.story-controls nav { gap: 12px; }.story-controls nav a { font-size: 10px; }.story-controls nav a span { display: none; }.story-copy p:not(.eyebrow) { max-width: 340px; } }
@media(max-width:740px) and (max-height:740px) { .motion-ready:not(.motion-static) .story-panel { padding-top: 88px; }.story-copy h1 { font-size: 54px; margin-bottom: 18px; }.story-copy h2 { font-size: 52px; margin-bottom: 18px; }.story-copy .eyebrow { margin-bottom: 14px; font-size: 9px; }.story-copy p:not(.eyebrow) { font-size: 15px; max-width: 340px; }.story-copy .hero-actions { margin-top: 16px; }.story-copy>.text-link { margin-top: 12px; } }
@media(min-width:741px) and (max-height:780px) { .header-inner { min-height: 88px; }.motion-ready:not(.motion-static) .story-panel { padding-block: 88px 64px; }.story-copy h1 { font-size: 82px; margin-bottom: 24px; }.story-copy h2 { font-size: 66px; margin-bottom: 24px; }.story-copy p:not(.eyebrow) { font-size: 16px; }.story-copy .eyebrow { margin-bottom: 20px; }.story-copy .hero-actions { margin-top: 24px; }.story-copy .hero-location { margin-top: 20px; } }
@media(prefers-reduced-motion:reduce) { .scroll-cue i { animation: none; }.reveal-ready,.role-visual,.connection-art { transition: none !important; } }
