/* The Signal Gallery */
.sg-page { background: var(--void); }
.sg-page .foot { display: none; }
.sg { --wc: #45E0FF; --wc-s: rgba(69,224,255,.16); position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; isolation: isolate; color: var(--ink); }
.sg[data-w="sorenne"] { --wc: #8CE6DC; --wc-s: rgba(140,230,220,.16); }
.sg[data-w="pier"] { --wc: #FF9E52; --wc-s: rgba(255,158,82,.18); }

.sg__stage { position: absolute; inset: 0; touch-action: pan-y; cursor: grab; }
.sg__stage:active { cursor: grabbing; }
.sg__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sg__fall { position: absolute; inset: 0; display: none; }
.sg__fall img { position: absolute; right: 4%; top: 50%; width: min(62%, 980px); transform: translateY(-46%); border-radius: 10px; opacity: 0; transition: opacity .6s; box-shadow: 0 0 0 1px var(--wc-s), 0 30px 80px rgba(0,0,0,.6); }
.sg__fall img.on { opacity: 1; }
.sg--flat .sg__fall { display: block; }
.sg--flat .sg__gl { display: none; }

.sg__ui { position: relative; z-index: 2; height: 100%; pointer-events: none; display: grid;
  grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto auto; padding: calc(var(--mast-h) + 1.2rem) var(--gutter) 1.4rem; }
.sg__ui::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(4,6,13,.92) 0%, rgba(4,6,13,.72) 28%, rgba(4,6,13,0) 52%),
              linear-gradient(0deg, rgba(4,6,13,.85) 0%, rgba(4,6,13,0) 22%); }
.sg__ui a, .sg__ui button { pointer-events: auto; }

.sg__title { margin: 0; font: 500 clamp(.95rem, 1.2vw, 1.1rem)/1.35 var(--sans); color: var(--mute); letter-spacing: .01em; max-width: 30ch; }
.sg__title span { display: block; font: 500 .7rem/1 var(--mono); letter-spacing: .28em; text-transform: uppercase; color: var(--wc); margin-bottom: .7rem; transition: color .8s; }
.sg__title em { font-family: var(--serif); font-style: italic; font-size: 1.2em; color: var(--ink); }

.sg__panels { align-self: center; max-width: 440px; }
.sg__panel { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease) .35s, transform .9s var(--ease) .35s; }
.sg__panel.is-in { opacity: 1; transform: none; }
.sg__k { display: flex; gap: .9rem; align-items: center; flex-wrap: wrap; margin: 0 0 .9rem; font: 500 .7rem/1.2 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.sg__k span { color: var(--wc); padding: .35rem .6rem; border: 1px solid var(--wc-s); border-radius: 99px; background: var(--wc-s); }
.sg__t { margin: 0; font: 600 clamp(2.2rem, 3.5vw, 3.3rem)/1 var(--sans); letter-spacing: -.03em; }
.sg__h { margin: 1rem 0 0; font: 400 clamp(1.25rem, 1.7vw, 1.5rem)/1.25 var(--serif); font-style: italic; color: var(--ink); }
.sg__d { margin: .9rem 0 0; font: 400 1rem/1.55 var(--sans); color: var(--mute); }
.sg__f { list-style: none; margin: 1.1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.sg__f li { font: 500 .78rem/1 var(--sans); padding: .5rem .7rem; border: 1px solid var(--line-2); border-radius: 6px; background: rgba(10,15,28,.6); color: var(--ink); }
.sg__cta { display: inline-flex; align-items: center; gap: .9rem; margin-top: 1.5rem; padding: .95rem 1.3rem; border-radius: 99px; background: var(--wc); color: #04060D; font: 600 .82rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; box-shadow: 0 0 0 0 var(--wc-s), 0 10px 40px var(--wc-s); transition: transform .3s var(--ease), box-shadow .3s; }
.sg__cta:hover, .sg__cta:focus-visible { transform: translateY(-2px); box-shadow: 0 0 0 6px var(--wc-s), 0 14px 50px var(--wc-s); }
.sg__cta i { width: 18px; height: 1.5px; background: currentColor; position: relative; }
.sg__cta i::after { content: ""; position: absolute; right: 0; top: -3.5px; width: 7px; height: 7px; border: solid currentColor; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); }

.sg__bar { display: flex; align-items: stretch; gap: .5rem; max-width: 760px; }
.sg__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; flex: 1; }
.sg__tab { min-width: 0; appearance: none; text-align: left; border: 1px solid var(--line-2); background: rgba(7,11,21,.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--mute); border-radius: 10px; padding: .75rem .9rem; cursor: pointer; display: grid; grid-template-columns: auto 1fr; column-gap: .6rem; row-gap: .2rem; position: relative; overflow: hidden; transition: border-color .4s, color .4s, background .4s; }
.sg__tab i { font: 500 .68rem/1.3 var(--mono); font-style: normal; color: var(--dim); grid-row: span 2; }
.sg__tab b { font: 600 .9rem/1.2 var(--sans); color: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg__tab span { font: 500 .62rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.sg__tab::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--wc); transition: width 1.6s var(--ease); }
.sg__tab[aria-selected="true"] { color: var(--ink); border-color: var(--wc-s); background: rgba(12,18,32,.8); }
.sg__tab[aria-selected="true"] i { color: var(--wc); }
.sg__tab[aria-selected="true"]::after { width: 100%; }
.sg__tab:hover { color: var(--ink); }
.sg__tab:focus-visible, .sg__arr:focus-visible, .sg__cta:focus-visible { outline: 2px solid var(--wc); outline-offset: 3px; }
.sg__arr { appearance: none; width: 48px; border: 1px solid var(--line-2); background: rgba(7,11,21,.62); border-radius: 10px; cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.sg__arr i { width: 9px; height: 9px; border: solid currentColor; border-width: 0 0 1.5px 1.5px; transform: rotate(45deg); margin-left: 3px; }
.sg__arr--n i { transform: rotate(-135deg); margin: 0 3px 0 0; }
.sg__arr:hover { border-color: var(--wc-s); }

.sg__note { margin: .9rem 0 0; font: 400 .7rem/1.4 var(--mono); letter-spacing: .06em; color: var(--dim); }
.sg__hint--m { display: none; }

@media (max-width: 760px) {
  .sg { min-height: 640px; }
  .sg__ui { padding: calc(var(--mast-h) + .2rem) 16px 1rem; grid-template-rows: 0 1fr auto auto auto; }
  .sg__ui::before { background: linear-gradient(0deg, rgba(4,6,13,.97) 0%, rgba(4,6,13,.9) 40%, rgba(4,6,13,0) 62%),
                                linear-gradient(180deg, rgba(4,6,13,.7) 0%, rgba(4,6,13,0) 16%); }
  .sg__title { position: absolute; left: -9999px; }
  .sg__title span { margin-bottom: .4rem; font-size: .62rem; }
  .sg__panels { align-self: end; max-width: none; grid-row: 4; }
  .sg__bar { grid-row: 3; margin-bottom: 1rem; }
  .sg__note { grid-row: 5; margin-top: .7rem; font-size: .62rem; }
  .sg__t { font-size: 2.1rem; }
  .sg__k { margin-bottom: .55rem; font-size: .62rem; gap: .6rem; }
  .sg__h { font-size: 1.12rem; margin-top: .55rem; }
  .sg__d { display: none; }
  .sg__f { flex-wrap: nowrap; overflow-x: auto; margin: .8rem -16px 0; padding: 0 16px; scrollbar-width: none; }
  .sg__f::-webkit-scrollbar { display: none; }
  .sg__f li { white-space: nowrap; font-size: .74rem; }
  .sg__cta { display: flex; justify-content: center; margin-top: 1rem; padding: 1rem; }
  .sg__tab { padding: .55rem .6rem; display: block; }
  .sg__tab b { display: block; font-size: .78rem; margin-top: .15rem; }
  .sg__tab span { display: none; }
  .sg__arr { display: none; }
  .sg__hint { display: none; }
  .sg__hint--m { display: inline; }
  .sg__fall img { right: auto; left: 50%; top: 8%; width: 58%; transform: translateX(-50%); }
}
@media (max-height: 760px) and (min-width: 761px) { .sg__d { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .sg__panel, .sg__tab::after { transition: none; }
}

.sg-page .mast { position: fixed; top: 0; left: 0; right: 0; }

/* grab and slide prompt */
.sg__grab { position: absolute; z-index: 3; left: 50%; bottom: 7.2rem; transform: translateX(-10%); display: flex; align-items: center; gap: .9rem; padding: .7rem 1.2rem .7rem .8rem;
  border-radius: 99px; background: rgba(4,6,13,.7); outline: 1px solid var(--wc-s); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); pointer-events: none;
  font: 500 .74rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); transition: opacity .6s; }
.sg__grab b { font-weight: 500; } .sg__grab .m { display: none; }
.sg__hand { position: relative; width: 44px; height: 26px; }
.sg__hand i { position: absolute; top: 3px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--wc); box-shadow: 0 0 18px var(--wc); animation: slide 2.2s cubic-bezier(.6,0,.3,1) infinite; }
.sg__hand::before { content: ""; position: absolute; left: 4px; right: 4px; top: 12px; height: 2px; background: linear-gradient(90deg, transparent, var(--wc-s), transparent); }
@keyframes slide { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 70% { transform: translateX(20px); opacity: 1; } 100% { transform: translateX(20px); opacity: 0; } }
.sg--used .sg__grab { opacity: 0; }
@media (max-width: 760px) {
  .sg__grab { left: 50%; transform: translateX(-50%); bottom: auto; top: calc(var(--mast-h) + 12px); white-space: nowrap; font-size: .62rem; padding: .55rem .9rem .55rem .6rem; }
  .sg__grab .d { display: none; } .sg__grab .m { display: inline; }
}
@media (prefers-reduced-motion: reduce) { .sg__hand i { animation: none; } }
@media (max-width: 760px) { .sg__grab { letter-spacing: .08em; max-width: calc(100vw - 32px); } }
@media (max-width: 760px) {
  .sg__grab { top: auto; bottom: auto; top: 46%; font-size: .74rem; padding: .7rem 1.1rem .7rem .7rem; letter-spacing: .1em;
    background: rgba(4,6,13,.82); outline: 1px solid var(--wc); box-shadow: 0 0 40px var(--wc-s); animation: grabPulse 2s ease-in-out infinite; }
  .sg__grab .ar { font-style: normal; font-size: 1.3em; color: var(--wc); display: inline-block; animation: arL 1.2s ease-in-out infinite; }
  .sg__grab .ar:last-child { animation-name: arR; }
  @keyframes arL { 50% { transform: translateX(-4px); } } @keyframes arR { 50% { transform: translateX(4px); } }
  @keyframes grabPulse { 50% { box-shadow: 0 0 60px var(--wc-s), 0 0 0 5px var(--wc-s); } }
}
@media (max-width: 760px) { .sg__grab { top: calc(var(--mast-h) + 10px); } }
/* phones: the gallery fills the real screen height, no sideways drift */
html, body { overflow-x: clip; }
@media (max-width: 760px) { .sg { height: 100dvh; } }
@media (max-width: 760px) and (max-height: 760px) {
  .sg__note { display: none; }
  .sg__grab { top: auto; bottom: auto; top: calc(var(--mast-h) + 4px); padding: .45rem .8rem .45rem .5rem; font-size: .64rem; }
  .sg__hand { width: 34px; height: 20px; } .sg__hand i { width: 14px; height: 14px; }
  .sg__bar { margin-bottom: .6rem; }
  .sg__t { font-size: 1.8rem; }
  .sg__h { font-size: 1rem; }
  .sg__cta { padding: .85rem; margin-top: .8rem; }
  .sg__tab { padding: .45rem .55rem; }
}

/* V32: back to home, desktop/phone switch, supporting line */
.sg__sub { margin: .6rem 0 0; max-width: 32rem; font: 400 .95rem/1.5 var(--sans); color: var(--mute); }
.sg__tools { position: absolute; z-index: 3; right: var(--gutter); top: calc(var(--mast-h) + 1.2rem); display: flex; align-items: center; gap: .7rem; pointer-events: auto; }
.sg__back { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: 0 1rem; border-radius: 99px; border: 1px solid var(--line-2);
  background: rgba(7,11,21,.7); color: var(--ink); text-decoration: none; font: 500 .72rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.sg__back i { font-style: normal; font-size: 1.1em; color: var(--wc); }
.sg__back:hover { border-color: var(--wc); }
.sg__views { display: inline-flex; padding: 4px; border-radius: 99px; background: rgba(7,11,21,.7); border: 1px solid var(--line-2); }
.sg__views button { appearance: none; border: 0; min-height: 36px; padding: 0 1rem; border-radius: 99px; background: none; color: var(--mute); cursor: pointer;
  font: 500 .72rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; transition: background .3s, color .3s; }
.sg__views button[aria-pressed="true"] { background: var(--wc); color: #04060D; }
.sg__back:focus-visible, .sg__views button:focus-visible { outline: 2px solid var(--wc); outline-offset: 3px; }
@media (max-width: 760px) {
  .sg__tools { left: 16px; right: 16px; top: calc(var(--mast-h) + 8px); justify-content: space-between; }
  .sg__back { min-height: 40px; padding: 0 .8rem; font-size: .64rem; }
  .sg__views button { min-height: 32px; padding: 0 .8rem; font-size: .64rem; }
  .sg__ui { grid-template-rows: 0 1fr auto auto auto auto; }
  .sg__grab { position: static; transform: none; grid-row: 3; justify-self: center; margin: 0 0 .6rem; top: auto !important; bottom: auto; }
  .sg__bar { grid-row: 4; }
  .sg__panels { grid-row: 5; }
  .sg__note { grid-row: 6; }
}
@media (max-width: 760px) { .sg__sub { display: none; } }
@media (min-width: 761px) {
  .sg__sub { max-width: 27rem; font-size: .9rem; }
  .sg__panels { margin-bottom: 1.4rem; }
}
@media (min-width: 761px) and (max-height: 940px) { .sg__d { display: none; } .sg__f li:nth-child(n+5) { display: none; } }
/* V33: the industry reads first */
.sg__k { font: 600 clamp(1.05rem, 1.4vw, 1.3rem)/1.2 var(--sans); letter-spacing: -.005em; text-transform: none; color: var(--ink); }
.sg__k span { font: 500 .66rem/1.2 var(--mono); letter-spacing: .2em; text-transform: uppercase; }
.sg__t { font-size: clamp(1.6rem, 2.4vw, 2.2rem); color: var(--mute); }
@media (max-width: 760px) { .sg__k { font-size: 1.05rem; } .sg__t { font-size: 1.5rem; } }
