/* Editorial pages use the same type, spacing and copper accents as the storefront. */
.project-page #page { background: #f6f6f2; color: #272b26; }
.jp-layout {
  --rule: #d8d9d0;
  --surface: #e9e6dd;
  padding-block: calc(var(--hd-h) + clamp(32px, 4.5vw, 65px)) clamp(56px, 6vw, 88px);
}
.jp-layout figure, .jp-layout blockquote { margin: 0; }
.jp-layout :where(section, article, [id]) { scroll-margin-top: calc(var(--hd-h) + 18px); }
.jp-heading h1 {
  max-width: 21ch; font-size: clamp(38px, 4.8vw, 72px); font-weight: 530;
  letter-spacing: -.052em; line-height: 1.03; text-wrap: balance;
}
.jp-layout h2:not(.fcard-name) {
  font-size: clamp(25px, 2.6vw, 39px); font-weight: 520;
  line-height: 1.12; letter-spacing: -.037em; text-wrap: balance;
}
.jp-layout h3 { font-size: clamp(20px, 2vw, 29px); line-height: 1.15; letter-spacing: -.025em; }
.jp-heading p, .jp-panel p, .jp-routes p, .jp-brief p, .jp-contact p, .jp-locations p {
  max-width: 59ch; margin-block: 14px 0; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.53; color: #4f544d;
}
.jp-heading p { max-width: 49ch; margin-block-start: 18px; }
.jp-link {
  display: inline-flex; align-items: center; gap: .65em; align-self: flex-start; width: fit-content;
  color: #6e462e; font-weight: 600; line-height: 1.35; text-decoration: none;
  padding-block: 6px; border-bottom: 1px solid #b69b84;
}
.jp-link:hover { color: #3c291e; border-color: currentColor; }
.jp-layout :where(a, button, video):focus-visible { outline: 3px solid #985526; outline-offset: 3px; }
.jp-layout .arrow { flex-shrink: 0; }
.jp-section { margin-block-start: clamp(44px, 6vw, 85px); }
.jp-section-head, .jp-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.jp-section-head { margin-block-end: 24px; }
.jp-end { justify-content: center; margin-block-start: clamp(30px, 4vw, 55px); }
.jp-settings {
  display: flex; flex-wrap: wrap; column-gap: clamp(12px, 2.8vw, 42px); row-gap: 2px;
  margin-block: clamp(20px, 2.5vw, 38px) 22px; border-bottom: 1px solid var(--rule);
}
.jp-settings a {
  min-height: 44px; padding: 12px 0 9px; margin-bottom: -1px; border-bottom: 3px solid transparent;
  color: #4f544d; font-size: 15px; line-height: 1.3; text-decoration: none;
}
.jp-settings a[aria-current], .jp-settings a:hover { color: #69452e; border-bottom-color: #80573b; }
.jp-settings a[aria-current] { font-weight: 650; }
.jp-setting, .jp-feature { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); background: var(--surface); }
.jp-panel { padding: clamp(24px, 3.6vw, 56px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.jp-panel .jp-link, .jp-split .jp-link { margin-block-start: 22px; }
.jp-scene, .jp-portrait { position: relative; min-width: 0; }
.jp-scene { height: clamp(285px, 29vw, 435px); background: #eeefeb; }
.jp-scene img, .jp-locations img, .jp-portrait img { width: 100%; height: 100%; object-fit: cover; }
.jp-scene-architecture img, .jp-scene-memorial img { object-fit: contain; }
.jp-scene figcaption, .jp-portrait figcaption {
  position: absolute; inset-inline-start: 14px; bottom: 13px; padding: 4px 10px;
  background: rgb(251 250 246 / .95); color: #43463d; font-size: 12px; line-height: 1.4; border-radius: 3px;
}
.jp-split { display: grid; align-items: center; gap: clamp(26px, 5vw, 80px); grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); }
.jp-split > *, .jp-locations > *, .jp-contact > * { min-width: 0; }
.jp-portrait { background: #e8e6df; height: clamp(315px, 32vw, 475px); overflow: hidden; }
.jp-portrait img { object-position: 50% 35%; }
.jp-routes, .jp-brief, .jp-contact { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(24px, 3.6vw, 62px); }
.jp-routes article, .jp-brief > div, .jp-story, .jp-contact { padding-block-start: clamp(20px, 2vw, 30px); border-top: 1px solid #b6b8ac; }
.jp-routes article { display: flex; flex-direction: column; align-items: flex-start; }
.jp-routes p { margin-block-end: 18px; }
.jp-routes :is(.jp-link,.btn) { margin-block-start: auto; }
.jp-brief ul { margin-block-start: 18px; list-style: disc; padding-inline-start: 20px; }
.jp-brief li + li { margin-block-start: 7px; }
.jp-brief .btn, .jp-contact .btn, .jp-locations .jp-link { margin-block-start: 20px; }
.jp-film video, .jp-clip { width: 100%; max-width: 100%; aspect-ratio: 16/9; display: block; object-fit: contain; background: #23251f; }
.jp-film .jp-tour { background: #eae8e0 url("img/hero-factory-yard.webp") center / cover no-repeat; }
.jp-film figcaption { display: flex; gap: 12px; justify-content: space-between; margin-top: 9px; color: #55594e; font-size: 14px; }
.jp-film figcaption bdi { font-variant-numeric: tabular-nums; }
.jp-story { display: grid; grid-template-columns: minmax(0,.65fr) minmax(0,1.35fr); gap: 30px; }
.jp-story blockquote { max-width: 52ch; font-size: clamp(20px, 2.1vw, 32px); line-height: 1.35; letter-spacing: -.02em; }
.jp-locations { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); background: var(--surface); }
.jp-locations > div { padding: clamp(24px, 3.4vw, 54px); }
.jp-locations article + article { margin-top: 22px; padding-top: 22px; border-top: 1px solid #c9c8bd; }
.jp-locations figure { position: relative; min-height: 260px; }
.jp-locations img { position: absolute; inset: 0; }
.jp-contact address { font-style: normal; font-size: 16px; overflow-wrap: anywhere; }
.jp-contact address > a { font-size: clamp(20px,2vw,30px); }
.jp-contact address a { color: #6e462e; text-underline-offset: 4px; }
.jp-contact address p { font-size: 14px; }
.project-page[data-page="applications"] #hd a[href="applications.html"],
.project-page[data-page="custom"] #hd a[href="custom.html"],
.project-page[data-page="manufacturing"] #hd a[href="manufacturing.html"],
.project-page[data-page="about"] #hd a[href="about.html"] { color: #69452e; text-decoration: underline; text-underline-offset: 6px; }
@media (max-width: 760px) {
  .jp-layout { padding-block-start: calc(var(--hd-h) + 28px); }
  .jp-setting, .jp-split, .jp-feature, .jp-locations, .jp-brief, .jp-contact, .jp-story { grid-template-columns: minmax(0,1fr); }
  .jp-routes { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .jp-scene, .jp-portrait { height: auto; aspect-ratio: 4/3; }
  .jp-portrait { aspect-ratio: 5/4; }
  .jp-scene img, .jp-portrait img { position: absolute; inset: 0; }
  .jp-settings { column-gap: 20px; row-gap: 0; }
  .jp-panel { padding: 24px; }
  .jp-story { gap: 12px; }
  .jp-locations figure { min-height: 0; aspect-ratio: 16/10; }
  .jp-section-head { align-items: flex-start; }
}

/* The setting index is a visual directory; individual collections keep the full catalogue image frame. */
.jp-index > .jp-heading { display:grid; grid-template-columns:1.3fr .85fr; gap:5%; align-items:end; }
.jp-index > .jp-heading p { margin:0; }
.jp-atlas {
  margin-block-start:clamp(24px,3vw,44px); display:grid; grid-template-columns:1.5fr 1fr 1fr;
  grid-template-rows:repeat(2,clamp(150px,15.5vw,224px)); gap:8px;
}
.jp-tile { display:block; position:relative; isolation:isolate; overflow:hidden; color:#fff; background:#59594d; }
.jp-tile:first-child { grid-row:span 2; }
.jp-tile img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform .4s ease; }
.jp-tile::after { content:""; position:absolute; inset:0; background:linear-gradient(0deg,rgba(18,21,17,.84),rgba(18,21,17,.28) 38%,transparent 72%); pointer-events:none; }
.jp-tile:focus-visible img, .jp-tile:hover img { transform:scale(1.035); }
.jp-tile-info { position:absolute; z-index:1; inset-inline:clamp(14px,1.7vw,25px) 34px; bottom:clamp(12px,1.6vw,23px); }
.jp-tile-info small { display:block; margin-bottom:4px; font-size:12px; color:#f4f1e9; }
.jp-tile-info strong { display:block; font-weight:550; font-size:clamp(18px,2vw,29px); line-height:1.08; letter-spacing:-.025em; }
.jp-tile:first-child strong { font-size:clamp(27px,3.2vw,45px); }
.jp-tile .arrow { position:absolute; z-index:1; bottom:clamp(23px,2.2vw,33px); inset-inline-end:16px; }
.jp-tile-memorial img { object-position:50% 40%; }
.jp-setting-page .jp-settings { margin-block-start:0; }
.jp-setting .jp-heading h1 { font-size:clamp(32px,3.8vw,60px); }
.jp-block-title { margin-block-end:clamp(20px,2.4vw,34px); }
.jp-block-title p, .jp-proof p, .jp-checkpoints p, .jp-bench figcaption p, .jp-material p {
  max-width:60ch; margin:10px 0 0; line-height:1.52; color:#4d534c;
}
.jp-panel bdi, .jp-choice article > bdi { display:block; margin-block-end:8px; font:500 13px var(--mono); color:#6a665e; }
.jp-choice h3 { max-width:29ch; }
.jp-field-photo { position:relative; }
.jp-field-photo img { width:100%; height:clamp(280px,28vw,425px); object-fit:cover; }
.jp-field-photo figcaption, .jp-locations figcaption, .jp-bronze-ref span {
  position:absolute; bottom:12px; inset-inline-start:12px; max-width:calc(100% - 24px);
  background:rgb(250 248 241 / .96); border-radius:3px; padding:4px 9px; font-size:12px; color:#2b3128;
}
.jp-field-photo a { text-underline-offset:3px; }
.jp-study-image { display:grid; place-items:center; min-width:0; background:#fff; }
.jp-study-image img { display:block; width:100%; height:clamp(280px,31vw,465px); object-fit:contain; }
.jp-study-basin img { object-fit:cover; }
.jp-review, .jp-inspection, .jp-responsibility { border-top:1px solid var(--rule); padding-block-start:clamp(25px,3vw,42px); }
.jp-checkpoints, .jp-proof { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(18px,3.4vw,54px); }
.jp-checkpoints { counter-reset:stage; }
.jp-checkpoints li { counter-increment:stage; border-top:2px solid #a88a6c; padding-block-start:13px; }
.jp-checkpoints li::before { content:counter(stage,decimal-leading-zero); font:500 14px var(--mono); color:#79543a; display:block; margin-block-end:12px; }
.jp-disclosure { border-bottom:1px solid var(--rule); }
.jp-disclosure summary {
  display:flex; gap:16px; align-items:center; justify-content:space-between; cursor:pointer; list-style:none;
  padding:12px 0; font-weight:570; color:#313b30;
}
.jp-disclosure summary::-webkit-details-marker { display:none; }
.jp-disclosure summary::after { content:"+"; font-weight:400; color:#775335; font-size:21px; line-height:1; }
.jp-disclosure[open] summary::after { content:"−"; }
.jp-disclosure p { margin:0 0 14px; }
.jp-questions h2 { margin-block-end:12px; }
.jp-layout summary:focus-visible { outline:2px solid #985526; outline-offset:2px; }
.jp-bench { display:grid; grid-template-columns:1.32fr 1fr 1fr; gap:clamp(12px,2vw,28px); }
.jp-bench img { width:100%; aspect-ratio:4/3; object-fit:cover; }
.jp-bench > figure:first-child img { aspect-ratio:1.76; }
.jp-bench figcaption { margin-block-start:14px; }
.jp-bench h3, .jp-proof h3, .jp-checkpoints h3 { font-size:clamp(21px,1.85vw,28px); }
.jp-materials { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(18px,2vw,32px); }
.jp-material { display:flex; flex-direction:column; background:#fff; min-width:0; border:1px solid var(--rule); }
.jp-material > div { padding:clamp(18px,2vw,30px); }
.jp-material .jp-link, .jp-proof .jp-link { margin-top:16px; }
.jp-material .jp-disclosure:first-of-type { margin-top:16px; border-top:1px solid var(--rule); }
.jp-bronze-ref { display:block; position:relative; background:#e7e4db; }
.jp-bronze-ref img { width:100%; aspect-ratio:16/9; object-fit:contain; }
.jp-proof-image { display:block; background:#ebe8df; margin-bottom:16px; overflow:hidden; }
.jp-proof-image img { width:100%; aspect-ratio:16/10; object-fit:cover; }
.jp-examples article:first-child img { object-fit:contain; background:white; }
.jp-examples article { display:flex; flex-direction:column; }
.jp-examples .jp-link { margin-top:auto; }
.jp-examples p { margin-bottom:16px; }
[dir=rtl] .jp-link .arrow, [dir=rtl] .jp-tile .arrow { transform:rotate(180deg); }
@media (max-width:800px) {
  .jp-atlas { grid-template-columns:1.2fr 1fr 1fr; }
  .jp-index > .jp-heading { display:block; }
  .jp-index > .jp-heading p { margin-top:15px; }
  .jp-bench { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .jp-bench > figure:first-child img { aspect-ratio:4/3; }
}
@media (max-width:625px) {
  .jp-atlas { grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:auto; gap:6px; }
  .jp-tile { aspect-ratio:1.35; }
  .jp-tile:first-child { grid-row:auto; grid-column:1/-1; aspect-ratio:2.05; }
  .jp-tile-info { inset-inline:10px 15px; bottom:10px; }
  .jp-tile-info small { font-size:10px; }
  .jp-tile-info strong { font-size:clamp(16px,4.2vw,22px); overflow-wrap:anywhere; }
  .jp-tile .arrow { display:none; }
  .jp-materials, .jp-checkpoints, .jp-proof, .jp-bench { grid-template-columns:minmax(0,1fr); }
  .jp-bench img, .jp-bench > figure:first-child img { aspect-ratio:1.8; }
  .jp-proof > article + article { padding-top:16px; border-top:1px solid var(--rule); }
  .jp-study-image img { height:auto; max-height:360px; }
  .jp-field-photo img { height:auto; aspect-ratio:1.6; }
}
@media (prefers-reduced-motion:reduce) { .jp-tile img { transition:none; } }

.jp-company-photos { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,.85fr); gap:6px; }
.jp-company-photos .jp-portrait, .jp-origin { height:clamp(270px,28vw,415px); }
.jp-company-photos .jp-portrait img { object-position:49% 31%; }
.jp-origin { position:relative; }
.jp-origin img { width:100%; height:100%; object-fit:cover; object-position:44% center; }
.jp-origin figcaption { position:absolute; bottom:13px; inset-inline:10px auto; padding:4px 9px; color:#363d34; background:rgb(250 248 241 / .95); font-size:12px; line-height:1.4; }
.jp-workshop-intro {
  padding:clamp(18px,2.6vw,42px); gap:clamp(24px,3.8vw,58px); color:#fbf9f3; background:#27342d;
  grid-template-columns:minmax(0,.8fr) minmax(0,1.3fr);
}
.jp-workshop-intro .jp-heading h1 { color:#fbf9f3; }
.jp-workshop-intro .jp-heading p, .jp-workshop-intro figcaption { color:#e2e8df; }
.jp-workshop-intro .jp-link { color:#f6e5ca; border-color:#a99882; }
.jp-workshop-intro .jp-link:hover { color:white; border-color:white; }
@media(max-width:760px) {
  .jp-workshop-intro { grid-template-columns:minmax(0,1fr); }
  .jp-company-photos .jp-portrait, .jp-origin { height:clamp(225px,55vw,320px); aspect-ratio:auto; }
}
