/* Plainwell Web - home.css v4 (2026-11-23). Home page only.
   The portfolio section that sits right under "Local business supporting local business."
   (Luke, 2026-11-22: "we should just have the portfolio section right under the 'local business supporting local business' then go to prices").
   It reuses the portfolio page's playing frames (style.css, motion.js); this file only sizes and spaces them on the home page. */
.home-typed { padding-bottom: 2.75rem; }
.section.home-port { padding: 0 0 4rem; }
.home-port .port-pair { --pair-w: min(1320px, calc(100vw - 3rem)); margin-top: 0; }
.home-port .port-box--feature { padding: 1.25rem 1.25rem 1.5rem; }
.home-port__kind { font-family: var(--display); font-weight: 700; font-size: 0.95rem; color: var(--lake); margin: 1.3rem 0 0; }
.home-port .port-box--feature h3 { margin-top: 0.2rem; }
.home-port .port-box__town { margin-bottom: 0; }
.home-port__more { text-align: center; margin: 2.25rem 0 0; }
@media (max-width: 860px) {
  .home-typed { padding-bottom: 2rem; }
  .section.home-port { padding-bottom: 3rem; }
  .home-port .port-pair { gap: 1.5rem; }
  .home-port .port-box--feature { padding: 0.9rem 0.9rem 1.2rem; }
  .home-port__more { margin-top: 1.75rem; }
}

/* "One person, start to finish": the photo opens as it scrolls into view, then the words slide in
   (Luke, 2026-11-23, picked remake 7: "I like 7 from the home page remake about he photo that opens as you sroll").
   Browsers without scroll timelines, and anyone who turns motion off, get the still photo and words as they are. */
.section.home-open { overflow-x: clip; }
.home-open__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.home-open__photo img { display: block; width: 100%; height: auto; border-radius: 16px; aspect-ratio: 1 / 1; object-fit: cover; object-position: 30% center; }
.home-open__words p { font-size: 1.1rem; max-width: 34rem; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .home-open__photo img { animation: home-open-photo linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    .home-open__words { animation: home-open-words linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  }
}
@keyframes home-open-photo { from { clip-path: inset(0 38% 0 38% round 16px); transform: scale(1.08); } to { clip-path: inset(0 0 0 0 round 16px); transform: scale(1); } }
@keyframes home-open-words { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .home-open__grid { grid-template-columns: 1fr; gap: 2rem; }
  .home-open__photo img { max-width: 420px; }
}

/* The three steps on a computer (pinned scroll story, premium.js adds .how-on at 1001px and wider): the steps start just under the
   heading instead of in the middle of a full-screen pin, which left about 280px of empty space under the heading (Chief of Staff, 2026-11-23).
   Pinned, the steps still sit below the floating top bar. Phones never get .how-on, so they are unchanged. */
.how.how-on .how-track { margin-top: calc(-1 * var(--header-h)); }
.how.how-on .how-pin { align-items: start; padding-top: calc(var(--header-h) + 1.75rem); }
/* The photos card in step 1 stays white in dark mode, so its label and dot keep their light-mode colours (they were near-white on white). */
.how-photos__head { color: #1E2A33; }
.how-photos__dot { background: #2B5D8A; }
/* The web address renewal under the price cards, so "no hidden fees" is true (money reviewer, 2026-11-23). The panel is dark in both modes. */
.cost-dark .home-cost-note { color: #D8DFE3; margin-top: 1.75rem; text-align: center; }

/* Computer / Phone switch on the home portfolio (Luke, 2026-11-23: "that will also be clickable on the home page as well").
   Same markup and script as the portfolio page (portfolio-view.js); this section is light, so the switch takes ink colours here
   and keeps the portfolio page's look in dark mode. */
.home-port .view-switch { margin: 0 auto 1.4rem; background: rgba(30, 42, 51, 0.05); box-shadow: inset 0 0 0 1px rgba(30, 42, 51, 0.16); }
.home-port .view-switch__btn { color: #1E2A33; }
.home-port .view-switch__btn:hover { color: #1E2A33; background: rgba(30, 42, 51, 0.07); }
.home-port .view-switch__btn[aria-pressed="true"] { background: #2B5D8A; color: #FFFFFF; }
.home-port .view-switch__btn:focus-visible { outline-color: #2B5D8A; }
[data-theme="dark"] .home-port .view-switch { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
[data-theme="dark"] .home-port .view-switch__btn { color: #DCE4EA; }
[data-theme="dark"] .home-port .view-switch__btn:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.08); }
[data-theme="dark"] .home-port .view-switch__btn[aria-pressed="true"] { background: #FFFFFF; color: #1E2A33; }
[data-theme="dark"] .home-port .view-switch__btn:focus-visible { outline-color: #9CC3E6; }
