@layer reset, tokens, primitives, archetypes, utilities;

@layer reset {
  *, *::before, *::after {
    box-sizing: border-box;
  }
  html {
    overflow-x: clip;
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
    background: var(--sj-color-bg-canvas);
  }
  body {
    margin: 0;
    min-height: 100%;
    overflow-x: clip;
    background: var(--sj-color-bg-canvas);
    color: var(--sj-color-text-primary);
    font-family: var(--sj-font-family-body);
    font-size: 16px;
    line-height: 1.6;
    word-break: keep-all;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  h1, h2, h3, h4, p, ul, ol, dl, dd, figure {
    margin: 0;
  }
  ul, ol {
    padding: 0;
    list-style: none;
  }
  img, svg, video, canvas {
    display: block;
    max-width: 100%;
  }
  a {
    color: inherit;
    text-decoration: none;
  }
  button {
    font: inherit;
    color: inherit;
  }
  :focus-visible {
    outline: 2px solid var(--sj-color-status-focus);
    outline-offset: 2px;
  }
  ::selection {
    background: var(--sj-color-accent-subtle);
    color: var(--sj-color-text-primary);
  }
}

@layer primitives {
  .sj-container {
    width: 100%;
    max-width: var(--sj-zone-container-max);
    margin-inline: auto;
    padding-inline: var(--sj-zone-page-inline-desktop);
  }

  .sj-mono {
    font-family: var(--sj-font-family-mono);
    font-variant-numeric: tabular-nums;
  }

  .sj-eyebrow {
    font-family: var(--sj-font-family-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sj-color-accent-primary);
    white-space: nowrap;
  }

  .sj-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--sj-space-8);
    padding: 6px 12px;
    border-radius: var(--sj-radius-pill);
    border: 1px solid var(--sj-color-border-subtle);
    background: var(--sj-color-bg-surface);
    font-family: var(--sj-font-family-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--sj-color-text-secondary);
    white-space: nowrap;
  }

  .sj-dot-pulse {
    width: 7px;
    height: 7px;
    border-radius: var(--sj-radius-pill);
    background: var(--sj-color-accent-primary);
    flex: none;
    animation: sj-pulse 2.2s var(--sj-motion-ease-out) infinite;
  }
  .sj-dot-live {
    width: 7px;
    height: 7px;
    border-radius: var(--sj-radius-pill);
    background: var(--sj-color-status-live);
    flex: none;
  }

  @keyframes sj-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(1.3); }
  }

  .sj-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sj-space-8);
    min-height: 44px;
    padding: 0 20px;
    border-radius: var(--sj-radius-sm);
    border: 1px solid var(--sj-color-border-default);
    background: var(--sj-color-bg-surface);
    color: var(--sj-color-text-primary);
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
    white-space: nowrap;
    cursor: pointer;
    transition:
      transform var(--sj-motion-dur-press) var(--sj-motion-ease-out),
      background-color var(--sj-motion-dur-fast) var(--sj-motion-ease-out),
      border-color var(--sj-motion-dur-fast) var(--sj-motion-ease-out),
      color var(--sj-motion-dur-fast) var(--sj-motion-ease-out);
  }
  .sj-btn:active {
    transform: scale(0.97);
  }

  .sj-btn.is-primary {
    background: var(--sj-color-accent-primary);
    border-color: var(--sj-color-accent-primary);
    color: var(--sj-color-accent-on-fill);
    font-weight: 700;
  }

  .sj-btn.is-ghost {
    background: transparent;
    border-color: var(--sj-color-border-subtle);
    color: var(--sj-color-text-secondary);
  }

  .sj-btn.is-compact {
    min-height: 44px;
    padding: 0 14px;
    font-size: 13px;
  }

  /* Linear-style cursor spotlight primitive */
  .sj-spotlight {
    position: relative;
    overflow: hidden;
  }
  .sj-spotlight::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(
      340px circle at var(--sj-mx, 50%) var(--sj-my, 50%),
      var(--sj-color-accent-glow),
      transparent 65%
    );
    transition: opacity var(--sj-motion-dur-base) var(--sj-motion-ease-out);
  }

  .sj-skip {
    position: absolute;
    left: -9999px;
    top: var(--sj-space-12);
    z-index: var(--sj-z-modal);
    padding: 10px 16px;
    border-radius: var(--sj-radius-sm);
    background: var(--sj-color-accent-primary);
    color: var(--sj-color-accent-on-fill);
    font-weight: 700;
  }
  .sj-skip:focus {
    left: var(--sj-space-16);
  }

  @media (hover: hover) and (pointer: fine) {
    .sj-btn:hover {
      background: var(--sj-color-bg-raised);
      border-color: var(--sj-color-border-control);
    }
    .sj-btn.is-primary:hover {
      background: var(--sj-color-accent-hover);
      border-color: var(--sj-color-accent-hover);
      color: var(--sj-color-accent-on-fill);
    }
    .sj-btn.is-ghost:hover {
      background: var(--sj-color-bg-surface);
      color: var(--sj-color-text-primary);
    }
    .sj-spotlight:hover::before {
      opacity: 1;
    }
  }
}

@layer archetypes {
  /* ===== NAVIGATION + SCROLL PROGRESS ===== */
  .sj-nav {
    position: sticky;
    top: 0;
    z-index: var(--sj-z-nav);
    background: var(--sj-color-bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--sj-color-border-subtle);
  }
  .sj-scroll-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--sj-color-accent-primary);
    transform: scaleX(0);
    transform-origin: left center;
    pointer-events: none;
  }
  .sj-nav-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sj-space-24);
  }
  .sj-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    font-family: var(--sj-font-family-display);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--sj-color-text-primary);
    white-space: nowrap;
  }
  .sj-brand svg {
    width: 24px;
    height: 24px;
    flex: none;
  }
  .sj-nav-links {
    display: flex;
    align-items: center;
    gap: var(--sj-space-24);
  }
  .sj-nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 14px;
    font-weight: 500;
    color: var(--sj-color-text-secondary);
    white-space: nowrap;
    transition: color var(--sj-motion-dur-fast) var(--sj-motion-ease-out);
  }
  .sj-nav-links a[aria-current="page"] {
    color: var(--sj-color-text-primary);
    font-weight: 700;
  }

  /* ===== HERO STAGE ===== */
  .sj-hero {
    position: relative;
    overflow: hidden;
    padding-block: var(--sj-space-88) var(--sj-space-88);
    border-bottom: 1px solid var(--sj-color-border-subtle);
  }
  .sj-hero-bgtype {
    position: absolute;
    left: -4vw;
    bottom: -24px;
    z-index: var(--sj-z-base);
    font-family: var(--sj-font-family-display);
    font-size: clamp(4.75rem, 13vw, 11.5rem);
    font-weight: 700;
    line-height: 0.88;
    letter-spacing: -0.05em;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 1px var(--sj-color-border-subtle);
    opacity: 0.42;
    pointer-events: none;
    user-select: none;
    will-change: transform;
  }
  .sj-dot-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: var(--sj-z-canvas);
    pointer-events: none;
  }
  .sj-hero-grid {
    position: relative;
    z-index: var(--sj-z-content);
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
    gap: var(--sj-space-48);
    align-items: end;
  }
  .sj-hero-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sj-space-24);
  }
  .sj-hero-title {
    font-family: var(--sj-font-family-display);
    font-size: clamp(2.5rem, 5.4vw, 4.5rem);
    line-height: 1.04;
    font-weight: 700;
    letter-spacing: -0.035em;
    text-wrap: balance;
    color: var(--sj-color-text-primary);
  }
  .sj-hero-title em {
    font-style: normal;
    color: var(--sj-color-accent-primary);
  }
  .sj-hero-copy {
    display: flex;
    flex-direction: column;
    gap: var(--sj-space-8);
    max-width: 56ch;
  }
  .sj-hero-kr {
    font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
    font-weight: 500;
    line-height: 1.55;
    color: var(--sj-color-text-primary);
  }
  .sj-hero-en {
    font-size: 15px;
    line-height: 1.6;
    color: var(--sj-color-text-secondary);
  }
  .sj-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sj-space-12);
    padding-top: var(--sj-space-8);
  }

  /* Studio Spec Card (Hero Right) */
  .sj-spec-card {
    background: var(--sj-color-bg-surface);
    border: 1px solid var(--sj-color-border-subtle);
    border-radius: var(--sj-radius-lg);
    padding: var(--sj-space-24);
    display: flex;
    flex-direction: column;
    gap: var(--sj-space-20);
  }
  .sj-spec-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sj-space-16);
    padding-bottom: var(--sj-space-16);
    border-bottom: 1px solid var(--sj-color-border-subtle);
  }
  .sj-spec-emblem {
    width: 60px;
    height: 60px;
    border-radius: var(--sj-radius-md);
    background: var(--sj-color-bg-sunken);
    border: 1px solid var(--sj-color-border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
  }
  .sj-spec-emblem svg {
    width: 40px;
    height: 40px;
  }
  .sj-spec-id {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: right;
  }
  .sj-spec-id strong {
    font-family: var(--sj-font-family-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--sj-color-text-primary);
  }
  .sj-spec-id span {
    font-family: var(--sj-font-family-mono);
    font-size: 12px;
    color: var(--sj-color-text-tertiary);
  }
  .sj-spec-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sj-space-16);
  }
  .sj-spec-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .sj-spec-item dt {
    font-family: var(--sj-font-family-mono);
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--sj-color-text-tertiary);
  }
  .sj-spec-item dd {
    font-size: 14px;
    font-weight: 600;
    color: var(--sj-color-text-primary);
  }
  .sj-spec-signal {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: var(--sj-space-12);
    border-top: 1px solid var(--sj-color-border-subtle);
    font-family: var(--sj-font-family-mono);
    font-size: 10.5px;
    letter-spacing: 0.05em;
    color: var(--sj-color-text-tertiary);
  }

  /* 3D Perspective Tilt Primitive (fine pointer enhanced via JS) */
  .sj-tilt {
    transform-style: preserve-3d;
    will-change: transform;
  }

  /* ===== KINETIC SIGNAL MARQUEE ===== */
  .sj-marquee {
    position: relative;
    overflow: hidden;
    background: var(--sj-color-bg-sunken);
    border-bottom: 1px solid var(--sj-color-border-subtle);
    padding-block: 14px;
    user-select: none;
  }
  .sj-marquee-track {
    display: flex;
    width: max-content;
    animation: sj-marquee-scroll 30s linear infinite;
    will-change: transform;
  }
  .sj-marquee-group {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-right: 28px;
    font-family: var(--sj-font-family-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--sj-color-text-secondary);
    white-space: nowrap;
  }
  .sj-marquee-dot {
    color: var(--sj-color-accent-primary);
    font-size: 9px;
  }
  @keyframes sj-marquee-scroll {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
  }

  /* ===== SECTIONS ===== */
  .sj-section {
    padding-block: var(--sj-zone-section-gap-desktop);
    border-bottom: 1px solid var(--sj-color-border-subtle);
  }
  .sj-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--sj-space-24);
    margin-bottom: var(--sj-space-40);
  }
  .sj-section-title-group {
    display: flex;
    flex-direction: column;
    gap: var(--sj-space-8);
  }
  .sj-section-title {
    font-family: var(--sj-font-family-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-wrap: balance;
    color: var(--sj-color-text-primary);
  }
  .sj-section-lead {
    max-width: 50ch;
    font-size: 15px;
    color: var(--sj-color-text-secondary);
  }

  /* ===== INTERACTIVE PRODUCT DEEP-DIVE STAGE ===== */
  .sj-stage-shell {
    background: var(--sj-color-bg-surface);
    border: 1px solid var(--sj-color-border-subtle);
    border-radius: var(--sj-radius-lg);
    overflow: hidden;
    margin-bottom: var(--sj-space-24);
  }
  .sj-stage-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid var(--sj-color-border-subtle);
    background: var(--sj-color-bg-sunken);
  }
  .sj-stage-tab {
    position: relative;
    appearance: none;
    border: 0;
    border-right: 1px solid var(--sj-color-border-subtle);
    background: transparent;
    padding: 16px 20px;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sj-space-12);
    cursor: pointer;
    text-align: left;
    color: var(--sj-color-text-tertiary);
    transition:
      background-color var(--sj-motion-dur-fast) var(--sj-motion-ease-out),
      color var(--sj-motion-dur-fast) var(--sj-motion-ease-out);
  }
  .sj-stage-tab-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--sj-color-accent-primary);
    transform: scaleX(0);
    transform-origin: left center;
    opacity: 0;
    pointer-events: none;
  }
  .sj-stage-tab[aria-selected="true"] .sj-stage-tab-progress {
    opacity: 1;
  }
  .sj-stage-tab:last-child {
    border-right: 0;
  }
  .sj-stage-tab-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }
  .sj-stage-tab-num {
    font-family: var(--sj-font-family-mono);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--sj-color-text-tertiary);
    white-space: nowrap;
  }
  .sj-stage-tab-name {
    font-family: var(--sj-font-family-display);
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
  }
  .sj-stage-tab-ind {
    width: 8px;
    height: 8px;
    border-radius: var(--sj-radius-pill);
    background: var(--sj-color-border-default);
    flex: none;
    transition:
      background-color var(--sj-motion-dur-fast) var(--sj-motion-ease-out),
      transform var(--sj-motion-dur-fast) var(--sj-motion-ease-out);
  }
  .sj-stage-tab[aria-selected="true"] {
    background: var(--sj-color-bg-surface);
    color: var(--sj-color-text-primary);
  }
  .sj-stage-tab[aria-selected="true"] .sj-stage-tab-num {
    color: var(--sj-color-accent-primary);
  }
  .sj-stage-tab[aria-selected="true"] .sj-stage-tab-ind {
    background: var(--sj-color-accent-primary);
    transform: scale(1.15);
  }

  .sj-stage-body {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    align-items: stretch;
  }
  .sj-stage-media {
    min-width: 0;
    width: 100%;
    background: var(--sj-color-bg-sunken);
    border-right: 1px solid var(--sj-color-border-subtle);
    padding: var(--sj-space-24);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sj-space-12);
  }
  .sj-stage-media-bar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sj-space-12);
  }
  .sj-stage-media-caption {
    font-family: var(--sj-font-family-mono);
    font-size: 11px;
    letter-spacing: 0.05em;
    color: var(--sj-color-text-tertiary);
  }
  .sj-stage-auto-btn {
    appearance: none;
    border: 1px solid var(--sj-color-border-subtle);
    background: var(--sj-color-bg-surface);
    color: var(--sj-color-text-secondary);
    border-radius: var(--sj-radius-pill);
    min-height: 32px;
    padding: 4px 12px;
    font-family: var(--sj-font-family-mono);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition:
      border-color var(--sj-motion-dur-fast) var(--sj-motion-ease-out),
      color var(--sj-motion-dur-fast) var(--sj-motion-ease-out);
  }
  .sj-stage-auto-btn[aria-pressed="true"] {
    border-color: var(--sj-color-accent-primary);
    color: var(--sj-color-text-primary);
  }
  .sj-stage-video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: var(--sj-radius-md);
    border: 1px solid var(--sj-color-border-subtle);
    background: var(--sj-color-bg-canvas);
    overflow: hidden;
  }
  .sj-stage-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.985);
    transition:
      opacity var(--sj-motion-dur-base) var(--sj-motion-ease-out),
      transform var(--sj-motion-dur-base) var(--sj-motion-ease-out);
  }
  .sj-stage-video.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
  }

  .sj-stage-detail {
    min-width: 0;
    padding: var(--sj-space-32);
    background: var(--sj-color-bg-surface);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .sj-stage-panel {
    display: none;
    flex-direction: column;
    gap: var(--sj-space-20);
    height: 100%;
  }
  .sj-stage-panel.is-active {
    display: flex;
    animation: sj-panel-in 260ms var(--sj-motion-ease-out) both;
  }
  @keyframes sj-panel-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .sj-stage-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .sj-stage-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sj-space-12);
  }
  .sj-stage-title {
    font-family: var(--sj-font-family-display);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--sj-color-text-primary);
  }
  .sj-stage-title span {
    font-family: var(--sj-font-family-body);
    font-size: 16px;
    font-weight: 500;
    color: var(--sj-color-text-tertiary);
    margin-left: 8px;
  }
  .sj-stage-for {
    margin-top: 4px;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--sj-color-text-secondary);
  }
  .sj-stage-for strong {
    color: var(--sj-color-accent-primary);
    font-weight: 600;
  }
  .sj-why-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: var(--sj-space-16);
    border-top: 1px solid var(--sj-color-border-subtle);
  }
  .sj-mini-label {
    font-family: var(--sj-font-family-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sj-color-text-tertiary);
  }
  .sj-why-kr {
    font-size: 15px;
    color: var(--sj-color-text-primary);
    line-height: 1.6;
  }
  .sj-why-en {
    font-size: 13.5px;
    color: var(--sj-color-text-secondary);
    line-height: 1.55;
  }

  .sj-cap-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .sj-cap-item {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
    align-items: baseline;
    font-size: 14px;
    color: var(--sj-color-text-secondary);
    line-height: 1.5;
  }
  .sj-cap-item strong {
    color: var(--sj-color-text-primary);
    font-weight: 600;
  }
  .sj-cap-num {
    font-family: var(--sj-font-family-mono);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--sj-color-accent-primary);
  }

  .sj-stage-foot {
    margin-top: auto;
    padding-top: var(--sj-space-16);
    border-top: 1px solid var(--sj-color-border-subtle);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--sj-space-12);
  }

  /* ===== WORKS SUMMARY GRID (4 CARDS) ===== */
  .sj-works-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sj-zone-grid-gap-desktop);
    align-items: stretch;
  }
  .sj-work-card {
    background: var(--sj-color-bg-surface);
    border: 1px solid var(--sj-color-border-subtle);
    border-radius: var(--sj-radius-md);
    padding: var(--sj-space-24);
    display: flex;
    flex-direction: column;
    gap: var(--sj-space-12);
    transition:
      transform var(--sj-motion-dur-base) var(--sj-motion-ease-out),
      border-color var(--sj-motion-dur-fast) var(--sj-motion-ease-out);
  }
  .sj-work-card.is-selected {
    border-color: var(--sj-color-accent-primary);
  }
  .sj-work-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sj-space-12);
  }
  .sj-work-code {
    font-family: var(--sj-font-family-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--sj-color-accent-primary);
    white-space: nowrap;
  }
  .sj-work-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--sj-font-family-mono);
    font-size: 11.5px;
    color: var(--sj-color-text-secondary);
    white-space: nowrap;
  }
  .sj-work-title {
    font-family: var(--sj-font-family-display);
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--sj-color-text-primary);
  }
  .sj-work-title span {
    font-family: var(--sj-font-family-body);
    font-size: 14.5px;
    font-weight: 500;
    color: var(--sj-color-text-tertiary);
    margin-left: 6px;
  }
  .sj-work-desc {
    font-size: 14.5px;
    color: var(--sj-color-text-secondary);
    line-height: 1.55;
  }
  .sj-work-foot {
    margin-top: auto;
    padding-top: var(--sj-space-16);
    border-top: 1px solid var(--sj-color-border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sj-space-12);
  }
  .sj-work-plat {
    font-family: var(--sj-font-family-mono);
    font-size: 12px;
    color: var(--sj-color-text-tertiary);
  }
  .sj-work-actions {
    display: inline-flex;
    align-items: center;
    gap: var(--sj-space-16);
  }
  .sj-work-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 44px;
    font-family: var(--sj-font-family-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--sj-color-text-primary);
    white-space: nowrap;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: color var(--sj-motion-dur-fast) var(--sj-motion-ease-out);
  }
  .sj-work-link.is-subtle {
    color: var(--sj-color-text-secondary);
    font-family: var(--sj-font-family-body);
    font-size: 13px;
    font-weight: 600;
  }

  /* ===== WHY STUDIO JUMJUM (SCROLL-SCRUBBED RAIL + ECOSYSTEM + PRINCIPLES) ===== */
  .sj-eco-rail {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
    height: 36px;
    margin-bottom: var(--sj-space-16);
  }
  .sj-eco-rail-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }
  .sj-eco-track-bg {
    stroke: var(--sj-color-border-subtle);
    stroke-width: 2;
  }
  .sj-eco-track-beam {
    stroke: var(--sj-color-accent-primary);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 740;
    stroke-dashoffset: 740;
  }
  .sj-eco-node {
    position: relative;
    z-index: var(--sj-z-base);
    width: 30px;
    height: 30px;
    border-radius: var(--sj-radius-pill);
    background: var(--sj-color-bg-canvas);
    border: 1.5px solid var(--sj-color-border-default);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--sj-font-family-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--sj-color-text-tertiary);
    transition:
      border-color var(--sj-motion-dur-base) var(--sj-motion-ease-out),
      background-color var(--sj-motion-dur-base) var(--sj-motion-ease-out),
      color var(--sj-motion-dur-base) var(--sj-motion-ease-out),
      transform var(--sj-motion-dur-base) var(--sj-motion-ease-out);
  }
  .sj-eco-node.is-lit {
    border-color: var(--sj-color-accent-primary);
    background: var(--sj-color-accent-primary);
    color: var(--sj-color-accent-on-fill);
    transform: scale(1.1);
  }
  .sj-ecosystem {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sj-zone-grid-gap-desktop);
    margin-bottom: var(--sj-space-24);
  }
  .sj-eco-step {
    background: var(--sj-color-bg-sunken);
    border: 1px solid var(--sj-color-border-subtle);
    border-radius: var(--sj-radius-md);
    padding: var(--sj-space-24);
    display: flex;
    flex-direction: column;
    gap: var(--sj-space-12);
    transition:
      border-color var(--sj-motion-dur-base) var(--sj-motion-ease-out),
      background-color var(--sj-motion-dur-base) var(--sj-motion-ease-out),
      transform var(--sj-motion-dur-base) var(--sj-motion-ease-out);
  }
  .sj-eco-step.is-lit {
    border-color: var(--sj-color-accent-primary);
    background: var(--sj-color-bg-surface);
  }
  .sj-eco-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sj-space-8);
  }
  .sj-eco-step h3 {
    font-family: var(--sj-font-family-display);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--sj-color-text-primary);
  }
  .sj-eco-step p {
    font-size: 14.5px;
    color: var(--sj-color-text-secondary);
    line-height: 1.6;
  }
  .sj-eco-tag {
    margin-top: auto;
    padding-top: var(--sj-space-12);
    font-family: var(--sj-font-family-mono);
    font-size: 12px;
    color: var(--sj-color-text-tertiary);
  }

  .sj-principles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sj-zone-grid-gap-desktop);
  }
  .sj-principle-card {
    background: var(--sj-color-bg-surface);
    border: 1px solid var(--sj-color-border-subtle);
    border-radius: var(--sj-radius-md);
    padding: var(--sj-space-24);
    display: flex;
    flex-direction: column;
    gap: var(--sj-space-12);
  }
  .sj-principle-num {
    font-family: var(--sj-font-family-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--sj-color-accent-primary);
  }
  .sj-principle-card h3 {
    font-family: var(--sj-font-family-display);
    font-size: 18.5px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-wrap: balance;
    color: var(--sj-color-text-primary);
  }
  .sj-principle-card p {
    font-size: 14.5px;
    color: var(--sj-color-text-secondary);
    line-height: 1.6;
  }

  /* ===== FAQ (AEO DIRECT ANSWERS) ===== */
  .sj-faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--sj-space-12);
  }
  .sj-faq-item {
    background: var(--sj-color-bg-surface);
    border: 1px solid var(--sj-color-border-subtle);
    border-radius: var(--sj-radius-md);
    transition:
      border-color var(--sj-motion-dur-fast) var(--sj-motion-ease-out),
      background-color var(--sj-motion-dur-fast) var(--sj-motion-ease-out);
  }
  .sj-faq-item[open] {
    border-color: var(--sj-color-border-default);
  }
  .sj-faq-q {
    list-style: none;
    cursor: pointer;
    padding: 18px 22px;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sj-space-16);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--sj-color-text-primary);
  }
  .sj-faq-q::-webkit-details-marker {
    display: none;
  }
  .sj-faq-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--sj-font-family-mono);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--sj-color-accent-primary);
    flex: none;
    transition: transform var(--sj-motion-dur-fast) var(--sj-motion-ease-out);
  }
  .sj-faq-item[open] .sj-faq-icon {
    transform: rotate(45deg);
  }
  .sj-faq-a {
    padding: 0 22px 20px;
    font-size: 14.5px;
    line-height: 1.68;
    color: var(--sj-color-text-secondary);
    max-width: 78ch;
  }

  /* ===== CONTACT ===== */
  .sj-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sj-zone-grid-gap-desktop);
  }
  .sj-contact-card {
    background: var(--sj-color-bg-surface);
    border: 1px solid var(--sj-color-border-subtle);
    border-radius: var(--sj-radius-md);
    padding: var(--sj-space-24);
    display: flex;
    flex-direction: column;
    gap: var(--sj-space-16);
  }
  .sj-contact-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--sj-space-12);
  }
  .sj-contact-email {
    font-family: var(--sj-font-family-mono);
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    font-weight: 600;
    color: var(--sj-color-text-primary);
    text-decoration: underline;
    text-decoration-color: var(--sj-color-border-default);
    text-underline-offset: 4px;
  }
  .sj-contact-note {
    font-size: 14px;
    color: var(--sj-color-text-secondary);
  }

  /* ===== LEGAL PAGES (/privacy/, /terms/) ===== */
  .sj-legal-hero {
    padding-block: var(--sj-space-64) var(--sj-space-40);
    border-bottom: 1px solid var(--sj-color-border-subtle);
  }
  .sj-legal-hero h1 {
    font-family: var(--sj-font-family-display);
    font-size: clamp(1.875rem, 3.6vw, 2.875rem);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-top: var(--sj-space-12);
    text-wrap: balance;
  }
  .sj-legal-hero p {
    margin-top: var(--sj-space-12);
    max-width: 60ch;
    font-size: 15.5px;
    color: var(--sj-color-text-secondary);
  }
  .sj-legal-body {
    padding-block: var(--sj-space-48) var(--sj-space-88);
  }
  .sj-legal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sj-space-32);
  }
  .sj-legal-col {
    display: flex;
    flex-direction: column;
    gap: var(--sj-space-24);
  }
  .sj-legal-block {
    background: var(--sj-color-bg-surface);
    border: 1px solid var(--sj-color-border-subtle);
    border-radius: var(--sj-radius-md);
    padding: var(--sj-space-24);
    display: flex;
    flex-direction: column;
    gap: var(--sj-space-8);
  }
  .sj-legal-block h2 {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--sj-color-text-primary);
  }
  .sj-legal-block p {
    font-size: 14.5px;
    color: var(--sj-color-text-secondary);
    line-height: 1.65;
  }

  /* ===== FOOTER / COLOPHON ===== */
  .sj-footer {
    background: var(--sj-color-bg-sunken);
    padding-block: var(--sj-space-64) var(--sj-space-40);
  }
  .sj-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr);
    gap: var(--sj-space-40);
    padding-bottom: var(--sj-space-40);
    border-bottom: 1px solid var(--sj-color-border-subtle);
  }
  .sj-footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--sj-space-12);
  }
  .sj-footer-summary {
    font-size: 14px;
    color: var(--sj-color-text-secondary);
    max-width: 40ch;
  }
  .sj-legal-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sj-space-24);
  }
  .sj-fact-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: var(--sj-color-text-tertiary);
    line-height: 1.6;
  }
  .sj-fact-col strong {
    color: var(--sj-color-text-primary);
    font-weight: 600;
  }
  .sj-footer-bottom {
    padding-top: var(--sj-space-24);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--sj-space-16);
    font-size: 13px;
    color: var(--sj-color-text-tertiary);
  }
  .sj-footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sj-space-20);
  }
  .sj-footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--sj-color-text-secondary);
    white-space: nowrap;
    transition: color var(--sj-motion-dur-fast) var(--sj-motion-ease-out);
  }

  /* ===== HOVER (POINTER-FINE GUARDED) ===== */
  @media (hover: hover) and (pointer: fine) {
    .sj-marquee:hover .sj-marquee-track {
      animation-play-state: paused;
    }
    .sj-stage-auto-btn:hover {
      border-color: var(--sj-color-accent-primary);
      color: var(--sj-color-text-primary);
    }
    .sj-faq-item:hover {
      border-color: var(--sj-color-border-control);
    }
    .sj-nav-links a:hover,
    .sj-footer-links a:hover {
      color: var(--sj-color-text-primary);
    }
    .sj-stage-tab:hover {
      color: var(--sj-color-text-primary);
      background: var(--sj-color-bg-raised);
    }
    .sj-stage-tab[aria-selected="true"]:hover {
      background: var(--sj-color-bg-surface);
    }
    .sj-work-card:hover {
      border-color: var(--sj-color-border-control);
      transform: translateY(-2px);
    }
    .sj-work-card.is-selected:hover {
      border-color: var(--sj-color-accent-primary);
    }
    .sj-work-link:hover {
      color: var(--sj-color-accent-primary);
    }
    .sj-contact-email:hover {
      color: var(--sj-color-accent-primary);
      text-decoration-color: var(--sj-color-accent-primary);
    }
  }

  /* ===== SCROLL REVEAL ===== */
  .sj-reveal {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
    transition:
      opacity 440ms var(--sj-motion-ease-out),
      transform 440ms var(--sj-motion-ease-out);
  }
  .sj-reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  /* ===== RESPONSIVE ===== */
  @media (max-width: 960px) {
    .sj-eco-rail {
      display: none;
    }
    .sj-hero-bgtype {
      font-size: clamp(3.5rem, 15vw, 5.5rem);
      bottom: -8px;
    }
    .sj-hero-grid,
    .sj-stage-body,
    .sj-works-grid,
    .sj-ecosystem,
    .sj-principles,
    .sj-contact-grid,
    .sj-legal-grid,
    .sj-footer-grid {
      grid-template-columns: minmax(0, 1fr);
    }
    .sj-stage-media {
      border-right: 0;
      border-bottom: 1px solid var(--sj-color-border-subtle);
    }
    .sj-hero {
      padding-block: var(--sj-space-48) var(--sj-space-64);
    }
    .sj-section {
      padding-block: var(--sj-zone-section-gap-mobile);
    }
  }

  @media (max-width: 640px) {
    .sj-container {
      padding-inline: var(--sj-zone-page-inline-mobile);
    }
    .sj-nav-cta {
      display: none;
    }
    .sj-nav-links {
      gap: var(--sj-space-16);
    }
    .sj-stage-tabs {
      grid-template-columns: minmax(0, 1fr);
    }
    .sj-stage-tab {
      border-right: 0;
      border-bottom: 1px solid var(--sj-color-border-subtle);
      padding: 13px 16px;
    }
    .sj-stage-tab:last-child {
      border-bottom: 0;
    }
    .sj-stage-detail {
      padding: var(--sj-space-20);
    }
    .sj-legal-facts {
      grid-template-columns: minmax(0, 1fr);
    }
    .sj-work-card,
    .sj-eco-step,
    .sj-principle-card,
    .sj-contact-card,
    .sj-legal-block,
    .sj-spec-card {
      padding: var(--sj-space-20);
    }
  }
}

@layer utilities {
  .sj-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }
    .sj-dot-pulse,
    .sj-marquee-track,
    .sj-stage-panel.is-active {
      animation: none !important;
    }
    .sj-eco-track-beam {
      stroke-dashoffset: 0 !important;
    }
    .sj-reveal {
      opacity: 1 !important;
      transform: none !important;
      transition: none !important;
    }
    .sj-work-card,
    .sj-eco-step,
    .sj-eco-node,
    .sj-btn,
    .sj-stage-video,
    .sj-spotlight::before {
      transition: none !important;
    }
  }
}
