/* Portfolio page (/workSamples): all visual rules are scoped to this page.
   CTA appearance is inherited from the shared homepage avatar-btn.
   Color/spacing tokens are reused from the hosting hub redesign (#7057e8
   accent, #10155c ink, #777998 muted text, #e1f6ff/#358ee4 badge) so this
   page sits visually next to hosting/domain rather than inventing a new
   palette. */
.worksamples-page { background: #fff; color: #10155c; }
.worksamples-page main { text-align: right; }
.worksamples-page main h1,
.worksamples-page main h2,
.worksamples-page main h3 { color: #10155c; font-family: inherit; }
.worksamples-page main p { font-size: 14px; line-height: 2; color: #777998; margin: 0 0 20px; }
.worksamples-page [hidden] { display: none !important; }

.worksamples-page .ws-badge { display: inline-block; border-radius: 12px; background: #e1f6ff; color: #358ee4; padding: 6px 14px; font-size: 12.5px; font-weight: 700; margin-bottom: 16px; }

.worksamples-page .ws-section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.worksamples-page .ws-section-head h2 { font-size: 30px; line-height: 1.6; font-weight: 800; margin: 0 0 14px; }
.worksamples-page .ws-section-head p { margin: 0; font-size: 14px; }
.worksamples-page .ws-section-head--right { max-width: none; margin: 0; text-align: right; }

/* ----- decorative dot grid (same recipe as growthGrid/portshow) ----- */
.worksamples-page .ws-dots { position: absolute; width: 160px; height: 160px; background-image: radial-gradient(rgba(16, 21, 92, .14) 1.6px, transparent 1.6px); background-size: 20px 20px; z-index: 0; opacity: .7; }
.worksamples-page .ws-dots--tl { top: 12%; left: -20px; width: 110px; height: 130px; }

/* ===================== INTRO ===================== */
.worksamples-page .ws-hero { position: relative; overflow: hidden; padding: 155px 0 60px; background: radial-gradient(ellipse at 20% 30%, #eae3ff, transparent 50%), linear-gradient(115deg, #f8f6ff, #eff8ff); }
.worksamples-page .ws-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; gap: 50px; }
.worksamples-page .ws-eyebrow { display: inline-block; padding: 7px 17px; margin-bottom: 20px; border-radius: 30px; background: #e8e4ff; color: #7151f6; font-size: 13px; font-weight: 600; }
.worksamples-page .ws-hero h1 { font-size: 40px; line-height: 1.55; font-weight: 800; margin: 0 0 18px; }
.worksamples-page .ws-hero-copy > p { font-size: 15.5px; max-width: 560px; margin: 0 0 30px; }

.worksamples-page .ws-hero-code,
.worksamples-page .ws-band-code {
    justify-self: center;
    background: #fff;
    border-radius: 18px;
    padding: 26px 30px;
    box-shadow: 0 25px 60px #6753d52b;
    transform: rotate(-2deg);
    font-family: Consolas, 'Courier New', monospace;
    direction: ltr;
    text-align: left;
    font-size: 14px;
    line-height: 2;
}
.worksamples-page .ws-hero-code-line { display: block; white-space: pre; }
.worksamples-page .ws-hero-code-indent { padding-right: 22px; }
.worksamples-page .ws-code-tag { color: #5942ff; font-weight: 700; }
.worksamples-page .ws-code-attr { color: #ce39cf; }
.worksamples-page .ws-code-val { color: #00a37a; }

/* ===================== SECTION A — FEATURED STAGE ===================== */
.worksamples-page .ws-stage-section { position: relative; padding: 30px 0 70px; overflow: hidden; }

.worksamples-page .ws-stage { position: relative; z-index: 1; display: flex; align-items: stretch; gap: 46px; margin-bottom: 26px; }

.worksamples-page .ws-stage-content { position: relative; flex: 0 0 40%; min-width: 0; display: flex; flex-direction: column; justify-content: center; }

.worksamples-page .ws-stage-ghost { position: absolute; top: -50px; right: -6px; font-size: 130px; font-weight: 800; line-height: 1; color: #10155c; opacity: .05; z-index: 0; pointer-events: none; }

.worksamples-page .ws-stage-nav-row { position: relative; z-index: 1; display: flex; align-items: center; gap: 20px; margin-bottom: 26px; }
.worksamples-page .ws-counter { display: flex; align-items: baseline; gap: 6px; font-weight: 800; }
.worksamples-page .ws-counter-current { font-size: 38px; color: #7057e8; line-height: 1; }
.worksamples-page .ws-counter-sep,
.worksamples-page .ws-counter-total { font-size: 15px; color: #b8b4d6; }
.worksamples-page .ws-arrows { display: flex; align-items: center; gap: 10px; }
.worksamples-page .ws-arrow { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid #d8d2f2; background: #fff; color: #7057e8; font-size: 14px; cursor: pointer; transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease; }
.worksamples-page .ws-arrow:hover { background: #f1effc; border-color: #7057e8; transform: translateY(-2px); }
.worksamples-page .ws-arrow--filled { background: #7057e8; border-color: #7057e8; color: #fff; }
.worksamples-page .ws-arrow--filled:hover { background: #5b48cc; border-color: #5b48cc; }
.worksamples-page .ws-arrow:focus-visible { outline: 2px solid #10155c; outline-offset: 2px; }

/* CSS-grid stacking so the panel wrapper auto-sizes to the tallest active
   panel at any width (see [[feedback_media_query_source_order]] — the same
   trick portshow uses to avoid a min-height guess). */
.worksamples-page .ws-panels { position: relative; z-index: 1; display: grid; }
.worksamples-page .ws-panel { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .5s ease; }
.worksamples-page .ws-panel.is-active { opacity: 1; visibility: visible; }
.worksamples-page .ws-panel-subject { display: block; font-size: 13px; color: #7057e8; font-weight: 700; margin-bottom: 8px; }
.worksamples-page .ws-panel h3 { font-size: 27px; font-weight: 800; margin: 0 0 14px; line-height: 1.4; }
.worksamples-page .ws-panel-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.worksamples-page .ws-chip { font-size: 12.5px; font-weight: 700; color: #7057e8; background: #edebfb; padding: 7px 14px; border-radius: 20px; }
.worksamples-page .ws-chip--category { color: #358ee4; background: #e1f6ff; }
.worksamples-page .ws-panel-desc { font-size: 14.5px; line-height: 1.9; color: #5b5b72; margin: 0 0 18px; max-width: 34em; }
.worksamples-page .ws-panel-features { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 9px; }
.worksamples-page .ws-panel-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: #4a4a63; }
.worksamples-page .ws-panel-features i { color: #2fae83; font-size: 13px; margin-top: 4px; flex: 0 0 auto; }
.worksamples-page .ws-panel-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.worksamples-page .ws-stage-mockup-col { position: relative; flex: 0 0 60%; min-width: 0; display: flex; align-items: center; justify-content: center; }
.worksamples-page .ws-stage-blob { position: absolute; top: -4%; left: -4%; width: 90%; height: 100%; background: #fbde93; opacity: .55; border-radius: 48% 52% 55% 45% / 52% 48% 52% 48%; z-index: 0; }
.worksamples-page .ws-stage-dots { position: absolute; bottom: -2%; left: 4%; width: 90px; height: 90px; background-image: radial-gradient(rgba(112, 87, 232, .25) 1.6px, transparent 1.6px); background-size: 14px 14px; z-index: 0; }

.worksamples-page .ws-stage-mockups { position: relative; z-index: 1; width: 100%; aspect-ratio: 8 / 5; cursor: grab; touch-action: pan-y; }
.worksamples-page .ws-stage-mockups:active { cursor: grabbing; }
.worksamples-page .ws-mockup-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .5s ease, transform .5s ease; }
.worksamples-page .ws-mockup-slide.is-active { opacity: 1; visibility: visible; }
.worksamples-page .ws-mockup-shot { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.worksamples-page .ws-mockup-shot img { display: block; width: 100%; height: 100%; -o-object-fit: contain; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.worksamples-page .ws-mockup-logo { position: absolute; z-index: 2; top: 6%; left: 4%; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 16px; background: #fff; box-shadow: 0 12px 28px #10155c1f; padding: 10px; }
.worksamples-page .ws-mockup-logo img { max-width: 100%; max-height: 100%; -o-object-fit: contain; object-fit: contain; }

.worksamples-page .ws-drag-cue { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 12.5px; color: #9490b3; }
.worksamples-page .ws-drag-cue i { color: #7057e8; }

/* ----- bottom index strip (numbered navigator) ----- */
.worksamples-page .ws-index-strip { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; padding-top: 24px; border-top: 1px solid #edeaf8; }
.worksamples-page .ws-index-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 30px; border: 1.5px solid #edeaf8; background: #fff; cursor: pointer; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; max-width: 220px; }
.worksamples-page .ws-index-num { font-size: 12px; font-weight: 800; color: #b8b4d6; flex: 0 0 auto; }
.worksamples-page .ws-index-title { font-size: 12.5px; font-weight: 600; color: #5b5b72; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.worksamples-page .ws-index-item:hover { border-color: #d8d2f2; }
.worksamples-page .ws-index-item.is-active { border-color: #7057e8; background: #f7f5ff; box-shadow: 0 6px 18px #7057e81f; }
.worksamples-page .ws-index-item.is-active .ws-index-num,
.worksamples-page .ws-index-item.is-active .ws-index-title { color: #7057e8; }
.worksamples-page .ws-index-item:focus-visible { outline: 2px solid #10155c; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    .worksamples-page .ws-panel,
    .worksamples-page .ws-mockup-slide { transition: none; }
}

/* ===================== MID BAND ===================== */
.worksamples-page .ws-band { position: relative; padding: 70px 0; background: #10155c; overflow: hidden; }
.worksamples-page .ws-band-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr); align-items: center; gap: 30px; }
.worksamples-page .ws-band .ws-badge { background: rgba(255, 255, 255, .1); color: #cfd0ff; }
.worksamples-page .ws-band-center { text-align: center; }
.worksamples-page .ws-band-center h2 { color: #fff; font-size: 30px; font-weight: 800; line-height: 1.5; direction: ltr; margin: 0 0 20px; }
.worksamples-page .ws-band-center h2 span { color: #8a7bff; }
.worksamples-page .ws-band-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.worksamples-page .ws-band-tags span { font-size: 12px; font-weight: 700; color: #cfd0ff; background: rgba(255, 255, 255, .08); padding: 7px 16px; border-radius: 20px; }
.worksamples-page .ws-band-text { margin: 0; font-size: 14px; line-height: 2; color: #b7b6de; text-align: right; }
.worksamples-page .ws-band-code { background: rgba(255, 255, 255, .06); box-shadow: none; color: #cfd0ff; }
.worksamples-page .ws-band-code .ws-code-tag { color: #a99bff; }
.worksamples-page .ws-band-code .ws-code-attr { color: #ff8fe0; }
.worksamples-page .ws-band-code .ws-code-val { color: #4be0b0; }

/* ===================== SECTION B — ARCHIVE ===================== */
.worksamples-page .ws-archive-section { padding: 70px 0 90px; }
.worksamples-page .ws-archive-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.worksamples-page .ws-filters { display: flex; flex-wrap: wrap; gap: 10px; flex: 0 0 auto; }
.worksamples-page .ws-filter { padding: 10px 20px; border-radius: 30px; border: 1.5px solid #edeaf8; background: #fff; color: #5b5b72; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.worksamples-page .ws-filter:hover { border-color: #d8d2f2; }
.worksamples-page .ws-filter.is-active { background: #7057e8; border-color: #7057e8; color: #fff; }
.worksamples-page .ws-filter:focus-visible { outline: 2px solid #10155c; outline-offset: 2px; }

.worksamples-page .ws-archive-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.worksamples-page .ws-archive-card { position: relative; display: flex; flex-direction: column; border-radius: 20px; background: #fff; border: 1px solid #f0eefb; box-shadow: 0 10px 30px #6982c00f; overflow: hidden; text-decoration: none; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.worksamples-page .ws-archive-card.is-hidden { display: none; }
.worksamples-page .ws-archive-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px #6753d524; border-color: #e5deff; }
.worksamples-page .ws-archive-thumb { display: block; aspect-ratio: 4 / 3; background: #f7f6fd; padding: 14px; }
.worksamples-page .ws-archive-thumb img { display: block; width: 100%; height: 100%; -o-object-fit: contain; object-fit: contain; transition: transform .4s ease; }
.worksamples-page .ws-archive-card:hover .ws-archive-thumb img { transform: scale(1.04); }
.worksamples-page .ws-archive-body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 20px; }
.worksamples-page .ws-archive-title { font-size: 15.5px; font-weight: 800; color: #10155c; }
.worksamples-page .ws-archive-subject { font-size: 12.5px; color: #8a8aa0; }
.worksamples-page .ws-archive-label { align-self: flex-start; margin-top: 6px; font-size: 11px; font-weight: 700; color: var(--ws-label-color, #7057e8); background: #f5f4fb; border: 1px solid currentColor; padding: 3px 10px; border-radius: 12px; }
.worksamples-page .ws-archive-arrow { position: absolute; top: 16px; left: 16px; z-index: 1; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: #7057e8; font-size: 13px; box-shadow: 0 8px 18px #10155c1a; opacity: 0; transform: translateY(-6px); transition: opacity .25s ease, transform .25s ease; }
.worksamples-page .ws-archive-card:hover .ws-archive-arrow { opacity: 1; transform: translateY(0); }

.worksamples-page .ws-archive-more { display: flex; justify-content: center; margin-top: 40px; }
.worksamples-page .ws-archive-empty { text-align: center; padding: 40px 0 0; margin: 0; }

@media (prefers-reduced-motion: reduce) {
    .worksamples-page .ws-archive-card,
    .worksamples-page .ws-archive-thumb img,
    .worksamples-page .ws-archive-arrow { transition: none; }
}

/* ===================== RESPONSIVE ===================== */
@media only screen and (max-width: 1199px) {
    .worksamples-page .ws-archive-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media only screen and (max-width: 991px) {
    .worksamples-page .ws-hero { padding-top: 140px; }
    .worksamples-page .ws-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 30px; text-align: center; }
    .worksamples-page .ws-hero-copy > p { margin-left: auto; margin-right: auto; }
    .worksamples-page .ws-hero-code { justify-self: center; transform: none; }

    .worksamples-page .ws-stage { flex-direction: column; gap: 34px; }
    .worksamples-page .ws-stage-mockup-col { order: 1; flex: none; }
    .worksamples-page .ws-stage-content { order: 2; flex: none; }
    .worksamples-page .ws-stage-ghost { display: none; }

    .worksamples-page .ws-band-inner { grid-template-columns: minmax(0, 1fr); text-align: center; gap: 24px; }
    .worksamples-page .ws-band-code { display: none; }
    .worksamples-page .ws-band-text { text-align: center; max-width: 520px; margin: 0 auto; }

    .worksamples-page .ws-archive-head { flex-direction: column; align-items: stretch; }
    .worksamples-page .ws-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media only screen and (max-width: 767px) {
    .worksamples-page .ws-hero h1 { font-size: 28px; }
    .worksamples-page .ws-section-head h2 { font-size: 24px; }
    .worksamples-page .ws-section-head--right { text-align: center; margin: 0 auto 26px; }

    .worksamples-page .ws-panel h3 { font-size: 22px; }
    .worksamples-page .ws-panel-actions .avatar-btn { flex: 1 1 auto; justify-content: center; }

    .worksamples-page .ws-index-strip { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
    .worksamples-page .ws-index-item { flex: 0 0 auto; }

    .worksamples-page .ws-band { padding: 50px 0; }
    .worksamples-page .ws-band-center h2 { font-size: 22px; }

    .worksamples-page .ws-archive-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .worksamples-page .ws-archive-body { padding: 12px 14px 16px; }
    .worksamples-page .ws-archive-title { font-size: 13.5px; }
}

@media only screen and (max-width: 575px) {
    .worksamples-page .ws-hero { padding-top: 125px; padding-bottom: 40px; }
    .worksamples-page .ws-stage-mockups { aspect-ratio: 4 / 3; }
    .worksamples-page .ws-mockup-logo { width: 48px; height: 48px; padding: 7px; }
    .worksamples-page .ws-archive-grid { grid-template-columns: 1fr; }
}
