
.sdlegacy-about-page,
.sdlegacy-projects-page,
.sdlegacy-project-detail{
  font-family:'DM Sans',sans-serif;
  color:#151512;
  background:#e9e5dc;
}
.sdlegacy-eyebrow{
  font-size:11px;
  letter-spacing:.18em;
  text-transform:uppercase;
  opacity:.5;
}

/* Meist v7 — approved light workshop layout with six text columns */
.sdlegacy-v7{background:#f4f0e7;color:#171713}
.sdlegacy-v7-wrap{max-width:1540px;margin:0 auto;padding:54px 40px 62px}
.sdlegacy-meist-intro{max-width:none;margin:0 0 48px;border:0}
.sdlegacy-meist-intro-section{display:block;margin:0 0 10px;padding:0;border:0}
.sdlegacy-meist-intro-section:first-child{padding:0;border:0}
.sdlegacy-meist-intro-section h2{font-family:Georgia,'Times New Roman',serif;font-size:23px;font-weight:700;line-height:1.2;letter-spacing:0;margin:0 0 13px;max-width:none}
.sdlegacy-meist-intro-copy{max-width:none}
.sdlegacy-meist-intro-copy p{font-family:Georgia,'Times New Roman',serif;font-size:16px;line-height:1.35;margin:0 0 10px;color:#171713}
.sdlegacy-meist-intro-copy p:last-child{margin-bottom:0}
.sdlegacy-order-intro ul{font-family:Georgia,'Times New Roman',serif;font-size:16px;line-height:1.35;margin:0 0 12px;padding-left:23px;color:#171713}
.sdlegacy-order-intro li{margin:0 0 4px;padding-left:2px}
.sdlegacy-v7-head{margin-bottom:18px}
.sdlegacy-v7-head .sdlegacy-eyebrow{display:block;font-size:10px;letter-spacing:.19em;text-transform:uppercase;opacity:.52;margin-bottom:17px}
.sdlegacy-v7-head h1{font-family:'Playfair Display',serif;font-size:clamp(48px,5.2vw,78px);font-weight:500;line-height:.98;letter-spacing:-.035em;margin:0 0 8px;max-width:none}
.sdlegacy-v7-head p{font-family:'Playfair Display',serif;font-size:clamp(21px,2vw,31px);line-height:1.15;margin:0;color:#171713a6}

.sdlegacy-v7-photo{width:100%;aspect-ratio:3.22/1;overflow:hidden;background:#d9d2c6;margin-top:16px}
.sdlegacy-v7-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:center center}

.sdlegacy-v7-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 44px;margin-top:27px;border-top:1px solid transparent}
.sdlegacy-v7-columns article{padding:0 0 25px}
.sdlegacy-v7-columns h2{font-family:'Playfair Display',serif;font-size:19px;font-weight:500;line-height:1.18;margin:0 0 8px}
.sdlegacy-v7-columns p{font-family:'DM Sans',sans-serif;font-size:13px;line-height:1.55;margin:0;color:#171713b3}

.sdlegacy-v7-cta{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:24px;margin-top:4px;padding:13px 19px;border:1px solid #171713;color:#171713!important;text-decoration:none!important;font-family:'DM Sans',sans-serif;font-size:10px;font-weight:600;letter-spacing:.09em}
.sdlegacy-v7-cta:hover{background:#171713;color:#fff!important}
.sdlegacy-v7-cta .sdlegacy-v7-arrow{font-size:15px;line-height:1;flex:0 0 auto;white-space:nowrap}

@media(max-width:900px){
  .sdlegacy-v7-wrap{padding:42px 28px 50px}
  .sdlegacy-v7-photo{aspect-ratio:2.15/1}
  .sdlegacy-v7-columns{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px}
}
@media(max-width:600px){
  .sdlegacy-meist-intro{margin-bottom:38px}
  .sdlegacy-meist-intro-section h2{font-size:22px}
  .sdlegacy-v7-wrap{padding:34px 20px 44px}
  .sdlegacy-v7-head h1{font-size:46px}
  .sdlegacy-v7-head p{font-size:22px}
  .sdlegacy-v7-photo{aspect-ratio:1.45/1}
  .sdlegacy-v7-columns{grid-template-columns:1fr;margin-top:22px}
  .sdlegacy-v7-columns article{padding-bottom:22px}
}
/* Exact legacy Projects page from archived project */
.sdlegacy-projects-page{background:#e9e5dc;color:#151512;padding:56px 3vw 72px}
.sdlegacy-projects-page-head{max-width:760px;margin-bottom:42px}
.sdlegacy-projects-page-head h1{font-family:'Playfair Display',serif;font-size:clamp(48px,5vw,76px);font-weight:500;line-height:1;margin:12px 0 18px}
.sdlegacy-projects-page-head p{max-width:650px;font-size:16px;line-height:1.6;color:#151512b3}
.sdlegacy-projects-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px 22px}
.sdlegacy-project-card{color:inherit!important;text-decoration:none!important;min-width:0}
.sdlegacy-project-card-image{aspect-ratio:4/3;background:#d7d2c8;overflow:hidden}
.sdlegacy-project-card-image img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .45s ease}
.sdlegacy-project-card:hover .sdlegacy-project-card-image img{transform:scale(1.025)}
.sdlegacy-project-card-copy{padding:14px 2px 0}
.sdlegacy-project-card-copy h2{font-family:'Playfair Display',serif;font-size:27px;font-weight:500;margin:0 0 6px;line-height:1.1}
.sdlegacy-project-card-copy p{margin:0;color:#1515129c;font-size:13px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.sdlegacy-projects-empty,.sdlegacy-project-detail-empty{padding:80px 4vw;background:#e9e5dc}

/* Exact legacy Project detail */
.sdlegacy-project-detail{background:#e9e5dc;color:#151512;padding:48px 3vw 72px}
.sdlegacy-project-detail-head{max-width:900px;margin:0 auto 38px}
.sdlegacy-project-detail-head>a{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:inherit!important;text-decoration:none!important}
.sdlegacy-project-detail-head h1{font-family:'Playfair Display',serif;font-size:clamp(48px,6vw,88px);font-weight:500;line-height:1;margin:24px 0 18px}
.sdlegacy-project-detail-head p{max-width:760px;font-size:16px;line-height:1.65;color:#151512b3}
.sdlegacy-preline{white-space:pre-line}
.sdlegacy-project-detail-gallery{max-width:1500px;margin:0 auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.sdlegacy-project-detail-gallery button{border:0;padding:0;background:#d7d2c8;cursor:zoom-in;aspect-ratio:4/3;overflow:hidden}
.sdlegacy-project-detail-gallery button.featured{grid-column:1/-1;aspect-ratio:16/8}
.sdlegacy-project-detail-gallery img{width:100%;height:100%;object-fit:cover;display:block}
.sdlegacy-lightbox{position:fixed;inset:0;z-index:99999;background:#0b0b0aee;display:flex;align-items:center;justify-content:center;padding:40px}
.sdlegacy-lightbox[hidden]{display:none!important}
.sdlegacy-lightbox>img{max-width:min(1500px,90vw);max-height:88vh;object-fit:contain}
.sdlegacy-lightbox button{position:absolute;background:#f4f1e8;color:#151512;border:0;width:44px;height:44px;font-size:30px;cursor:pointer}
.sdlegacy-lightbox-close{right:22px;top:22px}
.sdlegacy-lightbox-prev{left:22px;top:50%;transform:translateY(-50%)}
.sdlegacy-lightbox-next{right:22px;top:50%;transform:translateY(-50%)}

@media(max-width:1000px){
  .sdlegacy-projects-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:650px){
  .sdlegacy-projects-page{padding:38px 20px 54px}
  .sdlegacy-projects-grid{grid-template-columns:1fr;gap:28px}
  .sdlegacy-project-detail{padding:34px 18px 52px}
  .sdlegacy-project-detail-gallery{grid-template-columns:1fr}
  .sdlegacy-project-detail-gallery button.featured{grid-column:auto;aspect-ratio:4/3}
  .sdlegacy-lightbox{padding:16px}
}


/* Meist v8 dual CTA row */
.sdlegacy-v8-actions{display:flex;align-items:center;justify-content:flex-start;gap:14px;margin-top:4px}
.sdlegacy-v8-actions .sdlegacy-v7-cta{margin-top:0}
@media(max-width:600px){
  .sdlegacy-v8-actions{flex-direction:column;align-items:stretch}
  .sdlegacy-v8-actions .sdlegacy-v7-cta{justify-content:space-between}
}


/* Eritellimus v9 — same visual system as Meist */
.sdlegacy-order-v9{
  background:#f4f0e7;
  color:#171713;
}
.sdlegacy-order-v9-photo img{
  object-position:center center;
}
.sdlegacy-order-v9-steps article{
  position:relative;
}
.sdlegacy-order-v9-cta{
  margin-top:4px;
}
.sdlegacy-custom-order-form{
  scroll-margin-top:84px;
  background:#f4f0e7;
  border-top:1px solid #17171318;
}
.sdlegacy-custom-order-form .sdco-section{
  background:#f4f0e7 !important;
  color:#171713 !important;
}
.sdlegacy-custom-order-form .sd-page-wrap{
  max-width:1540px !important;
  margin:0 auto !important;
  padding-left:40px !important;
  padding-right:40px !important;
}
.sdlegacy-order-v9-fallback{
  max-width:1540px;
  margin:0 auto;
  padding:42px 40px 60px;
}
@media(max-width:900px){
  .sdlegacy-custom-order-form .sd-page-wrap{
    padding-left:28px !important;
    padding-right:28px !important;
  }
}
@media(max-width:600px){
  .sdlegacy-custom-order-form .sd-page-wrap{
    padding-left:20px !important;
    padding-right:20px !important;
  }
  .sdlegacy-order-v9-fallback{
    padding:34px 20px 46px;
  }
}
