/* Home page only: the hero (DETAILS 5, MOTION 5) and the pinned services section (DETAILS 7, MOTION 7). Shared parts live in parts.css. */

/* ---------------------------------------------------------------- hero */
.hero { position: relative; height: 100vh; min-height: 560px; }
.hero__media { position: absolute; inset: 0; overflow: hidden; background: var(--stone); }
.hero__stage { position: absolute; left: -2%; right: -2%; top: -2%; bottom: -2%; transform-origin: 50% 35%; will-change: transform; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 30%; animation: heroPush 42s var(--expo-out) infinite alternate; }
.mist { position: absolute; left: -30%; width: 160%; height: 46%; pointer-events: none; filter: blur(22px);
  background: radial-gradient(ellipse at 28% 50%, rgba(243, 245, 248, .26), rgba(243, 245, 248, 0) 62%), radial-gradient(ellipse at 76% 42%, rgba(243, 245, 248, .2), rgba(243, 245, 248, 0) 58%); }   /* fix wave 2 (Q1): half the mist, so the skyline reads */
.mist--a { top: 16%; animation: mistDrift 48s linear infinite alternate; }
.mist--b { top: 44%; opacity: .75; animation: mistDrift 66s linear infinite alternate-reverse; }
.hero__wash { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; background: linear-gradient(to top, var(--ivory) 5%, rgba(243, 245, 248, 0) 100%); }
@keyframes heroPush { from { transform: scale(1); } to { transform: scale(1.09); } }
@keyframes mistDrift { from { transform: translateX(-7%); } to { transform: translateX(7%); } }
/* the data hall's dark cabinets sit under the headline: a paper veil from the left keeps the ink type legible and gives the hall its mist */
.hero__veil { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(243, 245, 248, .82) 0%, rgba(243, 245, 248, 0) 16%),
    linear-gradient(90deg, rgba(243, 245, 248, .84) 0%, rgba(243, 245, 248, .64) 38%, rgba(243, 245, 248, .22) 72%, rgba(243, 245, 248, .06) 100%); }
.hero__inner > .display { line-height: .86; }
.hero__links { display: flex; flex-wrap: wrap; gap: .8vw 2vw; }

.hero__inner { position: absolute; inset: 0; width: 100%; margin: 0; }
.hero__inner > .display { position: absolute; left: 10vw; top: 50%; width: 70vw; transform: translateY(-50%); }
.hero__inner .line { will-change: transform; width: fit-content; }  /* 12 Nov: the stepped lines kept a full-width box that ran past the screen edge */
.dot { display: inline-block; width: .1em; height: .1em; margin-left: .02em; border-radius: 50%; background: var(--accent); }
.hero__text { position: absolute; left: 70vw; bottom: 5vw; width: 20vw; display: flex; flex-direction: column; align-items: flex-start; gap: 1.25vw; }
.hero .label.scroll { position: absolute; left: 5vw; bottom: 5vw; }
@media (max-width: 1100px) {
  .hero { min-height: 0; height: 100svh; }
  .hero__inner > .display { left: 10vw; width: 90vw; font-size: min(16.5vw, 79.38px); }
  .hero__text { left: 10vw; bottom: min(17vw, 67px); width: min(78vw, 310px); gap: min(4vw, 16px); }
  .hero .label.scroll { left: 5vw; bottom: min(6vw, 24px); }
  .dot { width: .14em; height: .14em; }
}

/* ---------------------------------------------------------------- pinned services */
.svc { position: relative; height: calc(var(--count) * 100vh); background: var(--stone); }
.svc__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--stone); }
.anchors { position: absolute; left: 5vw; top: 5vw; z-index: 6; display: flex; flex-direction: column; }
.anchor { display: block; min-height: 24px; font-size: .75vw; font-weight: 500; line-height: 24px; text-align: left; opacity: .62; transition: opacity .4s var(--p2-out); white-space: nowrap; }
.anchor:hover, .anchor.--active { opacity: 1; }
.svc__layers { position: absolute; inset: 0; }
.layer { position: absolute; inset: 0; }
.layer__photo { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--stone); }
.layer__photo img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; max-width: none; object-fit: cover; mix-blend-mode: multiply; will-change: transform; }
/* a quiet paper scrim at the foot and the head of each layer, so the index, the blurb and the facts always read over a busy photograph */
.layer__photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(to top, rgba(243, 245, 248, .8) 0%, rgba(243, 245, 248, 0) 36%), linear-gradient(to bottom, rgba(243, 245, 248, .62) 0%, rgba(243, 245, 248, 0) 24%); }
.layer__info { position: absolute; inset: 0; will-change: transform, opacity; }
.layer__title { position: absolute; left: 50%; top: 50%; width: 60vw; transform: translate(-50%, -50%); mix-blend-mode: multiply; z-index: 5; }
.layer__title .l1 { display: block; text-align: left; }
.layer__title .l2 { display: block; text-align: right; }
.layer__title .l1:only-child { text-align: center; }
.layer__text { position: absolute; left: 5vw; bottom: 5vw; width: 15vw; display: flex; flex-direction: column; align-items: flex-start; gap: 1vw; z-index: 6; }
.layer__facts { position: absolute; right: 5vw; bottom: 5vw; width: 14vw; display: flex; flex-direction: column; gap: 1.25vw; text-align: right; margin: 0; z-index: 6; }
.layer__flab { color: var(--quiet); }
.layer__factlist { display: flex; flex-direction: column; gap: 2.083vw; margin: 0; }
.layer__factlist dd { margin: 0; }
.layer__factlist dt + dd { margin-top: .417vw; }
.svc__marks { position: absolute; inset: 0; z-index: 4; pointer-events: none; mix-blend-mode: multiply; }
.svc__mark { position: absolute; left: 50%; top: 50%; width: 46.5vw; transform: translate(-50%, -50%); color: var(--mark-big); opacity: 0; }
.svc__mark:first-child { opacity: 1; }
.svc__mark svg { width: 100%; height: auto; }
@media (max-width: 1100px) {
  .anchors { left: var(--pad-x); top: min(22vw, 87px); }
  .anchor { font-size: min(3.056vw, 12.13px); }
  .layer__info { display: flex; flex-direction: column; justify-content: flex-end; gap: min(6vw, 24px); padding: 0 10vw min(7vw, 28px); }
  .layer__title { font-size: min(16.5vw, 64px); width: 90vw; }
  .layer__text, .layer__facts { position: static; width: auto; text-align: left; }
  .layer__facts { gap: min(2vw, 8px); }
  .layer__factlist { gap: min(3vw, 12px); }
  .svc__mark { width: 84vw; }
  /* 12 Nov, phone smoothness: the wipe is two transforms here (home.js), each layer clips its own sliding photo, and nothing
     blends: multiply on full-screen photos, titles and marks makes a phone re-blend the whole screen on every scroll frame */
  .layer { overflow: hidden; }
  .layer__photo { will-change: transform; }
  .layer__photo img { mix-blend-mode: normal; will-change: auto; }
  .layer__title, .svc__marks { mix-blend-mode: normal; }
  .layer__info { will-change: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .svc { height: auto; }
  .svc__sticky { position: static; height: auto; overflow: visible; }
  .svc__layers { position: static; }
  .layer { position: relative; min-height: 100vh; }
  .svc__marks, .anchors { display: none; }
}

/* ---------------------------------------------------------------- section heads, the process row, the products link */
.sechead { display: flex; justify-content: space-between; align-items: flex-end; gap: 3vw; padding: 0 0 3vw; }
.sechead__t .label { margin-bottom: 1.25vw; }
.sechead__t .display { max-width: 46vw; }
.statement__link { margin-top: 2vw; display: flex; justify-content: center; }

.process { padding: 0 0 8vw; }
.process__grid { display: grid; grid-template-columns: repeat(5, 1fr); width: 96.667vw; margin: 0 auto; padding: 0; list-style: none; border-top: 1px solid var(--hair); }
.step { position: relative; display: flex; flex-direction: column; min-height: 37vw; padding: 1.667vw; border-left: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.step:last-child { border-right: 1px solid var(--hair); }
.step__num { color: var(--navy); }
.step .tick { margin: 1.4vw 0 1.6vw; }
.step__name { margin: 0 0 .6vw; }
.step__text { color: var(--quiet); max-width: 15vw; }
.step__photo { margin-top: auto; aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); }
.step__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1100px) {
  .sechead { gap: min(5vw, 20px); padding-bottom: min(8vw, 31px); }
  .sechead__t .label { margin-bottom: min(3vw, 12px); }
  .sechead__t .display { max-width: none; }
  .sechead:has(.sechead__link) .sechead__t .display { max-width: min(52vw, 205px); }      /* the link sits beside the title, 40px or more clear of its box, never under it */
  .sechead__link { flex: none; padding-bottom: 2px; }
  .statement__link { margin-top: min(6vw, 24px); }
  .process { padding-bottom: min(20vw, 79px); }
  .process__grid { grid-template-columns: 1fr; width: calc(100% - var(--pad-x) * 2); }
  .step { display: grid; grid-template-columns: 1fr min(36vw, 142px); grid-template-areas: "num photo" "tick photo" "name photo" "text photo"; column-gap: min(4vw, 16px); align-content: start;
    min-height: 0; padding: min(5vw, 20px); border-right: 1px solid var(--hair); }
  .step__num { grid-area: num; } .step .tick { grid-area: tick; margin: min(3vw, 12px) 0; } .step__name { grid-area: name; margin: 0 0 min(1.5vw, 6px); }
  .step__text { grid-area: text; max-width: none; }
  .step__photo { grid-area: photo; margin-top: 0; align-self: stretch; aspect-ratio: auto; min-height: min(40vw, 158px); }
}
