.founder-page {
  --founder-ink: #2b241d;
  --founder-paper: #f2eee5;
  --founder-edge: clamp(22px, 5vw, 88px);
  --founder-measure: 1360px;
  color: var(--founder-ink);
}
.founder-cover, .founder-journey, .founder-thought, .founder-seat {
  background-color: var(--founder-paper);
  background-image: linear-gradient(#f2eee5cc, #f2eee5cc), url('assets/materials/wall/limestone-web.webp');
  background-position: center;
  background-size: cover;
}
.founder-cover-inner, .founder-spread, .founder-seat-inner {
  width: min(calc(100% - 2 * var(--founder-edge)), var(--founder-measure));
  margin-inline: auto;
}
.founder-cover-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(32px, 6vw, 102px);
  padding-block: clamp(36px, 4.6vw, 76px) clamp(52px, 6vw, 98px);
}
.founder-cover h1, .founder-chapter h2, .founder-seat h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.028em;
  text-wrap: balance;
}
.founder-cover h1 {
  width: fit-content;
  font-size: calc(clamp(90px, 9.6vw, 160px) * var(--heading-size-scale));
  line-height: .98;
  transform-origin: left 66%;
}
.founder-intro h1 > span { display: block; }
.founder-intro h1 > span:last-child { padding-inline-start: .42em; color: var(--clay); }
.founder-intro p, .founder-chapter p, .founder-seat-copy p {
  font-size: var(--reading-size);
  font-weight: var(--reading-weight);
  color: var(--reading-ink);
  text-wrap: pretty;
}
.founder-intro p {
  max-width: 32ch;
  margin-top: clamp(15px, 2vw, 31px);
  line-height: 1.5;
}
.founder-worktable {
  justify-self: end;
  width: min(100%, 620px);
  height: clamp(445px, 68svh, 810px);
  overflow: hidden;
}
.founder-page main img { display: block; width: 100%; height: 100%; object-fit: cover; }
.founder-worktable img { object-position: center 52%; }

.founder-journey {
  position: relative;
  isolation: isolate;
}
.founder-journey::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 48% 0 0;
  background-color: #30251d;
  background-image: linear-gradient(rgb(38 29 22 / .71), rgb(38 29 22 / .69)), url('assets/materials/wood/smoked-walnut-web.webp');
  background-size: cover;
  background-position: center;
}
.founder-spread {
  --print-height: clamp(320px, 58svh, 620px);
  --journey-gap: clamp(48px, 8vw, 142px);
  --journey-columns: minmax(0, 1.08fr) minmax(0, .88fr);
  display: grid;
  grid-template-columns: var(--journey-columns);
  grid-template-rows: auto auto;
  gap: clamp(48px, 6vw, 100px) var(--journey-gap);
  padding-block: clamp(52px, 7vw, 112px);
}
.founder-stage, .founder-gallery, .founder-chapters { display: contents; }
.chapter-anchor { grid-column: 1; height: 0; align-self: start; pointer-events: none; }
#japon { grid-row: 1; }
#mallorca { grid-row: 2; }
.founder-chapter { align-self: center; scroll-margin-top: 2rem; }
.chapter-japan { grid-area: 1 / 2; }
.chapter-mallorca { grid-area: 2 / 2; }
.founder-chapter h2, .founder-seat h2 {
  font-size: calc(clamp(62px, 6.25vw, 104px) * var(--heading-size-scale));
  line-height: 1.02;
}
.founder-chapter h2 { max-width: 14ch; margin-bottom: clamp(12px, 1.7vw, 22px); }
.founder-chapter p, .founder-seat-copy p { max-width: 43ch; line-height: 1.6; }
.founder-chapter p + p, .founder-seat-copy p + p { margin-top: .76em; }
.founder-print { height: var(--print-height); overflow: hidden; align-self: start; }
.print-japan { grid-area: 1 / 1; }
.print-mallorca { grid-area: 2 / 1; }
.print-japan img { object-position: center 56%; }
.print-mallorca img { object-position: 47% 48%; }

.founder-spread[data-pinned] {
  --chapter-hold: clamp(190px, 46svh, 560px);
  --stage-foot: max(78px, calc(68px + env(safe-area-inset-bottom)));
  position: relative;
  display: block;
  padding-block: 0;
}
.founder-spread[data-pinned]::after { content: ''; display: block; height: calc(2 * var(--chapter-hold)); }
[data-pinned] .chapter-anchor { position: absolute; inset-inline-start: 0; width: 1px; }
[data-pinned] #japon { top: 0; }
[data-pinned] #mallorca { top: calc(var(--chapter-hold) + 2px); }
[data-pinned] .founder-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  grid-template-columns: var(--journey-columns);
  align-items: center;
  column-gap: var(--journey-gap);
  padding-block: clamp(12px, 4svh, 54px) var(--stage-foot);
}
[data-pinned] .founder-gallery {
  position: relative;
  display: block;
  height: min(var(--print-height), 64svh);
  isolation: isolate;
  overflow: hidden;
  background: #30251d;
}
[data-pinned] .founder-print {
  position: absolute;
  inset: 0;
  margin: 0;
  height: 100%;
  width: 100%;
}
[data-pinned] .print-mallorca { opacity: 0; }
[data-pinned] .founder-chapters {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  max-height: calc(100svh - var(--stage-foot) - 20px);
  overflow-y: auto;
  scrollbar-width: thin;
}
[data-pinned] .founder-chapter {
  grid-area: 1 / 1 / 3 / 2;
  display: grid;
  grid-template-rows: subgrid;
  align-items: start;
  align-self: start;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  user-select: none;
}
[data-pinned][data-chapter="japon"] .chapter-japan,
[data-pinned][data-chapter="mallorca"] .chapter-mallorca {
  opacity: 1;
  pointer-events: auto;
  user-select: text;
}
[data-pinned] .founder-chapter h2 { transform-origin: left top; }
.founder-text-line-mask { overflow-clip-margin: .08em; }

.founder-thought {
  padding: clamp(70px, 10vw, 166px) var(--founder-edge);
  position: relative;
}
.founder-thought::after {
  position: absolute;
  content: '';
  inset: auto 0 0;
  height: 1px;
  width: min(calc(100% - 2 * var(--founder-edge)), var(--founder-measure));
  margin-inline: auto;
  background-color: #ab9d88;
}
.founder-thought-line {
  max-width: 25ch;
  margin-inline: auto;
  font: 400 clamp(34px, 5vw, 78px)/1.13 var(--serif);
  letter-spacing: -.022em;
  text-align: center;
  text-wrap: balance;
}
.founder-thought-line > [data-place="thoughtFirst"] { color: var(--clay); }
.founder-thought-frames {
  position: relative;
  display: inline-block;
  width: 1.82em;
  aspect-ratio: 1.77;
  overflow: hidden;
  vertical-align: -.13em;
  background-color: #30251d;
}
.founder-thought-frames img { position: absolute; inset: 0; }
.founder-thought-frames img[hidden] { display: none; }
.founder-ink-word, .founder-ink-letter { display: inline-block; }
.founder-ink-letter { transform-origin: center 88%; }

.founder-seat { padding-block: clamp(62px, 7.5vw, 132px); }
.founder-seat-story {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .88fr);
  gap: clamp(32px, 8vw, 142px);
  align-items: start;
}
.founder-seat h2 { max-width: 11.5ch; transform-origin: left 20%; }
.founder-menu-link {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  min-height: 44px;
  margin-top: 17px;
  border-bottom: 1px solid currentColor;
}
.story-arrow { display: inline-block; font: 400 1.35em/1 var(--body); }
.founder-details {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: end;
  gap: clamp(22px, 4.6vw, 84px);
  margin-top: clamp(35px, 5vw, 85px);
}
.founder-detail { display: block; }
.detail-image { display: block; overflow: hidden; }
.detail-paper .detail-image { aspect-ratio: 1.32; }
.detail-clay .detail-image { aspect-ratio: 1.44; }
.detail-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding-block: 10px 8px;
  border-bottom: 1px solid #9c9080;
  font-size: clamp(16px, 1.25vw, 20px);
}
.founder-page main a:focus-visible { outline: 2px solid var(--clay); outline-offset: 4px; }
.founder-page main a:is(:hover,:focus-visible) { color: var(--clay); }

@media (prefers-reduced-motion: no-preference) {
  .founder-detail img, .founder-menu-link .story-arrow { transition: transform .42s var(--ease); }
  .founder-detail:is(:hover,:focus-visible) img { transform: scale(1.025); }
  .founder-menu-link:is(:hover,:focus-visible) .story-arrow { transform: translateX(4px); }
}
@media (max-width: 840px) {
  .founder-cover-inner { column-gap: 22px; }
  .founder-cover h1 { font-size: calc(clamp(64px, 10vw, 90px) * var(--heading-size-scale)); }
  .founder-worktable { height: clamp(340px, 56vw, 455px); }
  .founder-spread { --print-height: clamp(285px, 42vw, 400px); --journey-gap: 35px; }
  .founder-chapter h2, .founder-seat h2 { font-size: calc(clamp(48px, 6.6vw, 69px) * var(--heading-size-scale)); }
}
@media (max-width: 640px) {
  .founder-cover-inner { grid-template-columns: minmax(0, 1fr); row-gap: 24px; padding-block: 29px 38px; }
  .founder-intro p { margin-top: 12px; }
  .founder-journey::before { display: none; }
  .founder-worktable { width: 100%; height: auto; aspect-ratio: 1.08; }
  .founder-worktable img { object-position: center 51%; }
  .founder-spread { grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: 45px 48px; }
  .chapter-japan { grid-area: 1 / 1; }
  .print-japan { grid-area: 2 / 1; }
  .chapter-mallorca { grid-area: 3 / 1; margin-top: 45px; }
  #mallorca { grid-row: 3; }
  .print-mallorca { grid-area: 4 / 1; }
  .founder-chapter, .founder-print { align-self: stretch; }
  .founder-chapter h2 { max-width: 18ch; margin-bottom: 9px; }
  .founder-print { width: 100%; height: auto; aspect-ratio: 1.39; margin-top: 22px; }
  [data-pinned] .founder-stage {
    --stage-top: clamp(10px, 2.5svh, 24px);
    --stage-gap: clamp(14px, 3svh, 30px);
    --photo-min: min(10svh, 70px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: var(--stage-gap);
    padding-top: var(--stage-top);
  }
  [data-pinned] .founder-gallery { flex: 0 1 min(27svh, 224px); min-height: var(--photo-min); }
  [data-pinned] .founder-chapters {
    flex: none;
    max-height: calc(100svh - var(--stage-foot) - var(--stage-top) - var(--stage-gap) - var(--photo-min));
  }
  .founder-seat { padding-block: 48px; }
  .founder-seat-story { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .founder-seat h2 { max-width: none; transform-origin: left center; }
  .founder-menu-link { margin-top: 9px; }
  .founder-details { gap: 14px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 27px; }
  .founder-detail .detail-image { aspect-ratio: 1.03; }
  .detail-caption { align-items: baseline; font-size: 15px; gap: 4px; }
}
@media (orientation: portrait) and (max-width: 640px) and (max-height: 800px) {
  .founder-page:has(.founder-spread[data-reading]) .site-to-top {
    top: max(12px, env(safe-area-inset-top));
    bottom: auto;
  }
}
@media (orientation: landscape) and (max-height: 480px) {
  .founder-page:has(.founder-spread[data-reading]) .site-to-top {
    bottom: max(14px, calc(10px + env(safe-area-inset-bottom)));
  }
  .founder-journey:has([data-pinned])::before { inset-inline-end: 67.5%; }
  .founder-spread[data-pinned] { --stage-foot: max(64px, calc(56px + env(safe-area-inset-bottom))); }
  [data-pinned] .founder-stage {
    display: grid;
    grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr);
    align-items: center;
    gap: clamp(16px, 3vw, 32px);
    padding-top: 8px;
  }
  [data-pinned] .founder-gallery { height: 62svh; }
  [data-pinned] .founder-chapters { max-height: calc(100svh - var(--stage-foot) - 8px); }
  [data-pinned] .founder-chapter h2 { max-width: none; font-size: calc(clamp(36px, 5vw, 58px) * var(--heading-size-scale)); margin-bottom: 6px; }
  [data-pinned] .founder-chapter p { line-height: 1.42; }
  [data-pinned] .founder-chapter p + p { margin-top: .5em; }
}
@media (max-width: 640px) and (orientation: landscape) and (max-height: 480px) {
  [data-pinned] .founder-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); }
}
@media (max-width: 360px) {
  .founder-details { grid-template-columns: minmax(0, 1fr); }
  .founder-detail .detail-image { aspect-ratio: 1.65; }
}
