/* Signal wave: the selected dark-only portfolio design. */
:root { --signal-accent: var(--brand-accent-dark); }
/* The focused green/violet palette belongs to the shared signal unit. */
:root[data-signal-design] { --signal-accent: #b49aff; }
html:has(.work-navigation) { scrollbar-gutter: stable; }
.work-navigation { background: var(--navigation); min-width: 0; }
.ruler-scroll { width: 100%; max-width: 100%; }
.about-page .work-navigation { --signal-accent: var(--about-ink); }
.project-ruler { display: grid; grid-template-columns: 64px repeat(var(--project-count, 8), minmax(max-content, 1fr)) 64px; min-width: max-content; width: 100%; }
.project-ruler::before, .ruler-ticks { display: none; }
.project-ruler .ruler-item { min-width: 0; height: var(--signal-ruler-height); padding: 0 4px 46px; justify-content: center; flex: initial; }
.ruler-label { margin: 0; padding: 0; border-radius: 0; text-align: center; }
.project-ruler .ruler-item[aria-current] :is(.ruler-label, .ruler-character) { background: transparent; color: var(--focus); }
.project-ruler .ruler-item[aria-current] .ruler-label { font-weight: 600; }
.project-ruler .ruler-item .home-icon, .project-ruler .ruler-item .profile-icon { width: 24px; height: 24px; padding: 0; margin: 0; border-radius: 0; }
.project-ruler .ruler-item[aria-current] .ruler-character { color: var(--signal-accent); }
.signal-scale { position: absolute; top: 44px; left: 0; width: 100%; height: 46px; pointer-events: none; overflow: hidden; }
.signal-chapter-grid { display: none; position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; color: var(--ink); opacity: .28; mask-image: linear-gradient(transparent, #000 6px, #000 calc(100% - 6px), transparent); }
[data-signal-design] .signal-chapter-grid { display: block; }
[data-signal-design] .project-band { display: none; }
@media (max-width: 760px) {
  .project-ruler { grid-template-columns: 56px repeat(var(--project-count, 8), minmax(max-content, 1fr)) 56px; }
}

/* Signal wave cleanup: the blue row is the complete index hover treatment. */
[data-signal-design] .project-index .project-row::before { content: none; }
/* Keep successful copy announcements available to assistive technology without extra visible copy. Errors remain visible. */
[data-signal-design] .about-contacts:has(.email-copy.is-copied) .copy-status {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
/* The oversized project title is the stripe; its native type remains unchanged. */
[data-signal-design] .project-heading {
  position: relative; isolation: isolate; background: var(--paper);
  margin: 0 calc(-1 * var(--gutter)) 24px;
  padding: clamp(32px, 4vw, 64px) var(--gutter);
}
[data-signal-design] .project-intro { padding-bottom: 24px; }
@media (min-width: 761px) {
  [data-signal-design] .project {
    --signal-hero-art-height: max(320px, calc(100svh - var(--navigation-height) - var(--signal-title-height, 240px) - 48px));
  }
  [data-signal-design] .project-intro .project-media img { max-height: var(--signal-hero-art-height); object-fit: contain; object-position: left top; }
  /* POS screenshots share the full narrative column at their natural proportions. */
  [data-signal-design] #stubhub-pos .project-intro .project-media img { max-height: none; }
  [data-signal-design] #mobile-first-ai .project-intro .hero-video { width: min(calc(100% - 64px), calc(var(--signal-hero-art-height) * .482142857)); }
}

/* About becomes one vertically centered contact and history block. */
[data-signal-design] .about-content { justify-content: center; }
[data-signal-design] .about-description {
  position: absolute; width: 1px; height: 1px; margin: 0; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
[data-signal-design] .about-name { display: none; }
[data-signal-design] .about-workplaces { margin-top: 0; padding-top: 40px; }
@media (max-width: 760px) {
  [data-signal-design] .about-workplaces { padding-top: 32px; }
}

/* Match the password scene in viewport coordinates, including the full display. */
.about-signal-scene, .about-signal-grid { display: none; }
[data-signal-design] .about:has([data-signal-ready]) {
  overflow: clip;
  min-height: calc(max(100svh, 600px) - var(--navigation-height));
}
[data-signal-design] .about-illustration[data-signal-ready] {
  inset: calc(-1 * var(--navigation-height)) 0 auto;
  height: max(100svh, 600px);
}
[data-signal-design] .about-illustration[data-signal-ready] > img,
[data-signal-design] .about:has([data-signal-ready]) .about-content > .about-workplaces { display: none; }
[data-signal-design] .about-signal-scene {
  display: block; position: absolute; left: 0; top: calc(50% + 24px);
  width: clamp(820px, 62vw, 1080px); aspect-ratio: 1;
  transform: translate(-11%, -42%);
}
[data-signal-design] .about-signal-units {
  display: block; position: absolute; inset: 0; width: 100%; height: 100%;
  transform: none; overflow: visible;
}
.about-shared-housing { filter: grayscale(1) brightness(.94) contrast(1.08); }
/* HTML links sit on the same sloping plate as the artwork, outside the SVG. */
.about-signal-scene { container-type: inline-size; }
.about-history-plate {
  position: absolute; left: 41.39%; top: 52.52%; width: 48.96%; height: 18.28%;
  transform: skewY(-6.93deg); transform-origin: top left;
  display: flex; flex-direction: column; padding: 1cqw 1.45cqw .85cqw;
  color: #edf2e4; pointer-events: auto;
}
.about-history-plate .about-section-label {
  color: #bfc9be; font-size: clamp(9px, 1.18cqw, 14px); line-height: 1.2;
  letter-spacing: .08em; margin: 0 0 .45cqw;
}
.about-history-plate .workplace-list { flex: 1; display: grid; grid-template-rows: repeat(4, 1fr); min-height: 0; }
.about-history-plate .workplace-link {
  height: 100%; min-height: 0; padding: 0 .5cqw; margin-inline: -.5cqw;
  font-size: 2.35cqw; line-height: 1.15; color: #edf2e4; text-transform: none;
}
.about-history-plate .workplace-link:is(:hover, :focus-visible) { background: #edf2e4; color: #080b08; }
.about-history-plate .workplace-link:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.about-history-plate .outbound-icon { width: clamp(10px, 1.5cqw, 17px); height: auto; }
[data-signal-design] .about-signal-grid { display: block; position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; color: #edf2e4; opacity: .17; }
@media (max-width: 1199px) {
  [data-signal-design] .about:has([data-signal-ready]) { min-height: calc(max(100svh, 760px) - var(--navigation-height)); }
  [data-signal-design] .about-illustration[data-signal-ready] { height: max(100svh, 760px); }
  [data-signal-design] .about-signal-scene { top: calc(50% + 144px); }
  [data-signal-design] .about:has([data-signal-ready]) .about-content {
    position: absolute; top: 32px; right: 8%; width: auto; max-width: 60%; padding: 0;
  }
}
@media (max-width: 760px) {
  [data-signal-design] .about:has([data-signal-ready]) .about-content { max-width: 84%; }
}

/* Keep active navigation text neutral; color belongs to the wave and project surfaces. */
:root[data-signal-design] .work-navigation {
  --signal-nav-core: #fff;
  --signal-active-label: #fff;
  --signal-nav-glow: 0 0 2px #ffffffb3, 0 0 7px #ffffff66, 0 0 14px #ffffff33;
  --signal-icon-glow: drop-shadow(0 0 1px #ffffffcc) drop-shadow(0 0 4px #c1a4ffcc) drop-shadow(0 0 8px #25efa066);
}
:root[data-signal-design] .ruler-label { transition: color 160ms ease-out, text-shadow 160ms ease-out; }
:root[data-signal-design] .project-ruler .ruler-item[aria-current] .ruler-label {
  color: var(--signal-active-label); text-shadow: var(--signal-nav-glow); font-weight: 600;
}
:root[data-signal-design] .project-ruler :is(.home-icon, .profile-icon) { width: 20px; height: 20px; overflow: visible; }
:root[data-signal-design] .project-ruler .ruler-character { transition: color 160ms ease-out, filter 160ms ease-out; }
:root[data-signal-design] .project-ruler .ruler-item[aria-current] .ruler-character { color: var(--signal-nav-core); filter: var(--signal-icon-glow); }
.signal-pixel-edge, .signal-pixel-interior { fill: currentColor; stroke: currentColor; stroke-width: .22; stroke-linejoin: round; }
.signal-pixel-interior { opacity: 0; transition: opacity 160ms ease-out; }
.ruler-item[aria-current] .signal-pixel-interior { opacity: 1; }
[data-signal-design] .ruler-item[aria-current] :is(.signal-pixel-edge, .signal-pixel-interior) { stroke-width: .55; }
@media (prefers-reduced-motion: reduce) {
  :root[data-signal-design] .ruler-label,
  :root[data-signal-design] .project-ruler .ruler-character,
  .signal-pixel-interior { transition: none; }
}

/* A single colored crest retains its existing optical bloom. */
:root[data-signal-design] .signal-wave-units { filter: url(#signal-spectral-bloom); }
@media (forced-colors: active) {
  :root[data-signal-design] .project-ruler .ruler-item[aria-current] .ruler-label {
    background: none; color: Highlight; text-shadow: none;
  }
}

/* The signal lenses are real links, with perspective-matched touch/focus areas. */
[data-signal-design] .about-signal-action { pointer-events: all; cursor: pointer; outline: none; }
.about-signal-hit { fill: transparent; }
.about-signal-focus { fill: none; stroke: #fff; stroke-width: 2; opacity: 0; vector-effect: non-scaling-stroke; }
/* Hover/focus illuminate the actual symbol and lens, without a circular overlay. */
[data-signal-design] .about-signal-units .light-layer { transition: filter 160ms ease-out; }
[data-signal-design] .about-signal-units .lamp-atmosphere { transition: opacity 160ms ease-out; }
.about-signal-units:has(.about-signal-action--home:is(:hover, :focus-visible)) [data-symbol="home"],
.about-signal-units:has(.about-signal-action--heart:is(:hover, :focus-visible)) [data-symbol="heart"],
.about-signal-units:has(.about-signal-action--linkedin:is(:hover, :focus-visible)) [data-symbol="linkedin"] {
  filter: brightness(1.6) saturate(1.08);
}
.about-signal-units:has(.about-signal-action--home:is(:hover, :focus-visible)) [data-symbol="home"] .lamp-atmosphere,
.about-signal-units:has(.about-signal-action--heart:is(:hover, :focus-visible)) [data-symbol="heart"] .lamp-atmosphere,
.about-signal-units:has(.about-signal-action--linkedin:is(:hover, :focus-visible)) [data-symbol="linkedin"] .lamp-atmosphere {
  opacity: .62;
}
.about-signal-units:has(.about-signal-action--home:is(:hover, :focus-visible)) [data-symbol="home"] .lit-led-lens > g > use:last-child,
.about-signal-units:has(.about-signal-action--heart:is(:hover, :focus-visible)) [data-symbol="heart"] .lit-led-lens > g > use:last-child,
.about-signal-units:has(.about-signal-action--linkedin:is(:hover, :focus-visible)) [data-symbol="linkedin"] .lit-led-lens > g > use:last-child {
  fill: #fff;
}

@media (prefers-reduced-motion: reduce) {
  [data-signal-design] .about-signal-units :is(.light-layer, .lamp-atmosphere) { transition: none; }
}

/* Bright, sliding color bands echo the supplied recording; text stays sharp. */
[data-signal-design] .project-row:is(:hover, :focus-visible, [aria-current="location"]) {
  background-color: #46efaf;
  background-image: linear-gradient(90deg,
    #2cba87 0%, #25efa0 10%, #b4ffdf 18%, #e2fff2 20%,
    #48eeb0 24%, #b5a0ff 36%, #dfd2ff 42%, #f1eaff 44%,
    #ab8cf5 49%, #b49aff 58%, #e2d6ff 64%, #b5ffdd 70%,
    #25efa0 78%, #2cba87 89%, #7bf7c3 100%);
  background-size: 160% 100%; color: #042e23;
  animation: signal-row-spectrum 1800ms cubic-bezier(.2,.7,.2,1) both;
}
@keyframes signal-row-spectrum {
  from { background-position: 100% 50%; }
  to { background-position: 0% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  [data-signal-design] .project-row:is(:hover, :focus-visible, [aria-current="location"]) { animation: none; background-position: 50% 50%; }
}
@media (forced-colors: active) {
  [data-signal-design] .project-row:is(:hover, :focus-visible, [aria-current="location"]) { background: Highlight; color: HighlightText; animation: none; }
  .about-signal-focus { stroke: LinkText; }
  .about-signal-action:focus-visible .about-signal-focus { opacity: 1; }
}

/* Signal wave About shares the entry's quiet charcoal field and star grid. */
:root[data-signal-design]:has(.about-page) { color-scheme: dark; background: #080b08; }
:root[data-signal-design] .about-page { background: #080b08; }
:root[data-signal-design] .about-page .work-navigation { background: #080b08; }
:root[data-signal-design] .about-page .about-signal-grid { color: #edf2e4; opacity: .15; }
[data-signal-design] .about-page .theme-toggle { display: none; }

@media (max-width: 760px) {
  /* The wave and its links share one center per destination on phones. */
  [data-signal-design] .ruler-scroll { -webkit-mask-image: none; mask-image: none; }
  [data-signal-design] .project-ruler {
    min-width: 0; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  }
  [data-signal-design] .project-ruler .ruler-item { padding-inline: 0; }
  /* Keep the project names in the accessibility tree and the full link tappable. */
  [data-signal-design] .ruler-label {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
  }
  [data-signal-design] .ruler-item:has(.ruler-label)::after {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: var(--signal-active-label); opacity: .52;
  }
  [data-signal-design] .ruler-item[aria-current]:has(.ruler-label)::after {
    width: 9px; height: 9px; opacity: 1; box-shadow: 0 0 6px #ffffff55;
  }
  @media (forced-colors: active) {
    [data-signal-design] .ruler-item:has(.ruler-label)::after { forced-color-adjust: none; background: LinkText; opacity: 1; }
    [data-signal-design] .ruler-item[aria-current]:has(.ruler-label)::after { background: Highlight; }
  }
}

/* The smile is drawn in whole pixel steps. Its features reverse out of the selected face. */
:root[data-signal-design] .project-ruler .ruler-item .profile-icon { color: #fff; }
.profile-icon .smile-fill { fill: none; }
.profile-icon .smile-features,
.ruler-item[aria-current] .profile-icon .smile-fill { fill: currentColor; }
.ruler-item[aria-current] .profile-icon .smile-features { fill: var(--navigation); }
