/* Version 40 completion pass. Loaded last on every public page. */
:root{
  --lw40-ink:#1b1915;
  --lw40-paper:#f7f4ed;
  --lw40-line:#d6cbb8;
  --lw40-gold:#b79251;
}

html body main h1,
html body main h2,
html body main h3{
  font-family:Arial,Helvetica,sans-serif;
  font-weight:400;
  letter-spacing:-.045em;
  writing-mode:horizontal-tb!important;
  text-orientation:mixed!important;
}

html body .gf-home-editorial{display:none!important}
html[data-prototype-page="/"] main>div>.gf-home-editorial{display:none!important}

/* Keep the approved homepage order visually clean. */
html[data-prototype-page="/"] #studio-home{order:1}
html[data-prototype-page="/"] #studio-ways{order:2}
html[data-prototype-page="/"] #production-film{order:3}
html[data-prototype-page="/"] #previous-work{order:4}
html[data-prototype-page="/"] #studio-collection{order:5}
html[data-prototype-page="/"] #company-overview{order:6}
html[data-prototype-page="/"] #contact{order:7}

html[data-about-section-page] body .sga-hero h1{
  font-size:clamp(50px,5.25vw,74px)!important;
  line-height:1.01!important;
  max-width:12ch;
}
html[data-about-section-page] body .sga-hero h1 em{white-space:nowrap}
html[data-about-section-page] body .sga-hero-grid{min-height:540px}
html[data-about-section-page] body .sga-hero-scene>figure>img,
html[data-about-section-page] body .sga-floating-frame img{
  filter:saturate(.82) contrast(1.05)!important;
}
html[data-about-section-page] body .sga-people,
html[data-about-section-page] body .sga-story{min-height:0!important;padding-block:72px 86px!important}

/* Equal directors, smaller full portraits, equal writing space. */
html[data-about-view="management"] body .sga-leaders{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:42px!important;
  align-items:start;
}
html[data-about-view="management"] body .sga-leader{
  grid-template-columns:minmax(150px,185px) minmax(0,1fr)!important;
  gap:26px!important;
  align-items:start!important;
}
html[data-about-view="management"] body .sga-leader-portrait{
  width:100%;
  max-height:300px!important;
  aspect-ratio:3/4!important;
}
html[data-about-view="management"] body .sga-leader-portrait img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center bottom!important;
  scale:.94!important;
}
html[data-about-view="management"] body .sga-leader-copy h3{
  font-size:clamp(27px,2.25vw,36px)!important;
  line-height:1.04!important;
  margin-bottom:18px!important;
}
html[data-about-view="management"] body .sga-leader-copy>p{font-size:13px!important;line-height:1.72!important}

/* Previous Work: aligned evidence cards and no empty desktop slot. */
html[data-about-view="previous-work"] body .lw-proof-full .lw-proof-chapter .lw-proof-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:38px 24px!important;
  align-items:start!important;
}
html[data-about-view="previous-work"] body .lw-proof-full .lw-proof-grid-04{grid-template-columns:repeat(2,minmax(0,1fr))!important}
html[data-about-view="previous-work"] body .lw-proof-card{height:100%!important;display:flex;flex-direction:column}
html[data-about-view="previous-work"] body .lw-proof-caption{flex:1}
html[data-about-view="previous-work"] body .lw-proof-open{aspect-ratio:4/5!important}
html[data-about-view="previous-work"] body .lw-proof-card:nth-child(n){padding-top:0!important;margin-top:0!important;grid-column:auto!important}
html[data-about-view="previous-work"] body .lw-proof-heading h2{font-size:clamp(42px,4.4vw,62px)!important;white-space:normal!important}

/* Mature partnership presentation with real factory imagery. */
html[data-studio-world="agents"] body .sw-world-hero[data-sw-section="agents"]{
  --sw-stage:#201e19!important;
  background:linear-gradient(120deg,#f7f4ed 0%,#eee8da 100%)!important;
  color:var(--lw40-ink)!important;
}
html[data-studio-world="agents"] body .sw-world-hero[data-sw-section="agents"] h1{
  color:var(--lw40-ink)!important;
  font-size:clamp(48px,5.5vw,76px)!important;
  line-height:1!important;
}
html[data-studio-world="agents"] body .sw-world-hero[data-sw-section="agents"] .sw-image-main{inset:0!important}
html[data-studio-world="agents"] body .sw-world-hero[data-sw-section="agents"] .sw-image-main img{
  object-fit:cover!important;
  object-position:center!important;
  filter:saturate(.78) contrast(1.04)!important;
}
html[data-studio-world="agents"] body .sw-world-hero[data-sw-section="agents"] .sw-stage{
  border-radius:0!important;
  border:1px solid #9c8357!important;
  box-shadow:none!important;
}
html[data-prototype-page="/become-an-agent"] body .lw-agent-flow,
html[data-prototype-page="/become-an-agent"] body .lw-info-card,
html[data-prototype-page="/become-an-agent"] body .lw-first-form{border-radius:0!important;box-shadow:none!important}

/* Beginner Hub: one dominant route, two clearly optional supports. */
html[data-prototype-page="/beginner-hub"] body .lw-start-strip{
  display:block!important;
  border:0!important;
  padding:0!important;
}
html[data-prototype-page="/beginner-hub"] body .lw-start-strip .lw-beginner-main-path{
  display:flex!important;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  min-height:110px;
  padding:28px 32px!important;
  background:#1c1a16!important;
  color:#f7efdf!important;
  border:1px solid #1c1a16!important;
}
html[data-prototype-page="/beginner-hub"] body .lw-start-strip .lw-beginner-main-path small{color:#d2b77f!important}
html[data-prototype-page="/beginner-hub"] body .lw-start-strip .lw-beginner-main-path strong{font-size:clamp(20px,2.1vw,31px);font-weight:400}
html[data-prototype-page="/beginner-hub"] body .lw-beginner-support{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  margin-top:28px;
}
html[data-prototype-page="/beginner-hub"] body .lw-beginner-support a{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:150px;
  padding:24px;
  border:1px solid var(--lw40-line);
  background:#fff;
}
html[data-prototype-page="/beginner-hub"] body .lw-beginner-support small{color:#806128;text-transform:uppercase;letter-spacing:.12em}
html[data-prototype-page="/beginner-hub"] body .lw-beginner-support strong{font-size:18px;font-weight:400;line-height:1.4}

/* Sampling belongs to the quotation path. */
html[data-studio-world="samples"] body .sw-world-hero[data-sw-section="samples"] .sw-ways-rail{display:none!important}
html[data-studio-world="samples"] body .sw-world-hero[data-sw-section="samples"] h1{
  font-size:clamp(52px,4.7vw,68px)!important;
  line-height:1.02!important;
  max-width:15ch;
  overflow-wrap:normal!important;
}
html[data-prototype-page="/samples"] body .lw-journey-hero>figure img{object-fit:contain!important;background:#eee8dc!important}

/* Garment and category media must show the complete product. */
html body .lw-catalog-picture img,
html body .lw-gallery img,
html body .lw-static-fallback>div>img,
html body .sig-product-art>img,
html body .sig-product-float>img,
html body .sig-blank-garment,
html body .sig-embroidered-garment{
  object-fit:contain!important;
  object-position:center!important;
}
html body .lw-catalog-picture img{padding:clamp(12px,1.6vw,22px)!important}
html body .lw-gallery img{padding:clamp(10px,1.5vw,20px)!important}
html body .lw-static-fallback h1+p{display:none!important}
html body .lw-catalog-card .lw-catalog-picture{background:#f2eee6!important}

/* A compact, readable dark footer on desktop. */
html[data-lw-design="studio"] body footer.lw-site-footer,
html body footer.lw-site-footer{
  background:#111!important;
  color:#eee8dc!important;
  border-top:3px solid #9a783c!important;
  padding:40px 0 26px!important;
}
html[data-lw-design="studio"] body footer.lw-site-footer>div,
html body footer.lw-site-footer>div{max-width:1360px!important;padding-inline:clamp(24px,4vw,60px)!important}
html[data-lw-design="studio"] body .lw-footer-wordmark,
html body .lw-footer-wordmark{padding:10px 0 30px!important;border-bottom:1px solid rgba(199,171,115,.25)!important}
html[data-lw-design="studio"] body .lw-footer-wordmark>span,
html body .lw-footer-wordmark>span{font-size:clamp(46px,8vw,105px)!important;color:#b18b4d!important}
html[data-lw-design="studio"] body .lw-footer-wordmark>small,
html body .lw-footer-wordmark>small{color:#9b8b70!important}
html[data-lw-design="studio"] body .lw-footer-links,
html body .lw-footer-links{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:28px!important;
  padding:34px 0!important;
  border-bottom:1px solid rgba(199,171,115,.25)!important;
}
html[data-lw-design="studio"] body .lw-footer-links>div,
html body .lw-footer-links>div{
  display:flex!important;
  flex-direction:column!important;
  gap:9px!important;
  min-width:0!important;
  padding:0!important;
  border:0!important;
}
html[data-lw-design="studio"] body .lw-footer-links h4,
html body .lw-footer-links h4{color:#d1b579!important;margin:0 0 8px!important;font-size:11px!important;letter-spacing:.1em!important}
html[data-lw-design="studio"] body .lw-footer-links a,
html body .lw-footer-links a{
  display:block!important;
  min-height:0!important;
  height:auto!important;
  padding:3px 0!important;
  color:#cfc8bc!important;
  font-size:12px!important;
  line-height:1.45!important;
}
html[data-lw-design="studio"] body .lw-footer-links a:hover,
html body .lw-footer-links a:hover{color:#fff!important}
html[data-lw-design="studio"] body .lw-footer-links+div,
html body .lw-footer-links+div{padding-block:22px!important;border-color:rgba(199,171,115,.25)!important}
html[data-lw-design="studio"] body .lw-site-footer .lw-illustrative-note,
html body .lw-site-footer .lw-illustrative-note{color:#9e978c!important;padding-bottom:0!important}

@media(min-width:1100px){
  html body .lw-agent-hero h1,
  html body .lw-catalog-banner h1,
  html body .lw-topic-head h1{white-space:nowrap}
}

@media(max-width:1000px){
  html[data-about-view="management"] body .sga-leaders{grid-template-columns:1fr!important}
  html[data-about-view="management"] body .sga-leader{grid-template-columns:180px minmax(0,1fr)!important}
  html[data-about-view="previous-work"] body .lw-proof-full .lw-proof-chapter .lw-proof-grid,
  html[data-about-view="previous-work"] body .lw-proof-full .lw-proof-grid-04{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  html[data-lw-design="studio"] body .lw-footer-links,
  html body .lw-footer-links{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

@media(max-width:700px){
  html[data-about-section-page] body .sga-hero h1{font-size:clamp(40px,11.5vw,54px)!important;max-width:11ch}
  html[data-about-section-page] body .sga-hero h1 em{white-space:normal}
  html[data-about-section-page] body .sga-hero-grid{min-height:0}
  html[data-about-view="management"] body .sga-leader{grid-template-columns:minmax(115px,.72fr) minmax(0,1fr)!important;gap:18px!important}
  html[data-about-view="management"] body .sga-leader-portrait{max-height:260px!important}
  html[data-about-view="management"] body .sga-leader-copy h3{font-size:25px!important}
  html[data-about-view="previous-work"] body .lw-proof-full .lw-proof-chapter .lw-proof-grid,
  html[data-about-view="previous-work"] body .lw-proof-full .lw-proof-grid-04{grid-template-columns:1fr!important}
  html[data-prototype-page="/beginner-hub"] body .lw-start-strip .lw-beginner-main-path{align-items:flex-start;flex-direction:column;min-height:0;padding:24px!important}
  html[data-prototype-page="/beginner-hub"] body .lw-beginner-support{grid-template-columns:1fr}
  html[data-lw-design="studio"] body .lw-footer-links,
  html body .lw-footer-links{grid-template-columns:1fr!important;gap:28px!important}
  html[data-lw-design="studio"] body .lw-footer-links>div,
  html body .lw-footer-links>div{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px 18px!important;padding-top:20px!important;border-top:1px solid rgba(199,171,115,.25)!important}
  html[data-lw-design="studio"] body .lw-footer-links h4,
  html body .lw-footer-links h4{grid-column:1/-1}
  html body .lw-catalog-picture img{padding:16px!important}
  html body .lw-gallery img{padding:12px!important}
}

@media(max-width:390px){
  html[data-about-view="management"] body .sga-leader{grid-template-columns:1fr!important}
  html[data-about-view="management"] body .sga-leader-portrait{width:min(230px,100%)}
}
