/* The homepage: the opening (the line, and the call in a real business), which plays once as the page arrives; then its
   numbered sections: what we make (an index of the products beside a panel for each), what you can hold us to (the
   page's one night band), the founder (once there's a note from them) and the way to get in touch, close to the
   opening's scale. The logos, the proof and the news, which come and go with their files, are 55_proof.css's. */

/* ---------- The opening ---------- */
.hero { padding-top: clamp(28px, 3.9vw, 56px); }

/* The lead on the left half; the way in on the right, ending at the row's end, both on the row's last line */
.hero__row {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-6) var(--col-gap); align-items: end;
  margin-top: clamp(24px, 2.8vw, 40px);
}
.hero__lead { grid-column: 1 / span 6; max-width: 31em; }
.hero__way { grid-column: 7 / -1; display: grid; justify-items: end; }
.hero__way .actions { justify-content: flex-end; }
@media (max-width: 63.99em) {
  .hero__lead, .hero__way { grid-column: 1 / -1; }
  .hero__way { justify-items: start; }
  .hero__way .actions { justify-content: flex-start; }
}
/* On a phone the two buttons take the width, one above the other */
@media (max-width: 47.99em) { .hero__way { justify-items: stretch; } .hero__way .btn { flex: 1 1 auto; } }

/* The scene: the café, with the call in its top-left corner, an even margin from the frame's two edges. While the
   photograph is still to come, the card stands centred in the quiet frame's width instead, as the panels' cards do. */
.hero__scene { margin-top: clamp(40px, 4.8vw, 72px); }
.hero__scene .scene__photo { --scene-ratio: 2 / 1; --scene-ratio-sm: 1 / 1; --focus-y: 30%; }
.hero__card { --card-w: 384px; --card-x: clamp(24px, 4.4vw, 64px); --card-y: clamp(24px, 4.4vw, 64px); }
@media (min-width: 48em) {
  .hero__scene:has(.photo__holder) .hero__card { --card-w: 420px; left: 50%; right: auto; translate: -50% 0; }
}
/* On a phone the card sits under the photograph and comes into view as the page scrolls, so it arrives at once */
@media (max-width: 47.99em) {
  .hero__scene .scene__photo { --focus-x: 84%; --focus-y: 50%; }
  .hero__card { --delay: 0ms; }
}

/* ---------- What we make: an index of the products beside a panel for each ---------- */
/* On wide screens the section's head stays in view in the left third (.split--sticky, 10_base.css), its title a size
   down to sit there, with an index of the products under it, each with where it stands: the one being read inks in,
   with a bar at its edge (scroll_spy_controller.js). The panels go by on the right, ruled apart from the column's rule
   to the rail. On narrower screens the head sits over the panels, which run between the rails on a tablet and keep to
   the column on a phone, and the index, which would only repeat them, is left out. */
.products .section-head { margin-bottom: 0; }
.lineup-index { display: none; }
.lineup-index__list { list-style: none; border-bottom: 1px solid var(--line); }
.lineup-index__list > li { position: relative; border-top: 1px solid var(--line); }
.lineup-index__link {
  display: grid; grid-template-columns: minmax(0, 1fr) 6.75rem; align-items: center; column-gap: var(--space-4);
  padding: 13px 0 13px var(--space-4); text-decoration: none; color: var(--ink-mute);
  font-size: var(--text-body); font-weight: 600; letter-spacing: -0.008em; line-height: 1.3;
  transition: color var(--dur-ui) var(--ease-out);
}
.lineup-index__link .status { color: inherit; transition: color var(--dur-ui) var(--ease-out); }
.lineup-index__link:hover { color: var(--ink-soft); }
.lineup-index__link::before {
  content: ""; position: absolute; left: 0; top: -1px; bottom: 0; width: 2px; background: var(--ink);
  transform: scaleY(0); transition: transform var(--dur-ui) var(--ease-out);
}
.lineup-index__link[aria-current="true"] { color: var(--ink); }
.lineup-index__link[aria-current="true"]::before { transform: none; }
@media (min-width: 64em) {
  .products .t-title { font-size: calc(var(--text-title) * 0.8); }
  .lineup-index { display: block; margin-top: var(--space-7); }
}

/* Each panel: its words, then its card on a mat, side by side from a tablet up. On wide screens the mat starts at the
   frame's second third, as the column's rule stands at its first. */
.lineup { list-style: none; border-bottom: 1px solid var(--line); }
.lineup__item {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6);
  padding-block: var(--space-6) var(--space-7); border-top: 1px solid var(--line);
}
@media (min-width: 48em) {
  .lineup { margin-inline: calc(-1 * var(--frame-inset)); }
  .lineup__item {
    grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-7);
    padding: clamp(32px, 2.8vw, 40px) var(--frame-inset);
  }
}
@media (min-width: 64em) {
  .lineup { margin-left: calc(-1 * var(--split-pad)); }
  .lineup__item {
    grid-template-columns: minmax(0, 1fr) calc((100% + var(--split-pad) - var(--frame-inset)) / 2);
    padding-left: var(--split-pad);
  }
}

/* Its name, which opens its page (the ↗ moves on when it's pointed at), and where it stands; its headline in the serif,
   then its job; the first three things it does; its button, and what trying it is like */
.lineup__words { display: grid; justify-items: start; align-content: start; gap: var(--space-4); }
.lineup__top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); }
.lineup__name { font-family: var(--font-text); font-size: var(--text-body); font-weight: 600; line-height: 1.3; letter-spacing: -0.008em; }
.lineup__name a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.lineup__name .icon {
  width: 15px; height: 15px; color: var(--ink-mute);
  transition: translate var(--dur-ui) var(--ease-out), color var(--dur-fast);
}
.lineup__name a:is(:hover, :focus-visible) .icon { translate: 2px -2px; color: var(--ink); }
.lineup__headline {
  margin-top: var(--space-1);
  font-family: var(--font-display); font-size: calc(var(--text-heading) * 0.82); font-weight: 400;
  line-height: var(--leading-heading); letter-spacing: var(--tracking-heading); text-wrap: balance;
}
.lineup__line { max-width: 30em; color: var(--ink-soft); }
.lineup__points { list-style: none; display: grid; gap: 7px; margin-top: var(--space-1); }
.lineup__points li { display: flex; align-items: center; gap: 10px; font-size: var(--text-small); line-height: 1.4; color: var(--ink-soft); }
.lineup__points .icon { width: 13px; height: 13px; color: var(--ink-mute); }
.lineup__actions { margin-top: var(--space-3); }
.lineup__try { max-width: 24em; }
/* On a phone a panel's button takes the width, as the opening's do */
@media (max-width: 47.99em) {
  .lineup__actions { justify-self: stretch; }
  .lineup__actions .btn { flex: 1 1 auto; }
}

/* The mat: a tinted panel lit from its top edge (a wash of white falling from it, and a brighter line along it, as the
   product pages' stage is lit), ringed by a hairline, with the kind of product it is in mono at its top and the card
   standing whole in its middle. Beside the words it's as tall as they are or as its card, whichever needs more, so the
   two columns end together. There the card plays its story (demo_controller.js, 25_products.css), and pointed at, it
   rises a little. */
.lineup__stage {
  --mat-x: clamp(20px, 2.6vw, 38px);
  padding: 56px var(--mat-x) var(--space-6);
  border: 1px solid var(--line); text-decoration: none;
  background:
    radial-gradient(ellipse 84% 66% at 50% 0%, color-mix(in srgb, var(--c-white) 64%, transparent), transparent 74%),
    var(--c-panel);
}
.lineup__stage::before {
  content: ""; position: absolute; top: -1px; left: 12%; right: 12%; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--c-white), transparent);
}
.lineup__kind { position: absolute; top: 20px; left: var(--mat-x); }
.lineup__stage > .ui-card { transition: translate 0.7s var(--ease-out); }
@media (hover: hover) { .lineup__stage:hover > .ui-card { translate: 0 -6px; } }
@media (min-width: 48em) { .lineup__stage { min-height: 340px; padding-top: 60px; padding-bottom: var(--space-7); } }

/* A checklist's rule, under the card's head (demo_controller.js puts it there): it fills in ink along the head's
   hairline as the rows ink in */
.lineup__progress { position: relative; z-index: 1; display: block; height: 1px; margin-top: -1px; }
.lineup__progress::after {
  content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--ink) 72%, transparent);
  transform-origin: left center; scale: var(--demo-progress, 1) 1; transition: scale 0.9s var(--ease-out);
}

/* ---------- What you can hold us to: the page's night band ---------- */
/* Its head stays in view beside the four, which run down as ruled rows: the title in the serif, and what it means.
   Each row's rule draws across as the row arrives. */
.standard { --text-reason: clamp(1.5rem, 1.22rem + 0.62vw, 1.875rem); }   /* 24px → 30px: a reason's title */
.standard__rows > li { display: grid; row-gap: var(--space-3); padding-block: clamp(28px, 3vw, 44px); border-top: 0; }
.standard__rows > li::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: var(--line); transform-origin: left center; }
.standard__title { font-size: var(--text-reason); line-height: 1.15; letter-spacing: var(--tracking-heading); }
.standard__text { max-width: 34em; color: var(--ink-soft); }
@media (max-width: 63.99em) { .standard .section-head { margin-bottom: 0; } }
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .standard__rows:not(.is-in) > li::before { transform: scaleX(0); }
  .standard__rows.is-in > li::before {
    animation: arrive-line var(--dur-line) var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * var(--stagger));
  }
  html:not(.motion-ready) .standard__rows:not(.is-in) > li::before { animation: motion-fallback 0.01s 2.2s forwards; }
}

/* ---------- From the founder (shown once config/founder.yml has their name, photo and words) ---------- */
/* The portrait on the left five columns; the words on the right, set as every quote is (.quote, 55_proof.css) */
.founder__layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-7) var(--col-gap); align-items: end; }
.founder__photo { grid-column: 1 / span 5; aspect-ratio: 4 / 5; }
.founder__text { grid-column: 7 / -1; display: grid; gap: clamp(28px, 3.2vw, 48px); padding-bottom: var(--space-2); }
@media (max-width: 63.99em) { .founder__text { grid-column: 6 / -1; } }
@media (max-width: 47.99em) {
  .founder__photo, .founder__text { grid-column: 1 / -1; }
  .founder__photo { max-width: 22rem; }
}

/* ---------- Get in touch ---------- */
/* The closing line, at four-fifths of the opening's size; its lead and buttons in a row as the opening's are */
.home-contact .kicker { margin-bottom: clamp(24px, 3vw, 40px); }
.home-contact__title {
  font-family: var(--font-display); font-size: calc(var(--text-hero) * 0.8); font-weight: 400;
  line-height: var(--leading-hero); letter-spacing: var(--tracking-hero);
}
.home-contact__row {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-6) var(--col-gap); align-items: end;
  margin-top: clamp(28px, 3.2vw, 48px);
}
.home-contact__lead { grid-column: 1 / span 6; }
.home-contact__actions { grid-column: 7 / -1; justify-content: flex-end; }
@media (max-width: 63.99em) {
  .home-contact__lead, .home-contact__actions { grid-column: 1 / -1; }
  .home-contact__actions { justify-content: flex-start; }
}
@media (max-width: 47.99em) { .home-contact__actions .btn { flex: 1 1 auto; } }
