/* Typography-led front page. Text samples remain selectable, live type. */
.studio-home {
  --ink: #292724;
  --muted: #635d53;
  --oxide: #883d32;
  --rule: #d9d2c6;
  background: #faf8f3;
  color: var(--ink);
}
.opening {
  display: grid;
  grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr);
  align-items: stretch;
  padding-block: clamp(30px, 4vw, 60px) clamp(30px, 4.2vw, 66px);
  border-bottom: 1px solid var(--rule);
}
.opening-type {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 20px clamp(20px, 4vw, 62px) 20px 0;
}
.opening-field { color: var(--oxide); font-size: .96rem; line-height: 1.9; }
.opening-field::before { content: ""; display: inline-block; vertical-align: middle; width: 1.65em; height: 1px; background: currentColor; margin-inline-end: .7em; }
.studio-home .opening-name {
  margin: .08em 0 .02em -.025em;
  font: 400 clamp(4rem, 7.25vw, 7.3rem)/1.65 WQTibetan, Kailasa, serif;
  letter-spacing: normal;
  white-space: nowrap;
  color: #282623;
}
.opening-company { max-width: 30em; font-size: clamp(1rem, 1.6vw, 1.36rem); color: var(--muted); }
html[lang="bo"] .opening-company { font-size: clamp(1.02rem, 1.45vw, 1.25rem); line-height: 1.95; }
.project-jump, .studio-textlink { color: var(--oxide); font-weight: 550; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .35em; }
.project-jump {
  margin-top: clamp(16px, 2vw, 33px);
  padding: .45em 1.3em;
  background: #813a31;
  color: #fffaf3;
  border-radius: 2px;
  font-weight: 550;
  text-decoration: none;
}
.project-jump:hover, .project-jump:focus-visible { background: #622c25; color: #fff; }
.opening-plate {
  align-self: center;
  background: #803c30;
  width: 100%;
  aspect-ratio: 1.49;
  overflow: hidden;
}
.opening-plate img { width: 100%; height: 100%; object-fit: cover; }
.portfolio { padding-block: clamp(30px, 3.3vw, 54px) clamp(42px, 5vw, 76px); }
.studio-home .studio-heading { font-size: clamp(1.5rem, 2.5vw, 2.15rem); font-weight: 580; line-height: 1.45; }
html[lang="bo"] .studio-home .studio-heading { font-weight: 400; font-size: clamp(1.45rem, 2.1vw, 1.95rem); line-height: 1.85; }
.portfolio-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 40px); margin-top: 1.35rem; }
.portfolio-link { text-decoration: none; color: inherit; min-width: 0; }
.portfolio-link h3 {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: .65rem;
  padding-bottom: .65rem; border-bottom: 1px solid var(--rule); font-weight: 530; font-size: clamp(1.12rem, 1.6vw, 1.4rem);
}
html[lang="bo"] .portfolio-link h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 400; line-height: 1.85; }
.portfolio-link:hover h3, .portfolio-link:focus-visible h3 { color: var(--oxide); border-color: var(--oxide); }
.specimen {
  aspect-ratio: 1.82; min-height: 125px; display: grid; place-items: center;
  position: relative; isolation: isolate;
}
.parallel-specimen { background: #ded6c6; overflow: hidden; }
.paper-leaf {
  display: flex; align-items: center; justify-content: center; gap: .7rem;
  width: 82%; min-height: 62%;
  transform: rotate(-5deg);
  background: #faf4e6; color: #423b32;
  box-shadow: 1px 2px #b6a994, 2px 4px #ebe0cd, 3px 5px #b6a994, 4px 7px #eee3ce, 7px 11px 11px #53453236;
}
.paper-leaf span[lang="bo"] { font: 400 clamp(1.5rem, 3.1vw, 3.25rem)/1.9 WQTibetan, Kailasa, serif; }
.paper-leaf span[lang="zh-CN"] { padding-left: .7rem; border-left: 1px solid #ad9784; font: 500 clamp(.9rem, 1.2vw, 1.13rem)/1.25 "Songti SC",serif; color: #873c32; }
.code-specimen { background: #293934; color: #faf4dd; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.scan-frame {
  position: relative; width: 62%; display: grid; place-items: center;
  background:
    linear-gradient(#a9b6a3,#a9b6a3) left top/10px 1px,
    linear-gradient(#a9b6a3,#a9b6a3) left top/1px 10px,
    linear-gradient(#a9b6a3,#a9b6a3) right bottom/10px 1px,
    linear-gradient(#a9b6a3,#a9b6a3) right bottom/1px 10px;
  background-repeat: no-repeat;
}
.scan-frame span { font: 400 clamp(1.9rem,3.7vw,3.5rem)/1.65 WQTibetan,Kailasa,serif; }
.code-specimen code { color:#e4dcc5; font: .79rem/1.5 ui-monospace, monospace; letter-spacing:.12em; margin-top:.55rem; }
.studio-lower { border-top: 1px solid var(--rule); background: #f1eee5; }
.studio-columns { display: grid; grid-template-columns: minmax(0, 1.48fr) minmax(0, .8fr); gap: clamp(28px,7vw,108px); padding-block: clamp(34px,4.8vw,72px); }
.practice-index { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 20px; margin: 1.25rem 0; }
.practice-index a { border-top:1px solid #cfc6b8; padding:.65rem 0; text-decoration:none; }
.practice-index a:hover, .practice-index a:focus-visible { color:var(--oxide); text-decoration:underline; }
.provenance { border-left:1px solid #cfc6b8; padding-left:clamp(20px,3.5vw,50px); }
.provenance img { width: clamp(128px,12vw,172px); height: auto; object-fit: contain; margin-bottom:.4rem; }
.provenance p { color: var(--muted); margin:.45rem 0 .85rem; max-width:30em; }
.studio-home :focus-visible { outline: 2px solid #98493c; outline-offset: 4px; }
@media(max-width: 760px) {
  .opening { grid-template-columns: 1fr; gap: 20px; padding-block: 25px; }
  .opening-type { display:grid; grid-template-columns: minmax(0,1fr) auto; align-items:center; gap: 4px 12px; padding:0; }
  .opening-field, .opening-company { grid-column: 1/-1; }
  .studio-home .opening-name { grid-row:2; font-size:clamp(3.3rem,11.5vw,5rem); line-height:1.65; }
  .project-jump { grid-row:2; grid-column:2; margin:0; padding:.35em .85em; }
  .opening-company { font-size:1rem; }
  .opening-plate { aspect-ratio:2.1; }
  .portfolio-items { gap:16px; }
  .specimen { min-height:100px; }
  .studio-columns { grid-template-columns:1fr; gap:28px; }
  .provenance { border-left:0; border-top:1px solid #cfc6b8; padding:22px 0 0; }
}
@media(max-width: 590px) {
  .portfolio { padding-top: 20px; }
  .portfolio-items { grid-template-columns:1fr; gap:0; margin-top:.75rem; }
  .portfolio-link { display:grid; grid-template-columns: minmax(95px,.7fr) 1.2fr; align-items:center; gap:16px; padding: .7rem 0; border-top:1px solid var(--rule); }
  .portfolio-link:last-child { border-bottom:1px solid var(--rule); }
  .portfolio-link h3 { margin:0; padding:0; border:0; }
  .specimen { aspect-ratio: 1.55; min-height:78px; }
  .scan-frame span { font-size:1.7rem; }
  .code-specimen code { font-size:.68rem; margin-top:.2rem; }
  .paper-leaf { gap:.3rem; }
  .paper-leaf span[lang="bo"] { font-size:1.4rem; }
  .paper-leaf span[lang="zh-CN"] { padding-left:.35rem; font-size:.75rem; }
  html[lang="bo"] .practice-index { grid-template-columns:1fr; }
}
@media(max-width: 370px) {
  .opening-type { column-gap:5px; }
  .project-jump { font-size:.9rem; }
}
@media print {
  .opening-plate, .project-jump, .specimen { display:none; }
  .opening, .portfolio-link { display:block; }
  .studio-home .opening-name { font-size:3rem; }
}

.product-copy p { color: var(--muted); line-height: 1.65; margin: .35em 0 0; }
html[lang="bo"] .product-copy p { line-height: 1.85; }
.product-price-links { display: flex; flex-wrap: wrap; gap: .6rem 1.7rem; margin-block-start: 1.6rem; }
.product-price-links a { color: #24524d; text-underline-offset: .2em; }
