/* About and method: the file behind a yacht page, as a pile of sheets on the sea block. */

.who { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 24px clamp(32px, 6vw, 96px); align-items: start; }
.who .read { font-size: 1.15rem; }
@media (max-width: 860px) { .who { grid-template-columns: minmax(0, 1fr); } }

.file-head { display: flex; justify-content: space-between; align-items: end; gap: 20px 40px; flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 64px); }
.file-head h2 { max-width: 14ch; }
.file-pick { width: min(360px, 100%); }
.file-pick .field-label { color: #b9c6d1; }
.file .select { background-color: #12263a; border-color: #345067; color: #f3f1ee; }

.file-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 96px); }
.file-stage { position: sticky; top: max(calc(var(--header-h) + 24px), calc(50vh - min(34vh, 310px) + var(--header-h) / 2)); height: min(68vh, 620px); align-self: start; }
.sheets { position: relative; height: 100%; }

/* one sheet of the file: paper on the sea, whatever the colour scheme */
.sheet {
  --paper: #fcfcfb; --ink: #0a0a09; --ink-2: #3b3732; --muted: #645c53; --line: #e6e1da;
  position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  background: var(--paper); color: var(--ink); border-radius: var(--radius);
  box-shadow: 0 24px 60px rgb(0 0 0 / .35);
  padding: 22px 26px 18px; overflow: hidden;
  opacity: 0; transform: translateY(48px) rotate(1.2deg); transform-origin: 50% 100%;
  transition: transform .7s cubic-bezier(.16, 1, .3, 1), opacity .45s ease;
}
.sheet.is-on { opacity: 1; transform: none; z-index: 10; }
.sheet.is-past {
  opacity: calc(1 - var(--d) * .22);
  transform: translate(calc(var(--d) * -12px), calc(var(--d) * -16px)) rotate(calc(var(--d) * -1.4deg)) scale(calc(1 - var(--d) * .035));
  z-index: calc(10 - var(--d));
}
.sheet-tab { font-size: 0.8125rem; font-weight: 700; color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.sheet-body { min-height: 0; overflow: hidden; }
.sheet-foot { padding-top: 12px; margin-top: 14px; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--ink-2); }

.rec-name { font-family: var(--serif); font-size: clamp(2.4rem, 1.6rem + 2.4vw, 3.6rem); line-height: 1; }
.rec-model { color: var(--ink-2); margin: 8px 0 22px; }
.rec-list, .spec-list { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 0; margin: 0; }
.rec-list dt, .rec-list dd, .spec-list dt, .spec-list dd { margin: 0; padding: 9px 0; border-top: 1px solid var(--line); }
.rec-list dt, .spec-list dt { color: var(--muted); font-size: 0.875rem; }
.rec-list dd, .spec-list dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.spec-list .is-empty { color: #a59d93; font-weight: 400; }

.contact { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.contact img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; background: var(--line); }
.s-plans .plan { width: 100%; height: 100%; object-fit: contain; }
.s-plans .empty, .s-plans .sheet-body { display: grid; place-items: center; color: var(--muted); }

.story-title { font-family: var(--serif); font-size: 1.8rem; line-height: 1.1; margin-bottom: 14px; }
.story-text { color: var(--ink-2); font-size: 1.05rem; line-height: 1.7; max-width: 52ch; }
.stamp {
  display: inline-block; margin-top: 22px; padding: 8px 14px; border: 2px solid var(--sky-ink, #0670b4); border-radius: 3px;
  color: #0670b4; font-weight: 700; font-size: 0.875rem; transform: rotate(-3deg); transform-origin: left center;
}
.never { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.never li { font-family: var(--serif); font-size: clamp(1.4rem, 1rem + 1.2vw, 2rem); padding: 10px 0; border-top: 1px solid var(--line); }
.never s { text-decoration-thickness: 2px; text-decoration-color: #d0742a; }

/* the method, one step per sheet */
.file-steps { display: grid; }
.step { min-height: 72vh; display: grid; align-content: center; gap: 14px; transition: opacity .4s ease; }
.step:not(.is-on) { opacity: .38; }
.step:last-child { min-height: 60vh; }
.step h3 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.5rem); line-height: 1.08; color: #fff; }
.step p { color: #c9d3db; max-width: 46ch; }
.step .file-link { justify-self: start; margin-top: 10px; }
.step-sheet { display: none; }

@media (max-width: 900px) {
  .file-grid { grid-template-columns: minmax(0, 1fr); }
  .file-stage { display: none; }
  .step { min-height: 0; padding: 32px 0; opacity: 1 !important; }
  .step-sheet { display: block; position: relative; height: 420px; margin-top: 12px; }
  .step-sheet .sheet { opacity: 1; transform: none; }
  .contact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .sheet, .step { transition: none; }
}

.after { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(32px, 6vw, 96px); }
.after h2 { font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.4rem); margin-bottom: 14px; }
@media (max-width: 760px) { .after { grid-template-columns: minmax(0, 1fr); } }
