/* The home page below the hero (council 3, D6, 2026-10-31): "Start here" with three doors and a short list, then the connect list.
   These rules are used by this page alone. In @layer page, which sits below `legacy`, so styles-library.css keeps its precedence. */
@layer page {
.cftr-hero .hero-fullpage-logo { display: none; }
.cftr-hero .hero-fullpage-button { text-transform: none; letter-spacing: 0.01em; font-size: 0.95rem; font-weight: 600; padding: 0.68rem 1.2rem; min-height: 2.75rem; border-radius: var(--radius-chip, 4px); }
.hero-fullpage-button.button-start { background: var(--lime); color: var(--bg-dark); }
.hero-fullpage-button.button-start:hover { border-color: var(--lime); background: color-mix(in srgb, var(--lime) 80%, var(--surface-page)); transform: translateY(-2px); }

.start-section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.start-section h2 { margin: 0 0 var(--space-5); font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.08; }
.start-doors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.start-doors > li { margin: 0; padding: var(--space-5); border: 1px solid var(--line-1); border-radius: var(--radius-plate); background: var(--surface-raised); }
.start-doors > li::before { content: none; }
.start-doors a { display: block; font-family: var(--font-display); font-size: var(--step-1, 1.25rem); font-weight: 600; line-height: 1.3; color: var(--text-1); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 0.2em; }
.start-doors a:hover, .start-doors a:focus-visible { color: var(--accent); }
.start-doors p { margin: var(--space-2) 0 0; color: var(--text-2); }
.start-section h3 { margin: var(--space-6, 3rem) 0 var(--space-3); font-size: 1.35rem; }
.start-more { list-style: none; margin: 0; padding: 0; max-width: none; border-top: 1px solid var(--line-1); }
.start-more > li { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: var(--space-3); align-items: baseline; max-width: none; margin: 0; padding: var(--space-3) 0; border-bottom: 1px solid var(--line-1); color: var(--text-2); }
.start-more > li::before { content: none; }
.start-more a { font-weight: 600; color: var(--text-1); }
.start-more a:hover, .start-more a:focus-visible { color: var(--accent); }
.start-section .observatory-notes { margin-top: var(--space-5); }
.start-section .work-note { margin: var(--space-2) 0 0; color: var(--text-2); font-size: 0.95rem; }

.connect-section { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 3rem; padding: 5rem max(1.5rem, calc((100vw - var(--wide)) / 2)); background: var(--surface-sunken); position: relative; overflow: hidden; }
.connect-section > * { position: relative; z-index: 1; }
.connect-section h2 { max-width: 12ch; margin: 0; font-size: clamp(2.2rem, 4vw, 3.1rem); line-height: 1.08; color: var(--text-1); }
.connect-links { border-top: 1px solid var(--line-1); padding-top: 1rem; }
.connect-links a { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line-1); text-decoration: none; transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden; }
.connect-links a::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.connect-links a:hover::before { transform: scaleX(1); }
.connect-links a:hover { padding-left: 1.5rem; }
.connect-links a:hover strong { color: var(--accent); }
.connect-links a > span { color: var(--text-2); font-size: 0.85rem; font-family: var(--font-mono); }
.connect-links strong { display: flex; justify-content: space-between; font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; color: var(--text-1); transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1); }

@media (max-width: 900px) {
    .start-doors { grid-template-columns: 1fr; }
    .connect-section { grid-template-columns: 1fr; gap: 1.75rem; padding-block: 4rem; }
}

@media (max-width: 640px) {
    .start-more > li { grid-template-columns: 1fr; gap: var(--space-1); }
    .connect-section { padding-inline: 1rem; }
}
}

/* ---- The hero as a Paper figure inset (council 2, T1-1, 2026-10-31) -------------------------------------------------------------
   The section no longer carries data-theme-lock="ink": it follows the site theme on --surface-page, inside the gutter, with a radius and
   a hairline like every other plate. Only #cftr-viewer keeps the Ink lock, and only its canvas is a dark drawing surface (the viewer clears
   to transparent, so the plate is the canvas's own background). The still picture shown without WebGL and the chain ruler sit outside the
   viewer; they take the darkest ink of the theme as their plate (--text-1 on Paper, --surface-sunken on Ink), so the domain colours read
   the same on both. In @layer page, so it beats the hero rules in styles.css (@layer base). */
@layer page {
.cftr-hero.hero-fullpage { width: min(100% - 3rem, var(--wide)); margin: var(--space-4) auto 0; background: var(--surface-page); border: 1px solid var(--line-1); border-radius: var(--radius-frame); }
.cftr-hero.hero-fullpage::before, .cftr-hero.hero-fullpage::after { content: none; }
.cftr-hero .hero-fullpage-content { width: min(100% - 2 * var(--space-5), 84rem); }
.cftr-hero .cftr-hero-viewer canvas { background: var(--surface-sunken); border-radius: var(--radius-frame); }
.cftr-hero .cftr-poster-svg { background: var(--text-1); border-radius: var(--radius-frame); }
.cftr-hero .cftr-hero-caption { color: var(--text-2); }
.cftr-hero .hero-prompt { color: var(--text-2); }
.cftr-hero .hero-orient li { color: var(--text-2); }
@media (max-width: 640px) {
    .cftr-hero.hero-fullpage { width: min(100% - 2 * var(--gutter), var(--wide)); margin-top: var(--space-3); }
    .cftr-hero .hero-fullpage-content { width: min(100% - 2 * var(--space-3), 84rem); }
}
/* Phones: what the lab is and is not, directly under the tagline and before the picture (B7). Order only; the copy is unchanged. */
@media (max-width: 767px) {
    .cftr-hero-copy > .hero-orient { order: 3; margin: 0; gap: var(--space-1); }
    .cftr-hero .hero-fullpage-content { row-gap: var(--space-2); padding-top: var(--space-3); }
    .cftr-hero-copy > .hero-tagline { order: 3; }
    /* each label runs into its sentence instead of taking a line of its own, so the picture still starts on the first screen */
    .cftr-hero .hero-orient li { display: block; }
    .cftr-hero .hero-orient .k { display: inline; margin-inline-end: 0.5em; padding: 0; }
}

}

/* Unlayered, because the pinned model sheets (styles-cftr.css, styles-cftr-controls.css) are unlayered: the hero's controls outside the
   Ink-locked viewer (the structure picks above the picture) and the chain ruler follow the theme. */
.cftr-hero .cftr-ruler-svg { background: var(--text-1); border-color: var(--line-1); }
:root[data-theme="dark"] .cftr-hero .cftr-ruler-svg, :root[data-theme="dark"] .cftr-hero .cftr-poster-svg { background: var(--surface-sunken); }
.cftr-hero .cftr-ruler-labels { color: var(--text-2); }
.cftr-hero-picks .cftr-btn { color: var(--text-1); background: var(--surface-raised); border-color: var(--line-strong, var(--line-2)); }
.cftr-hero-picks .cftr-btn:hover:not(:disabled) { border-color: var(--accent); }
.cftr-hero-picks .cftr-btn[aria-pressed="true"] { color: var(--text-on-accent); background: var(--accent); border-color: var(--accent); }
.cftr-hero .cftr-btn { color: var(--text-1); background: var(--surface-raised); border-color: var(--line-strong, var(--line-2)); }
.cftr-hero .cftr-btn:hover:not(:disabled) { border-color: var(--accent); }
.cftr-hero .cftr-btn[aria-pressed="true"] { color: var(--text-on-accent); background: var(--accent); border-color: var(--accent); }
.cftr-hero .cftr-seq-cell { background: color-mix(in srgb, var(--text-1) 5%, transparent); border-color: var(--line-1); color: var(--text-2); }
.cftr-hero .cftr-seq-cell.is-placed { color: var(--text-on-accent); background: var(--accent); border-color: var(--accent); }
.cftr-hero .cftr-home-full { color: var(--text-1); background: var(--surface-raised); border-color: var(--line-strong, var(--line-2)); }
