/* Native portal composition; the original layered interaction system remains in styles.css. */
.site-header { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 18px; }
.brand-lockup { width: 210px; display: grid; gap: 0; flex-shrink: 0; }
.wissian-signature, .fultuma-signature { display: block; overflow: hidden; background: white; border-radius: 5px; flex-shrink: 0; }
.brand-lockup .wissian-signature { width: 147px; height: auto; }
.brand-copy small { font-size: .62rem; letter-spacing: .04em; white-space: normal; }
.header-actions { gap: 10px; }
.theme-button { flex-shrink: 0; transition: transform var(--transition), border-color var(--transition); }
.theme-button svg { flex: 0 0 20px; width: 20px; height: 20px; }
.login-link, .login-pending { font-size: .7rem; font-weight: 680; max-width: 145px; line-height: 1.35; }
.login-link { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; }
.login-link svg { width: 16px; height: 16px; }
.site-nav .login-link { max-width: none; justify-content: center; }
.login-pending { color: var(--muted); border-inline-start: 1px solid var(--line); padding-inline-start: 12px; }
.product-identity { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.product-identity .wissian-signature { width: 210px; height: auto; }
.about-main { padding-top: 48px; }
.about-hero { padding-top: 0; margin-bottom: 56px; }
.about-hero h1 { max-width: 840px; text-wrap: balance; }
.about-hero .content-hero-copy { align-self: end; }
.mural-intro { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin: 40px 0 12px; }
.mural-intro p { margin: 0; }
.mural-intro > p:last-child, .mural-caption { color: var(--muted); font-size: .78rem; }
.mural-caption { margin: 12px 0 0; text-align: end; }
.work-map { --work-map-root-row-min: 47px; }
.work-map-root { --work-map-root-row-min: 47px; gap: 6px; }
.work-map-nav { width: min(65%, 780px); }
.corporate-signature { display: flex; align-items: center; gap: 16px; }
.corporate-signature .fultuma-signature { width: 100px; height: 36px; }
.corporate-signature p { margin: 0; font-size: .7rem; line-height: 1.7; }
.product-faq { max-width: 960px; margin: 16px auto 80px; }
.product-faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.product-faq summary { cursor: pointer; font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 650; padding: 8px; }
.product-faq details p { line-height: 1.8; max-width: 75ch; padding: 0 8px; color: var(--muted); }
.contact-pending { padding: 24px; border: 1px solid var(--line); border-radius: 14px; }
.site-nav { flex-shrink: 0; }
.no-js .login-pending { display: inline-block; }
@media (min-width: 721px) { .work-map-root > .work-map-node > .work-map-trigger { min-height: 44px; } }
@media (max-width: 1100px) { .login-pending { display: none; } .brand-lockup { width: 170px; } }
@media (max-width: 720px) {
  .brand-lockup { width: 116px; min-height: 44px; }
  .brand-lockup .wissian-signature { width: 116px; }
  .brand-copy { display: none; }
  .header-actions { gap: 4px; }
  .login-link { padding: 8px; font-size: .65rem; }
  .product-identity { margin-bottom: 24px; gap: 12px; }
  .product-identity .wissian-signature { width: 160px; }
  .mural-intro { display: block; margin-top: 24px; }
  .mural-intro > p:last-child { margin-top: 8px; }
  .mural-caption { text-align: start; font-size: .7rem; }
  .work-map-nav { width: 100%; }
  .corporate-signature { gap: 10px; }
  .corporate-signature .fultuma-signature { width: 80px; height: auto; }
}
@media (max-width: 760px) {
  .site-nav .login-link { grid-column: 1 / -1; width: 100%; min-height: 40px; margin-top: 4px; padding: 8px; font-size: .78rem; }
}
@media (max-width: 1050px) {
  .site-header { grid-template-columns: 1fr auto; }
  html:has([data-saas-login]) [id] { scroll-margin-top: 210px; }
}
@media (forced-colors: active) { .login-link, .contact-pending { border-color: ButtonText; } }

/* Product evidence uses the native carousel state and energy canvases. */
.projects-main { padding-top: 32px; gap: 24px; }
.projects-intro { grid-template-columns: minmax(0, 1.3fr) minmax(230px, .7fr); gap: 24px; }
.projects-intro h1 { font-size: clamp(2.25rem, 4vw, 3.5rem); max-width: none; }
.projects-intro-heading { gap: 12px; }
.projects-intro-context { padding: 0; border: 0; }
.projects-subtitle { min-block-size: 0; font-size: 1rem; max-width: 32ch; }
.project-catalog { display: flex; flex-direction: column; gap: 16px; }
.project-deck { order: 1; --deck-card-peek: 1%; --deck-media-height: 340px; border-radius: 24px; }
.project-deck::before { inset: 3% 0 0 2%; }
.project-card { grid-template-columns: minmax(0, .42fr) minmax(0, .58fr); grid-template-rows: minmax(340px, auto); min-height: 0; border-radius: 24px; align-items: stretch; }
.project-card[data-position="active"] { margin-bottom: 8px; }
.project-card[data-position="next"] { transform: translateX(2%) scale(.99); opacity: .22; }
.project-card-media { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; justify-content: center; padding: 20px; gap: 12px; background: color-mix(in srgb, var(--project-accent) 5%, var(--bg-soft)); }
.project-card[data-kind="screenshot"] .project-card-media img { object-fit: contain; padding: 0; height: auto; width: min(100%, 520px); max-height: 330px; align-self: center; aspect-ratio: 1280 / 820; border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 14px 32px rgb(7 23 37 / .10); }
.project-card-media .visual-label { position: static; align-self: start; max-width: 100%; color: var(--ink-soft); background: transparent; border: 0; padding: 0; font-size: .7rem; text-align: start; }
.project-card-content { grid-column: 1; grid-row: 1; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; padding: clamp(24px, 3vw, 42px); align-content: center; gap: 16px; }
.project-card-meta { gap: 8px; font-size: .68rem; }
.project-title-row { gap: 12px; }
.project-title-row .project-icon { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; }
.project-title-row h2 { font-size: clamp(1.65rem, 2.5vw, 2.65rem); line-height: 1.08; }
.project-card-content > p { max-width: 38ch; font-size: 1rem; line-height: 1.6; }
.project-card-footer { align-self: auto; margin-top: 2px; padding-top: 0; border: 0; justify-content: flex-start; }
.card-link { min-height: 44px; }
.deck-edge-button { width: 48px; min-width: 48px; height: 100%; }
.deck-edge-button-previous { left: 42%; }
.deck-edge-button-next { right: 1%; }
.deck-edge-icon { width: 36px; height: 36px; min-width: 36px; }
.deck-controls.deck-controls-orbit { order: 0; display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; margin: 0; padding: 0; }
.js .deck-controls-orbit .deck-progress { display: grid; grid-column: 1 / -1; grid-row: 1; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; width: 100%; height: auto; position: relative; }
.js .deck-controls-orbit .deck-progress::before { content: none; }
.js .deck-controls-orbit .deck-progress button { display: flex; flex-direction: column; justify-content: center; gap: 8px; position: relative; inset: auto; width: 100%; height: auto; min-height: 92px; padding: 12px 6px; transform: none; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-elevated); color: var(--ink-soft); box-shadow: none; }
.js .deck-controls-orbit .deck-progress button[aria-pressed="true"] { color: var(--ink); border-color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, var(--bg-elevated)); box-shadow: inset 0 -3px var(--brand); }
.module-selector-name { font-size: .78rem; font-weight: 650; line-height: 1.3; text-wrap: balance; }
.js .deck-controls-orbit > .deck-button { grid-row: 2; padding: 6px 12px; min-height: 44px; }
.js .deck-controls-orbit > .deck-button:first-child { justify-self: start; }
.js .deck-controls-orbit > .deck-button:last-child { justify-self: end; }
.js .deck-controls-orbit > .deck-current { grid-column: 2; grid-row: 2; display: flex; justify-content: center; align-self: center; align-items: baseline; gap: 8px; position: relative; inset: auto; margin: 0; min-width: 0; }
.product-identity { margin-bottom: 0; }
.about-hero { margin-bottom: 32px; }
.about-hero h1 { font-size: clamp(2.5rem, 4.6vw, 4.5rem); max-width: 20ch; }
.product-trust { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 1.3fr) auto; align-items: center; gap: 28px; padding: 28px 0; margin-top: 28px; border-top: 1px solid var(--line); }
.product-trust > div { display: grid; gap: 12px; }
.product-trust .fultuma-signature { width: 100px; height: 36px; }
.product-trust h2 { font-size: 1.15rem; line-height: 1.4; }
.product-trust p { color: var(--ink-soft); line-height: 1.65; }
.capture-dialog { width: min(1340px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: var(--bg-elevated); box-shadow: var(--shadow-lg); }
.capture-dialog::backdrop { background: rgb(3 13 23 / .8); backdrop-filter: blur(5px); }
.capture-dialog header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.capture-dialog h2 { font-size: 1.05rem; }
.capture-dialog p { font-size: .75rem; color: var(--ink-soft); }
.capture-dialog button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--bg-soft); }
.capture-dialog button svg { width: 20px; height: 20px; }
.capture-dialog button span { font-size: 1.5rem; }
.capture-dialog-media { overflow: auto; max-height: calc(100dvh - 120px); }
.capture-dialog img { display: block; width: 100%; height: auto; }
html:has(.capture-dialog[open]) { overflow: hidden; }
.capture-dialog-media { scrollbar-color: auto; }
@media (max-width: 1050px) {
  .js .deck-controls-orbit .deck-progress { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .js .deck-controls-orbit .deck-progress button { min-height: 72px; flex-direction: row; gap: 8px; padding: 10px; }
  .project-card { grid-template-columns: minmax(0, .44fr) minmax(0, .56fr); }
  .deck-edge-button-previous { left: 44%; }
  .project-card-content { padding: 24px; }
  .product-trust { grid-template-columns: 1fr 1.4fr; }
  .product-trust > a { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .projects-main { padding-top: 20px; gap: 20px; }
  .projects-intro { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 0; }
  .projects-intro h1 { font-size: clamp(2rem, 8vw, 2.75rem); }
  .projects-subtitle { min-block-size: 0; font-size: .9rem; }
  .js .deck-controls-orbit .deck-progress { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .js .deck-controls-orbit .deck-progress button { flex-direction: column; gap: 5px; padding: 9px 4px; min-height: 76px; }
  .module-selector-name { font-size: .68rem; }
  .deck-controls-orbit .project-icon { width: 24px; height: 24px; }
  .project-deck { --deck-card-peek: 0%; --deck-media-height: 210px; border-radius: 18px; }
  .project-card { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; border-radius: 18px; }
  .project-card-content { grid-column: 1; grid-row: 1; padding: 22px 20px; gap: 12px; }
  .project-card-content .status-pill { width: max-content; max-width: 100%; }
  .project-title-row h2 { font-size: 1.9rem; }
  .project-card-content > p { font-size: .95rem; }
  .project-card-media { grid-column: 1; grid-row: 2; padding: 14px; gap: 10px; }
  .project-card[data-kind="screenshot"] .project-card-media img { width: 100%; max-height: none; }
  .project-card-media .visual-label { font-size: .66rem; }
  .deck-edge-button { top: auto; bottom: 8px; height: 210px; width: 44px; min-width: 44px; }
  .deck-edge-button-previous { left: 0; }
  .deck-edge-button-next { right: 0; }
  .project-card[data-position="next"] { opacity: 0; pointer-events: none; }
  .product-identity { margin: 0; }
  .product-identity .status-pill { width: max-content; }
  .about-hero { gap: 24px; }
  .product-trust { grid-template-columns: 1fr; gap: 16px; padding: 24px 0; }
  .capture-dialog img { min-width: 820px; }
  .deck-controls.deck-controls-orbit { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .js .deck-controls-orbit > .deck-current { flex-direction: column; align-items: center; gap: 0; text-align: center; }
  .deck-current strong { font-size: .72rem; }
  .js .deck-controls-orbit > .deck-button { font-size: .75rem; gap: 4px; padding: 6px 8px; }
}
.no-js .deck-controls { display: none; }
.no-js .project-card { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; }
.no-js .project-card-content { grid-column: 1; grid-row: 1; }
.no-js .project-card-media { grid-column: 1; grid-row: 2; }
.no-js .project-deck { display: grid; gap: 24px; }
.no-js .project-card { width: 100%; margin: 0; position: relative; inset: auto; opacity: 1; transform: none; pointer-events: auto; }
.catalog-note { color: var(--muted); font-size: .8rem; line-height: 1.6; }
@media (forced-colors: active) {
  .js .deck-controls-orbit .deck-progress button[aria-pressed="true"] { outline: 2px solid Highlight; box-shadow: none; }
  .capture-dialog { border-color: CanvasText; }
}
