.architecture-route { position: relative; }
.build-story {
  position: relative;
  overflow: clip;
  isolation: isolate;
  --chalk: #efe9db;
  --charcoal: #282a24;
  --ochre: #dba958;
  --terra: #86472f;
}
body:has(.build-story) .site-header { background: #f4efe3f5; border-bottom: 1px solid #47463b26; }
body:has(.build-story) .brand, body:has(.build-story) .site-header nav { color: #24261f; }
body:has(.build-story) .brand small { color: #785923; }
body:has(.build-story) .nav-contact { border-color: #55564c; }
body:has(.build-story) .menu-toggle span { background: #34372b; }
body:has(.build-story) .site-header .reading-progress span { background: #8e652a; }
@media (max-width: 950px) {
  body:has(.build-story) .site-header nav { background-color: #f4efe7; }
}

/* The five fields are ordinary adjacent page sections. The model can cross their edges. */
.build-story .hero {
  min-height: 0;
  background: var(--chalk);
  color: #24261f;
}
.build-story .hero-shade {
  background: linear-gradient(135deg, #f4efe4, #eee7d6 76%, #ebe3d2);
}
.studio-cover, .chapter-layout {
  position: relative;
  min-height: max(42rem, 100svh);
}
.studio-cover {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-block: clamp(7rem, 15svh, 10rem) clamp(7rem, 14svh, 9rem);
}
.studio-cover .hero-content {
  display: block;
  flex: none;
  width: min(49%, 40rem);
  margin: 0;
  padding: 0;
}
.studio-cover .hero-content h1 {
  font: 700 clamp(3.55rem, 6.25vw, 7.05rem)/.98 var(--serif);
  letter-spacing: -.065em;
  margin: 0 0 1.2rem;
}
.studio-cover h1 em { color: #6c582d; }
.studio-cover .hero-description { color: #494a3f; max-width: 34ch; margin: 0 0 1.35rem; }
.studio-cover .eyebrow, .chapter-title .eyebrow { color: inherit; font-size: .78rem; letter-spacing: .13em; }
.studio-cover .hero-content .eyebrow::before { background: #937544; width: 28px; }
.studio-cover .hero-content .eyebrow { margin-bottom: 1.15rem; }
.studio-cover .hero-actions { gap: .6rem 1.45rem; }
.studio-cover .hero-actions .text-link, .studio-cover .hero-discover { color: #343a2e; }
.studio-cover .button-dark { color: #faf6e8; border-radius: 2rem; }
.cover-arrow { position: relative; display: inline-block; width: .55rem; height: .55rem; border-top: 1.5px solid; border-right: 1.5px solid; }
.cover-arrow::after {
  content: ""; position: absolute; right: 0; top: -1px; width: .7rem;
  border-top: 1.5px solid; transform-origin: right; transform: rotate(-45deg);
}
.studio-cover .hero-bottom {
  position: absolute;
  inset: auto 0 1.1rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .25rem 1.4rem;
  align-items: center;
  padding: .5rem 0 0;
  border-top: 1px solid #47463b38;
  color: #41443a;
  letter-spacing: 0;
}
.studio-cover .scroll-mark { height: 1.4rem; background: #8a6f3b; }
.studio-photos { display: flex; align-items: center; gap: .6rem; }
.studio-photos .hero-visual {
  position: relative; inset: auto; z-index: auto; flex: none; overflow: hidden;
  width: 48px; height: 31px; background: #ddd4bd;
}
.studio-photos .hero-gallery { border: 0; margin: 0; padding: 0; gap: .65rem; }
.studio-photos .hero-photo-options { gap: 0; }
.studio-photos .hero-photo-options button { width: 36px; min-width: 36px; color: #55594b; border-color: #484d3e42; }
.studio-photos .hero-photo-options button[aria-pressed=true] { color: #504319; border-color: #68592a; }
.studio-photos .hero-photo-name { color: #424539; }
.journey-motion { min-height: 44px; border: 0; background: transparent; color: #423b2b; padding: .35rem 0; text-decoration: underline; text-underline-offset: .25em; cursor: pointer; }

.build-chapter { position: relative; background: var(--panel); color: var(--letter); }
.chapter-azienda { --panel: var(--charcoal); --letter: #f6efe2; }
.chapter-struttura { --panel: var(--ochre); --letter: #32271b; }
.chapter-involucro { --panel: var(--terra); --letter: #fff4e3; }
.chapter-consegna { --panel: var(--chalk); --letter: #30322a; }
.chapter-azienda::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg,#22251ffe 2%,#242822d9 33%,#252720c4 68%,#25271fd9),
              url("assets/previews/rimini-solaio-panorama-edited-640.webp") center 62% / cover;
}
.chapter-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.45fr) minmax(0, .72fr);
  align-content: start;
  align-items: start;
  column-gap: 2.25%;
  min-height: max(39rem, 92svh);
  padding-block: clamp(6.7rem, 17svh, 11rem) clamp(3rem, 8svh, 7rem);
}
.chapter-consegna .chapter-layout { min-height: max(42rem, 106svh); }
.chapter-title, .chapter-detail { position: relative; z-index: 3; }
.chapter-title .eyebrow { text-transform: uppercase; margin: 0 0 .9rem; }
.chapter-title h2 {
  color: var(--letter);
  margin: 0;
  font: 700 clamp(3rem, 5vw, 5.65rem)/.98 var(--serif);
  letter-spacing: -.061em;
}
.chapter-title h2 em { display: block; color: inherit; font-weight: 400; }
.chapter-detail { grid-column: 3; margin-top: .35rem; border-top: 1px solid currentColor; padding-top: .7rem; }
.chapter-detail p { font-size: clamp(.93rem, 1.1vw, 1.08rem); line-height: 1.58; margin: 0 0 .2rem; }
.chapter-detail .text-link { color: inherit; font-size: .875rem; line-height: 1.25; padding: .3rem 0; gap: .55em; }
.chapter-detail a:hover, .chapter-detail a:focus-visible { text-decoration: underline; text-underline-offset: .22em; }

.chapter-poster {
  position: absolute;
  pointer-events: none;
  width: 52%;
  aspect-ratio: 1;
  left: 54%; top: 62%;
  transform: translate(-50%,-50%);
}
.cover-poster { top: 57%; left: 80%; width: 44%; }
.chapter-poster img { width: 100%; height: 100%; object-fit: contain; }
.chapter-consegna .chapter-poster img { width: 200%; max-width: none; height: 200%; margin: -50%; }
.story-ready .chapter-poster { visibility: hidden; }
.assembly-world { position: absolute; inset: 0; pointer-events: none; user-select: none; overflow: clip; z-index: 2; }
.assembly-rig {
  position: absolute; top: 0; left: 0; width: 768px; height: 768px;
  transform-origin: 0 0; will-change: transform;
}
.assembly-rig img, .assembly-rig canvas {
  display: block; max-width: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
}
.assembly-rig .wide-art { inset: -50%; width: 200%; height: 200%; }
.assembly-rig img[data-part="piedistallo"], .assembly-rig img[data-part="posato"] {
  filter: drop-shadow(0 10px 7px #36342929);
}
.ground-shadow {
  position: absolute; width: 65%; height: 9%; left: 18%;
  background: radial-gradient(ellipse at center, #25272090, #28291d4a 37%, transparent 72%);
  transform-origin: center; pointer-events: none;
}

.studio-copy h2 { margin: 0 0 .85rem; letter-spacing: -.045em; }
.studio-copy > p:not(.eyebrow) { max-width: 51ch; color: var(--muted); margin-bottom: 0; line-height: 1.65; }
.studio-copy .eyebrow { margin-bottom: .9rem; }
.studio-rimini, .studio-services, .studio-contact { margin-bottom: clamp(2.1rem, 4.5vw, 4.1rem); }
.services .studio-copy > p:not(.eyebrow) { color: #d5ded7; }
.studio-service-details { padding-top: 1.7rem; border-top: 1px solid #ffffff2c; }
.architecture-route .work-stories { background: #f5f3eb; }

@media (max-width: 819px) {
  .studio-cover { justify-content: flex-start; min-height: max(39rem, 94svh); padding-block: clamp(6.4rem, 16svh, 9rem) 6.5rem; }
  .studio-cover .hero-content { width: 67%; }
  .studio-cover .hero-content h1 { font-size: clamp(2.75rem, 7.6vw, 4.6rem); }
  .studio-cover .hero-description { font-size: 1rem; line-height: 1.45; }
  .studio-cover .hero-actions { gap: .25rem .9rem; }
  .studio-cover .hero-actions .button { min-height: 45px; padding: .65rem .95rem; }
  .studio-cover .hero-actions a { font-size: .875rem; }
  .studio-cover .hero-bottom { bottom: .6rem; gap: 0 1rem; padding-top: .2rem; }
  .studio-cover .hero-bottom .hero-discover, .studio-photos .hero-photo-name { font-size: .75rem; }
  .studio-photos .hero-photo-options button { width: 32px; min-width: 32px; }
  .chapter-layout {
    grid-template-columns: 1fr; gap: .65rem;
    padding-top: clamp(5.9rem, 14svh, 8rem);
    min-height: max(31rem, 80svh);
  }
  .chapter-consegna .chapter-layout { min-height: max(36rem, 99svh); }
  .chapter-title { max-width: 94%; width: fit-content; }
  .chapter-title .eyebrow { margin-bottom: .6rem; }
  .chapter-title h2 { font-size: clamp(2.65rem, 7.4vw, 4.15rem); }
  .chapter-title h2 em { display: inline; }
  .chapter-detail { grid-column: 1; width: min(80%, 28rem); border: 0; margin: 0; padding: 0; }
  .chapter-detail p { font-size: .94rem; line-height: 1.5; }
  .story-ready :is(.chapter-title, .chapter-detail) { opacity: var(--caption-opacity,1); }
  .story-ready .build-chapter:focus-within :is(.chapter-title, .chapter-detail) { opacity: 1; }
  .chapter-title h2, .chapter-detail p span, .chapter-detail a {
    background: var(--panel);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
  }
  .chapter-title h2 { display: inline; }
  .chapter-poster { width: 55%; }
  .cover-poster { left: 80%; width: 45%; }
}

@media (min-width: 560px) and (max-width: 819px) {
  .studio-cover .hero-content { width: 54%; }
  .chapter-detail { width: 45%; }
}
@media (max-width: 559px) {
  .studio-cover .hero-content { width: 100%; }
  .studio-cover .hero-content h1 { max-width: 95%; }
  .studio-cover .hero-description { max-width: 27ch; margin-bottom: .75rem; }
  .studio-cover .hero-content .eyebrow { margin-bottom: .7rem; }
  .studio-photos .hero-gallery { gap: .2rem; }
  .studio-photos .hero-visual { width: 29px; height: 24px; }
  .studio-photos .hero-photo-name { text-transform: none; letter-spacing: 0; }
  .chapter-detail { width: min(100%, 34ch); }
}
@media (max-height: 560px) and (min-aspect-ratio: 6/5) {
  .studio-cover { min-height: max(28rem, 105svh); padding-block: 5.5rem 4.2rem; justify-content: center; }
  .studio-cover .hero-content { width: 45%; }
  .studio-cover .hero-content h1 { font-size: clamp(2.25rem, 5vw, 4.45rem); }
  .chapter-layout { min-height: max(27rem, 105svh); padding-top: 5.25rem; }
  .chapter-detail { width: auto; }
}
@media (min-width: 560px) and (max-width: 819px) and (max-height: 560px) and (min-aspect-ratio: 6/5) {
  .chapter-layout { grid-template-columns: 1.1fr 1.47fr .78fr; column-gap: 2.5%; }
  .chapter-title { max-width: 100%; }
  .chapter-title h2 { display: block; font-size: clamp(1.95rem, 4.65vw, 2.7rem); }
  .chapter-title h2 em { display: block; }
  .chapter-detail { grid-column: 3; border-top: 1px solid currentColor; padding-top: .45rem; }
  .chapter-detail p, .chapter-detail a { font-size: .8125rem; line-height: 1.38; }
  .story-ready :is(.chapter-title, .chapter-detail) { opacity: 1; }
  .chapter-title h2, .chapter-detail p span, .chapter-detail a { background: transparent; }
}
@media print {
  .assembly-world, .journey-motion { display: none !important; }
  .story-ready .chapter-poster { visibility: visible; }
  .story-ready :is(.chapter-title, .chapter-detail) { opacity: 1; }
  .build-story { overflow: visible; }
}
