/* Signal study 01. An additive layer over the original E1 identity. */
:root {
  --signal: #5c6268;
  --signal-wash: rgba(106, 115, 123, 0.055);
  --signal-line: rgba(94, 103, 112, 0.28);
  --silver-finish: linear-gradient(135deg, #626c76 0%, #cbd0d4 35%, #ffffff 48%, #b3bac1 60%, #727c85 100%);
}

/* No random flicker, scanlines, or continuously flashing interface. */
.field-overlay { display: none; }
body.is-calibrating .sheet,
body.is-calibrating .field-overlay,
.provisional-stamp,
.beacon { animation: none; }
body { background: #e8e3da; }
.beacon { background: var(--signal); border-radius: 50%; width: 6px; height: 6px; }
.beacon { background: var(--silver-finish); box-shadow: 0 0 0 1px rgba(68, 76, 84, 0.28); }
.field-state { font-size: 12px; }
.status-inner { font-size: 12px; }
.chip-btn, .flicker-btn { font-size: 12px; }
.chip-btn.is-active { background: var(--signal); border-color: var(--signal); }
.sheet-nav a:hover, .sheet-nav a:focus-visible { color: var(--signal); border-color: var(--signal); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 5px; }
.hero { border-bottom: 0; padding-bottom: 32px; }
.brand-identity {
  --brand-word: var(--word);
  font-size: var(--brand-word);
  min-width: 0;
}
.brand-identity .lockup { font-size: inherit; }
.brand-tagline {
  margin: 24px 0 0 calc(var(--brand-word) * 1.18);
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  line-height: 1.55;
  letter-spacing: 0;
  color: var(--ink);
}
.provisional-stamp {
  background: transparent;
  border: 0;
  border-left: 1px solid var(--signal-line);
  padding: 4px 0 4px 20px;
}
.stamp-code { color: var(--signal); font-size: 12px; letter-spacing: 0.06em; }
.stamp-note { font-size: 14px; line-height: 1.5; }
.signal-status-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 5px 2px 0;
  background: var(--silver-finish);
  box-shadow: 0 0 0 1px rgba(68, 76, 84, 0.2);
}
.portal-pulse, .portal-inner-pulse {
  stroke: url(#silver-albers);
  filter: drop-shadow(0 0.5px 0.35px rgba(38, 45, 52, 0.5));
  stroke-dasharray: 0.16 1;
  stroke-dashoffset: 0.18;
  opacity: 0;
}
.symbol-open .portal-pulse { stroke: url(#silver-open); }
.portal-inner-pulse { stroke-dasharray: 0.3 1; }
/* Base timings are divided by the Albers-only playback speed, including
   junction delays and the shared arrival/fade. Other site motion is unchanged. */
.symbol-albers { --albers-speed: 1.75; --pulse-envelope: 42px; }
.symbol-albers .portal-pulse,
.symbol-albers .portal-inner-pulse {
  /* Nested, centred dashes form a 42-unit envelope (doubled from 21):
     a bright silver centre with translucent leading and trailing ends. */
  --pulse-length: 18;
  --pulse-opacity: 1;
  --pulse-distance: 178.8;
  stroke-dasharray: var(--pulse-length) 300;
  stroke-dashoffset: calc((var(--pulse-envelope) + var(--pulse-length) * 1px) / 2);
  --pulse-duration: 1.788s;
  --pulse-delay: 0s;
}
.symbol-albers .portal-bridge-pulse {
  --pulse-distance: 17.92875;
  --pulse-duration: 0.5992875s;
  --pulse-delay: 0.894s;
}
.symbol-albers .portal-branch-left {
  --pulse-distance: 48.8;
  --pulse-duration: 0.7147125s;
  --pulse-delay: 1.0732875s;
}
.symbol-albers .portal-branch-right {
  --pulse-distance: 51.4;
  --pulse-duration: 0.7147125s;
  --pulse-delay: 1.0732875s;
}
.signal-network { height: 120px; position: relative; }
.signal-caption {
  position: absolute;
  inset: 10px 44px auto 44px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.signal-caption > :first-child { color: var(--signal); margin-left: 46px; }
.holdings-caption {
  align-items: baseline;
  justify-content: flex-start;
  gap: 20px;
  font-family: var(--font-sans);
  letter-spacing: 0;
}
.holdings-caption h2 {
  margin: 0 0 0 46px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
}
.holdings-caption p { margin: 0; font-size: 16px; line-height: 1.5; }
.holdings-caption > :first-child { color: var(--ink); }
.network-diagram { position: absolute; inset: 16px 0 0; width: 100%; height: 104px; overflow: visible; }
.network-track, .network-transmission {
  fill: none;
  stroke: var(--signal-line);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.network-transmission {
  stroke: url(#silver-network);
  stroke-width: 2.2;
  filter: drop-shadow(0 0.7px 0.45px rgba(38, 45, 52, 0.48));
  stroke-dasharray: 0.1 1;
  stroke-dashoffset: 0.12;
  opacity: 0;
}
.network-node { fill: var(--paper); stroke: var(--signal); stroke-width: 1; }
.node-halo { fill: none; stroke: var(--signal); opacity: 0; }
.disciplines { border-top: 1px solid var(--signal-line); }
.disc-cell {
  position: relative;
  transition: background 320ms ease;
  outline-offset: -5px;
}
.disc-cell::before {
  content: '';
  position: absolute;
  top: -3px;
  left: calc(50% - 2px);
  width: 5px;
  height: 5px;
  background: var(--signal);
}
.disc-cell .label { transition: color 240ms ease; }
.disc-cell:hover, .disc-cell:focus-visible { background: var(--signal-wash); }
.disc-cell:hover .label, .disc-cell:focus-visible .label { color: var(--signal); }
.disc-cell.is-receiving .label { color: var(--signal); }
.disc-cell.is-receiving { background: var(--signal-wash); }
.contact-email:hover { color: var(--signal); }
.text-input:focus, .select-input:focus { border-color: var(--signal); outline-color: var(--signal); }
.btn-primary { background: var(--signal); border-color: var(--signal); }
.btn-primary:hover { background: #464c52; }
.preview-notice {
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.btn-agent-web3 { opacity: 0.65; }

@keyframes portal-travel {
  0% { opacity: 0; stroke-dashoffset: 0.18; }
  10%, 75% { opacity: 1; }
  100% { opacity: 0; stroke-dashoffset: -1; }
}
@keyframes albers-propagate {
  0% { opacity: var(--pulse-opacity); stroke-dashoffset: calc((var(--pulse-envelope) + var(--pulse-length) * 1px) / 2); }
  95% { opacity: var(--pulse-opacity); }
  100% { opacity: 0; stroke-dashoffset: calc((var(--pulse-envelope) + var(--pulse-length) * 1px) / 2 - var(--pulse-distance) * 1px - var(--pulse-envelope)); }
}
@keyframes albers-arrive {
  from { stroke-dashoffset: calc((var(--pulse-envelope) + var(--pulse-length) * 1px) / 2); }
  to { stroke-dashoffset: calc((var(--pulse-envelope) + var(--pulse-length) * 1px) / 2 - var(--pulse-distance) * 1px); }
}
@keyframes albers-extinguish {
  from { opacity: var(--pulse-opacity); }
  to { opacity: 0; }
}
@keyframes rail-travel {
  0% { opacity: 0; stroke-dashoffset: 0.12; }
  8%, 85% { opacity: 1; }
  100% { opacity: 0; stroke-dashoffset: -1; }
}
@keyframes node-receive {
  0%, 100% { opacity: 0; }
  35% { opacity: 0.5; }
}
@keyframes word-resolve {
  from { opacity: 0.55; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  body.is-calibrating .portal-pulse, body.is-signalling .portal-pulse {
    animation: portal-travel 1.7s ease-in-out both;
  }
  body.is-calibrating .portal-inner-pulse, body.is-signalling .portal-inner-pulse {
    animation: portal-travel 1.1s 0.8s ease-in-out both;
  }
  body.is-calibrating .symbol-albers .portal-pulse,
  body.is-signalling .symbol-albers .portal-pulse,
  body.is-calibrating .symbol-albers .portal-inner-pulse,
  body.is-signalling .symbol-albers .portal-inner-pulse {
    animation:
      albers-arrive calc(var(--pulse-duration) / var(--albers-speed)) calc(var(--pulse-delay) / var(--albers-speed)) linear both,
      albers-extinguish calc(0.06s / var(--albers-speed)) calc(1.788s / var(--albers-speed)) linear both;
  }
  body.is-calibrating .symbol-albers .portal-bridge-pulse,
  body.is-signalling .symbol-albers .portal-bridge-pulse {
    animation: albers-propagate calc(var(--pulse-duration) / var(--albers-speed)) calc(var(--pulse-delay) / var(--albers-speed)) linear both;
  }
  body.is-calibrating .name { animation: word-resolve 1.2s 0.35s ease both; }
  body.is-calibrating .network-transmission {
    animation: rail-travel 1.8s 1.1s ease-in-out both;
  }
  body.is-calibrating .network-transmission-1 { animation-delay: 1.25s; }
  body.is-calibrating .network-transmission-2 { animation-delay: 1.4s; }
  .network-transmission.is-travelling { animation: rail-travel 1.5s ease-in-out both; }
  .network-node.is-receiving .node-halo { animation: node-receive 1.2s ease both; }
}
@media (max-width: 900px) {
  .signal-caption { left: 24px; right: 24px; }
  .signal-caption > :first-child { margin-left: 64px; }
}
@media (max-width: 640px) {
  .brand-identity { --brand-word: clamp(1.85rem, 8.2vw, 2.75rem); }
  .brand-tagline { margin-top: 20px; }
  .signal-network { height: 104px; }
  .signal-caption { inset: 4px 20px auto; font-size: 12px; gap: 8px; }
  .signal-caption > :first-child { margin-left: 0; }
  .signal-caption:not(.holdings-caption) > :last-child { max-width: 140px; text-align: right; }
  .holdings-caption { gap: 4px; flex-direction: column; }
  .holdings-caption h2 { margin-left: 0; }
  .holdings-caption p { max-width: none; text-align: left; font-size: 14px; }
  .network-diagram { height: 64px; top: 40px; }
  .hero { gap: 44px; }
  .hero-top { gap: 32px; }
  .provisional-stamp { padding-left: 16px; }
  .disc-cell::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
