/* Homepage told as a short story: Understand, Decide, Protect, Act. One idea per screen.
   Loaded after relook.css by index.html only. */

/* Opening screen: the promise and nothing else */
body.relook.home #top { display: flex; align-items: center; justify-content: center; min-height: 100vh; min-height: 100svh; padding: 6rem 0 4rem;
  background-image: radial-gradient(55% 45% at 50% 48%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 72%); }

.home .story { position: relative; padding: 6.5rem 0 5.5rem; }
.home .story::before { content: ""; position: absolute; left: 50%; top: 0; width: 2px; height: 3.5rem; margin-left: -1px; background: linear-gradient(transparent, var(--c)); }
.home .stage-understand { --c: var(--c-understand); }
.home .stage-decide { --c: var(--c-decide); }
.home .stage-protect { --c: var(--c-protect); }
.home .stage-act { --c: var(--c-act); }
.home .chapter { display: inline-flex; align-items: center; gap: .7rem; font-family: 'Space Grotesk', system-ui, sans-serif; font-size: .8rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--c); }
.home .chapter b { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); border-radius: 9999px; font-size: .75rem; letter-spacing: 0; }
.home .story .headline { margin-top: 1.25rem; font-size: clamp(2.25rem, 5.2vw, 3.6rem); }
.home .story-lead { max-width: 38rem; margin: 1.1rem auto 0; font-size: 1.125rem; color: var(--muted); }
.home .story-lead strong { display: block; font-weight: 700; color: var(--text); }
.home .story-more { display: inline-flex; margin-top: 2rem; }

/* 01: who we work with */
.home .sector-art { aspect-ratio: 1400 / 410; max-width: 60rem; margin: 3rem auto 0; border: 1px solid var(--line); border-radius: 1.75rem; background: url("../images/home-sectors-panel-day.svg") center bottom / cover no-repeat; }
.dark .home .sector-art { background-image: url("../images/home-sectors-panel-night.svg"); }

/* 02: three steps joined by arrows */
.home .story-steps { display: grid; gap: 1.5rem; margin: 3rem 0 0; padding: 0; list-style: none; text-align: left; }
.home .story-steps li { position: relative; display: flex; flex-direction: column; padding: 1.5rem; border: 1px solid var(--line); border-top: 3px solid var(--c); border-radius: 1.25rem; background: var(--surface); }
.home .story-steps h3 { font-size: 1.4rem; }
.home .story-steps p { margin-top: .4rem; color: var(--muted); }
.home .story-steps span { margin-top: auto; padding-top: 1rem; font-size: .8125rem; font-weight: 700; color: var(--accent); }
@media (min-width: 768px) {
  .home .story-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home .story-steps li + li::before { content: "\203A"; position: absolute; left: -1.3rem; top: 50%; width: 1.1rem; text-align: center; transform: translateY(-55%); font-size: 1.5rem; color: var(--muted); }
}

/* 03: CAL */
.home .story-cal { margin-top: 3rem; padding: 3rem 1.25rem; border-radius: 2rem; }
.home .story-cal .status-early { color: #c4b5fd; border-color: rgba(196, 181, 253, .45); background: rgba(196, 181, 253, .1); }
body.relook.home .story-cal .cal-wordmark { margin-top: 1.5rem; font-size: clamp(3.75rem, 9vw, 6rem); }
.home .story-cal-line { max-width: 44rem; margin: 1.5rem auto 0; font-family: 'Space Grotesk', 'DM Sans', system-ui, sans-serif; font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 300; line-height: 1.25; text-wrap: balance; }
body.relook.home .story-cal-line .text-gradient { display: block; }
.home .story-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.home .story-chips li { padding: .4rem 1rem; border: 1px solid rgba(255, 255, 255, .22); border-radius: 9999px; background: rgba(255, 255, 255, .06); font-size: .875rem; }

/* 04: one line per solution */
.home .story-list { margin: 3rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); text-align: left; }
.home .story-list li { border-bottom: 1px solid var(--line); }
.home .story-list a { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .35rem 1rem; padding: 1.35rem 2.25rem 1.35rem .5rem; transition: background-color .2s; }
.home .story-list a::after { content: "\203A"; position: absolute; right: .6rem; top: 50%; transform: translateY(-55%); font-size: 1.6rem; color: var(--accent); }
.home .story-list a:hover { background: color-mix(in srgb, var(--c) 7%, transparent); }
.home .story-list h3 { font-size: 1.2rem; }
.home .story-list .status { justify-self: end; }
.home .story-list p { grid-column: 1 / -1; font-size: .9375rem; color: var(--muted); }
@media (min-width: 768px) {
  .home .story-list a { grid-template-columns: 15rem 1fr auto; }
  .home .story-list p { grid-column: auto; grid-row: 1; grid-column-start: 2; }
  .home .story-list .status { grid-row: 1; grid-column-start: 3; }
}
.home .story-note { max-width: 46rem; margin: 1.5rem auto 0; font-size: .75rem; line-height: 1.6; color: var(--muted); }

@media (max-width: 640px) {
  .home .story { padding: 5rem 0 4rem; }
  .home .sector-art { aspect-ratio: 552 / 270; border-radius: 1.25rem; background-image: url("../images/home-sectors-panel-day-phone.svg"); }
  .dark .home .sector-art { background-image: url("../images/home-sectors-panel-night-phone.svg"); }
}
