/* ==========================================================================
   EVERFINISH — contemporary, clean, minimal. The only page that opens light.
   ========================================================================== */

/* --- HERO — the panel is the subject -------------------------------------- */

.ehero { padding-bottom: clamp(60px, 8vw, 120px); }

.ehero__inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  align-items: end;
  padding-top: calc(var(--nav-h) + clamp(50px, 10vh, 140px));
  padding-bottom: clamp(40px, 5vw, 80px);
}
.ehero__type { grid-column: 1 / span 6; }
.ehero__headline { margin-top: clamp(22px, 3vw, 38px); max-width: min(11ch, 100%); }
.ehero__sub { margin-top: clamp(26px, 3vw, 42px); max-width: min(40ch, 100%); }

/* photographs are never framed — they sit on the ground and cast a shadow */
.ehero__panel { grid-column: 8 / span 5; margin: 0; position: relative; }
.ehero__panel img {
  width: 100%; height: auto;
  filter: drop-shadow(0 40px 60px rgba(10,10,10,0.28));
}
.ehero__panel figcaption { margin-top: 18px; }

@media (max-width: 960px) {
  .ehero__type, .ehero__panel { grid-column: 1 / -1; }
  .ehero__panel { margin-top: 48px; }
}


/* --- THE FACE — the light travels the panel ------------------------------- */

.face { padding-block: 0; }

.face__pin {
  min-height: 100svh;
  display: flex; align-items: center;
  padding-block: var(--sp-block);
}
.face__inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  width: 100%;
  align-items: center;
}
.face__aside { grid-column: 1 / span 4; }
.face__aside .index { margin-bottom: 8px; }
.face__title { margin: 18px 0 clamp(22px, 3vw, 36px); font-size: var(--fs-h2); max-width: min(12ch, 100%); }
.face__note { font-size: var(--fs-small); max-width: min(34ch, 100%); }

.face__stage {
  position: relative;
  grid-column: 7 / span 6;
  margin: 0;
  overflow: hidden;
}
.face__stage img { width: 100%; height: auto; display: block; }

/* the raking light, the only thing that moves on this page */
.face__light {
  position: absolute;
  top: -10%; bottom: -10%;
  left: var(--x, 0%);
  width: clamp(90px, 13vw, 210px);
  margin-left: clamp(-105px, -6.5vw, -45px);
  background: linear-gradient(100deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.12) 34%,
    rgba(255,255,255,0.60) 50%,
    rgba(255,255,255,0.12) 66%,
    rgba(255,255,255,0) 100%);
  mix-blend-mode: overlay;
  opacity: 0;
  pointer-events: none;
  will-change: left, opacity;
}

@media (max-width: 960px) {
  .face__aside, .face__stage { grid-column: 1 / -1; }
  .face__stage { margin-top: 44px; }
}
@media (max-width: 860px) { .face__pin { min-height: 0; padding-block: var(--sp-band); } }


/* --- THE DECORS — a gallery, not a grid of thumbnails --------------------- */

.decors2 { padding-block: var(--sp-band); }
.decors2__head { margin-bottom: clamp(44px, 6vw, 80px); }
.decors2__head .index { margin-bottom: 12px; }
.decors2__hint { margin-top: 20px; }

.decors2__viewport {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
}
.decors2__viewport::-webkit-scrollbar { display: none; }
.decors2__viewport.is-dragging { cursor: grabbing; }

.decors2__track {
  display: flex;
  gap: clamp(24px, 3vw, 60px);
  padding-inline: var(--gutter);
  width: max-content;
}

.decor { flex: 0 0 auto; width: clamp(230px, 24vw, 340px); margin: 0; }
.decor img {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 30px 44px rgba(0,0,0,0.55));
  transition: transform var(--t-slow) var(--ease);
}
.decor figcaption { margin-top: 20px; }
.decor__name {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(15px, 1.2vw, 19px); letter-spacing: -0.015em;
  color: var(--ink);
}
@media (hover: hover) { .decor:hover img { transform: translateY(-8px); } }


/* --- THE IDEA ------------------------------------------------------------- */

.eidea__grid { row-gap: 40px; }
.eidea__grid .index { margin-bottom: 8px; }
.eidea__title { margin-bottom: clamp(36px, 4.4vw, 60px); }
.eidea__note {
  margin-top: clamp(32px, 4vw, 52px);
  padding-top: clamp(26px, 3vw, 40px);
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--dim);
  max-width: min(58ch, 100%);
}


/* --- WHAT IT CHANGES ------------------------------------------------------ */

.echange__head { align-items: end; row-gap: 24px; margin-bottom: clamp(50px, 7vw, 100px); }
.echange__head .index { margin-bottom: 8px; }

.echange__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(30px, 5vw, 110px);
}
.echange__row { padding-block: clamp(26px, 3vw, 46px); border-top: 1px solid var(--rule); }
.echange__row h3 { margin: 14px 0 12px; font-size: clamp(21px, 1.8vw, 30px); }
.echange__row p { font-size: var(--fs-small); }

@media (max-width: 760px) { .echange__list { grid-template-columns: 1fr; } }


/* --- THE RANGE ------------------------------------------------------------ */

.erange__head { align-items: end; row-gap: 24px; margin-bottom: clamp(50px, 7vw, 100px); }
.erange__head .index { margin-bottom: 8px; }
.erange__intro { margin-top: 24px; }

.erange__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 56px);
  align-items: center;
}
.erange__grid .object { aspect-ratio: 4 / 5; }

@media (max-width: 760px) { .erange__grid { grid-template-columns: 1fr; } }


/* --- CLOSE ---------------------------------------------------------------- */

.eclose__inner { padding-block: var(--sp-band); text-align: center; }
.eclose__headline { max-width: min(13ch, 100%); margin-inline: auto; }
.eclose__ctas {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
  margin-top: clamp(34px, 4vw, 56px);
}


/* ==========================================================================
   PERSONALITY — CONTEMPORARY LUXURY
   The quietest page. Sections are introduced centred, with more air above
   and below than any other page allows.
   ========================================================================== */

[data-page="everfinish"] .sec-head {
  display: block;
  text-align: center;
  margin-bottom: clamp(70px, 10vw, 160px);
}
[data-page="everfinish"] .sec-head > .col-3,
[data-page="everfinish"] .sec-head > .col-8 { grid-column: auto; }
[data-page="everfinish"] .sec-head > .col-3 { margin-bottom: 22px; }
[data-page="everfinish"] .sec-head h2 {
  font-size: clamp(28px, 3.8vw, 58px);
  letter-spacing: -0.032em;
  max-width: min(18ch, 100%);
  margin-inline: auto;
}
[data-page="everfinish"] .band__inner { padding-block: clamp(140px, 20vw, 300px); }

/* the review block replaces the old note; keep its rhythm */
.review.eidea__note { margin-top: clamp(32px, 4vw, 52px); border-top-color: var(--rule); }

/* contemporary luxury — one soft fall of light, nothing else */
[data-page="everfinish"] .plate,
[data-page="everfinish"] .finish { background-image: url("../assets/fields/light-fall.svg"); background-size: cover; }

/* objects on this page are made of its own material */
.object { --object-field: url("../assets/fields/light-fall.svg"); }


/* ==========================================================================
   THE DECORS, AS SUPPLIED
   The client's photography is a set of flat decor faces. They are material,
   not objects — so they are not floated on a shadow like a product shot.
   They sit in the page as surfaces, cropped and full-bleed in their column,
   with the name set beneath in type rather than burnt into the image.
   ========================================================================== */

.ehero__panel img {
  filter: none;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}
.ehero__panel figcaption {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

.face__stage img { aspect-ratio: 4 / 3; object-fit: cover; }

.decor img {
  filter: none;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease), filter var(--t-slow) var(--ease);
}
.decor figcaption {
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--rule);
}
@media (hover: hover) {
  .decor:hover img { transform: none; filter: brightness(1.06); }
}

.eidea__aside {
  margin-top: clamp(30px, 3.6vw, 48px);
  padding-top: clamp(24px, 2.8vw, 36px);
  border-top: 1px solid var(--rule);
  font-size: var(--fs-small);
  max-width: min(52ch, 100%);
}


/* ==========================================================================
   THE FACE, FOUND BY THE LIGHT
   The page had one move — a beam crossing a single panel — which said the
   surface is lit but never that there is a range of them. The beam now works:
   the finish behind its leading edge is the next one in the range, so the
   light is what changes the material rather than a control the visitor has to
   operate. The drag rail below is untouched and still browses all fourteen.
   ========================================================================== */

.face__stage { position: relative; }
.face__stage > img { display: block; width: 100%; height: auto; }

.face__next {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* revealed from the left, exactly as far as the beam has travelled */
  clip-path: inset(0 100% 0 0);
  will-change: clip-path;
}

.face__read {
  margin-top: clamp(18px, 2.4vw, 30px);
  min-height: 1.4em;
}
.face__readname {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  .face__next { clip-path: inset(0 100% 0 0); }
}


/* ==========================================================================
   HERO — the finished face leads
   The face was a 37%-wide panel floating in the grid with the type stranded
   beneath it, so most of the opening was empty paper and the fold cut the
   sub-copy. The face now runs the full height of the section and off the
   right edge; the type takes the narrower half beside it. No JS animates
   this figure, so the image needs no overhang — it fills its frame exactly.
   ========================================================================== */

.ehero { position: relative; overflow: hidden; padding-bottom: 0; }

.ehero__panel {
  position: absolute;
  inset: 0 0 0 auto;
  width: 58%;
  grid-column: auto;
  margin: 0;
}
.ehero__panel img {
  width: 100%;
  height: 100%;
  /* the section now sets the shape; the 3/4 box was for the old grid cell */
  aspect-ratio: auto;
  object-fit: cover;
  object-position: 50% 50%;
}
/* Running the face to full height put it under the nav, and the decor name
   sits on it too. Measured on Soria Oak: nav 3.12:1 and caption 3.72:1
   against the band ink, both under AA. One wash lifts the two strips the
   type actually occupies back toward the paper; the face between them is
   untouched. */
.ehero__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(240, 236, 230, 0.56) 0, rgba(240, 236, 230, 0) 118px),
    linear-gradient(0deg,   rgba(240, 236, 230, 0.62) 0, rgba(240, 236, 230, 0) 72px);
}

/* the decor names itself on its own surface, the way a sample is labelled */
.ehero__panel figcaption {
  position: absolute;
  z-index: 2;
  left: clamp(16px, 2vw, 30px);
  bottom: clamp(14px, 2vh, 24px);
  margin: 0;
  padding: 0;
  border-top: 0;
  color: var(--ink);
}

.ehero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: min(100svh, 760px);
  padding-top: calc(var(--nav-h) + clamp(24px, 4vh, 56px));
  padding-bottom: clamp(38px, 7vh, 92px);
}
.ehero__type { grid-column: auto; width: min(44ch, 44%); }

/* --- phones: material band first, then the type ---------------------------- */
@media (max-width: 860px) {
  .ehero__inner {
    display: flex;
    flex-direction: column;
    /* the desktop rule packs items to their content width; the band and the
       copy both need the full column here */
    align-items: stretch;
    min-height: 0;
    padding-top: var(--nav-h);
    padding-bottom: clamp(34px, 7vw, 56px);
  }
  .ehero__panel {
    position: relative;
    inset: auto;
    order: -1;                       /* the face reads before the words */
    width: auto;
    height: clamp(230px, 32svh, 320px);
    margin: 0 calc(var(--gutter) * -1) clamp(26px, 5vw, 40px);
  }
  .ehero__type { width: auto; }
}
