/* Compact project page (heroLayout "compact"): an atmospheric background behind live text, one or two paragraphs,
   a modest supporting figure and at most one project-specific addition. Loaded only by compact pages; the shared
   overview.css and the Full artwork styles in project-artwork.css are unchanged. */

.native-overview .compact-intro { position: relative; isolation: isolate; overflow: hidden; background: var(--bg); }
/* The background is atmosphere: a restrained scrim keeps the text readable and fades the art into the page surface.
   The scrim never touches the product figure. */
.native-overview .compact-intro::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--hero-scrim) 92%, transparent) 0%, color-mix(in srgb, var(--hero-scrim) 82%, transparent) 46%, color-mix(in srgb, var(--hero-scrim) 62%, transparent) 100%),
    linear-gradient(180deg, transparent 38%, color-mix(in srgb, var(--bg) 70%, transparent) 78%, var(--bg) 100%);
}
.native-overview .compact-intro .project-visual { position: absolute; inset: 0; z-index: 0; }
/* A former fragment sits at the top of the place that now holds its content (see legacyAnchorsByTarget). Absolutely
   positioned without offsets, it keeps its static position and never takes a grid cell or line. */
.native-overview .legacy-anchor { position: absolute; width: 1px; height: 1px; pointer-events: none; scroll-margin-top: calc(var(--site-header-height, 80px) + 24px); }
.native-overview .compact-intro > .legacy-anchor { top: 0; left: 0; scroll-margin-top: 0; }
/* One measure for the whole compact page: the introduction, the addition and the related row share the left edge. */
.compact-page .project-container { max-width: 1240px; }
.native-overview .compact-inner {
  position: relative; z-index: 2;
  padding-top: calc(var(--site-header-height, 80px) + env(safe-area-inset-top, 0px) + 18px);
  padding-bottom: clamp(44px, 6vw, 72px);
}
.native-overview .compact-body {
  display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); gap: clamp(32px, 5vw, 72px);
  align-items: center; margin-top: clamp(18px, 3.2vw, 40px);
}
.native-overview .compact-text { min-width: 0; }
.native-overview .compact-intro h1 {
  max-width: 18ch; font-size: clamp(2.5rem, 5.2vw, 4.4rem); line-height: 1.02; letter-spacing: -.055em;
  text-wrap: balance; overflow-wrap: anywhere;
}
.native-overview .compact-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 16px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.native-overview .compact-category { color: var(--accent); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 11px; }
.native-overview .compact-status { display: inline-flex; align-items: center; padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; font-size: 11.5px; letter-spacing: .01em; color: var(--text); background: color-mix(in srgb, var(--bg) 55%, transparent); }
.native-overview .compact-tagline { max-width: 40ch; margin-top: 18px; font-size: clamp(1.15rem, 1.9vw, 1.45rem); line-height: 1.35; letter-spacing: -.02em; }
.native-overview .compact-copy p { max-width: 62ch; margin-top: 18px; font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); line-height: 1.62; }
.native-overview .compact-copy p:first-child { margin-top: 22px; }
.native-overview .compact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; margin-top: 26px; }
.native-overview .compact-actions a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--line); }
.native-overview .compact-actions a:hover { border-color: var(--accent); color: var(--accent); }
.native-overview .compact-actions a span { color: var(--accent); }

/* A quiet tools line: the existing motion control and, in the candidate, the owner preview note. */
.native-overview .compact-tools { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px 18px; margin-top: 12px; color: var(--muted); font-size: 12px; }
.native-overview .compact-tools .project-control { min-height: 44px; padding: 6px 12px; font-size: 12px; color: var(--muted); background: transparent; }

/* The supporting figure: the complete image in its original colours, modest radius, restrained shadow. */
.native-overview .compact-figure { justify-self: end; width: 100%; max-width: 480px; margin: 0; }
.native-overview .compact-figure img {
  display: block; width: 100%; height: auto; border-radius: 6px; background: #dddbd5;
  box-shadow: 0 22px 48px -26px #000a, 0 0 0 1px #ffffff1c;
}
html[data-theme="light"] .native-overview .compact-figure img { box-shadow: 0 22px 44px -28px #3c3a2a66, 0 0 0 1px #1d1b1214; }
.native-overview .compact-figure figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px; margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.native-overview .compact-figure-open { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: .25em; }
.native-overview .compact-figure-open:hover { text-decoration-color: var(--accent); }

/* The optional addition and the short related row: compact headings, one column, no template rows. */
.compact-page .project-container > .project-section { padding-block: clamp(40px, 5vw, 64px); }
.compact-page .project-container > .project-section:first-child { border-top: 0; }
.compact-page :is(.project-block-intro, .project-narrative) { display: block; }
.compact-page .project-section h2 { max-width: 30ch; font-size: clamp(1.55rem, 2.6vw, 2.15rem); line-height: 1.15; letter-spacing: -.04em; }
.compact-page .project-block-copy, .compact-page .project-narrative > div { margin-top: 12px; }
.compact-page .project-block-intro { margin-bottom: 26px; }
.compact-page .project-narrative :is(p, li) { font-size: 1.0625rem; line-height: 1.7; }
.compact-page .product-capabilities { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 28px; margin-top: 22px; }
.compact-page .product-capabilities > div { padding-top: 14px; border-top: 1px solid var(--line); }
.compact-page .product-capabilities h3 { font-size: 1.125rem; letter-spacing: -.02em; }
.compact-page .product-capabilities p { margin-top: 6px; color: var(--muted); font-size: 1rem; }
.compact-page .product-steps { max-width: 70ch; margin-top: 20px; }
.compact-page .project-module-figure { max-width: 520px; margin: 0 0 30px; }
.compact-page .project-module-details { margin-top: 34px; }
.compact-page .project-module-details > h3 { margin-bottom: 10px; font-size: 1.125rem; letter-spacing: -.02em; }
.compact-page .project-related-grid { gap: 24px; margin-top: 18px; }
.compact-page .project-related-card h3 { font-size: 1.25rem; }
.compact-page .project-documentation figure { max-width: 720px; }

@media (max-width: 1100px) {
  .native-overview .compact-body { grid-template-columns: minmax(0, 1.4fr) minmax(240px, 1fr); }
}
/* Phones and narrow tablets: title, status and tagline, paragraphs, actions, then the figure (DOM order). */
@media (max-width: 760px) {
  .native-overview .compact-intro::after {
    background: linear-gradient(180deg, color-mix(in srgb, var(--hero-scrim) 80%, transparent) 0%, color-mix(in srgb, var(--hero-scrim) 90%, transparent) 45%, var(--bg) 100%);
  }
  .native-overview .compact-body { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .native-overview .compact-figure { justify-self: start; max-width: 560px; }
  .native-overview .compact-intro h1 { font-size: clamp(2.2rem, 10vw, 3rem); }
  .native-overview .compact-copy p { font-size: 1.0625rem; }
  .compact-page .project-related-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
  .native-overview .compact-text > * { animation: project-arrive 700ms cubic-bezier(.16,1,.3,1) both; }
}
html[data-motion='paused'] .native-overview .compact-text > * { animation: none !important; }
.native-overview .visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.native-overview .project-disclosure summary h4 { margin: 0; font-size: 1.125rem; font-weight: 600; line-height: 1.3; letter-spacing: -.02em; }
.compact-page .project-module-details .project-disclosure summary { min-height: 52px; padding-block: 12px; }
/* AL.Floys keeps its existing illustrative simulation (components/marginalia/ProjectExperience) as its addition. The
   panel is a fixed dark instrument surface in both themes, as on the earlier page. */
.compact-page .m-life { max-width: 720px; margin-top: 18px; padding: clamp(1.2rem, 4vw, 2.4rem); border-radius: 6px; background: #1c1d1a; color: #eceae3; }
.compact-page .m-life .m-label { margin: 0; color: #cfcbc0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.compact-page .m-life canvas { display: block; width: 100%; height: auto; margin: 1rem 0; }
.compact-page .m-life button { min-height: 44px; padding: .6rem 1rem; border: 1px solid #cfcbc0; background: transparent; color: #eceae3; font: inherit; cursor: pointer; }
.compact-page .m-life button:disabled { cursor: default; }
@media print {
  .compact-page .m-life { background: #fff; color: #111; }
  .compact-page .m-life .m-label { color: #333; }
  .compact-page .m-life canvas, .compact-page .m-life button { display: none; }
}
