/* /logo-tasarimi premium V2 — page-only styles (loaded after service-page.css).
   The sample brand (Mavera Atölye) is fictional; its mark lives once in the inline sprite (#ys-lg-mark) and is coloured
   through --lg-a (strokes) and --lg-b (dot). */
.ys-lg {
  --lg-orange: var(--ys-sd-orange, #e67a2e);
  --lg-orange-d: #a94d16;
  --lg-navy: #071426;
  --lg-ink: #15243a;
  --lg-muted: #5b6b82;
  --lg-line: rgba(16, 33, 58, 0.1);
  --lg-soft: #f6f8fb;
  --lg-paper: #fbfaf7;
  --lg-blue: #2f6fd6;
  --m-olive: #34412b;
  --m-clay: #c4683f;
  --m-sand: #e9dfcc;
  --m-night: #1d221b;
  --m-cream: #faf6ee;
  --lg-serif: Georgia, "Times New Roman", serif;
}

.ys-lg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ---------- Shared: mark + lockups ---------- */
.ys-lg-glyph {
  --lg-a: var(--m-olive);
  --lg-b: var(--m-clay);
  display: block;
  flex: 0 0 auto;
  width: var(--gw, 2.4rem);
  height: calc(var(--gw, 2.4rem) * 1.1);
  overflow: visible;
}

.ys-lg-lk {
  --gw: 2.4rem;
  display: inline-flex;
  align-items: center;
  gap: calc(var(--gw) * 0.34);
  color: var(--m-olive);
}

.ys-lg-lk__w {
  display: flex;
  flex-direction: column;
  font-family: var(--lg-serif);
  font-size: calc(var(--gw) * 0.86);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 0.95;
  white-space: nowrap;
}

.ys-lg-lk__w small {
  margin-block-start: 0.4em;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.26em;
  font-weight: 700;
  letter-spacing: 0.46em;
  opacity: 0.82;
}

.ys-lg-lk--v {
  flex-direction: column;
  gap: calc(var(--gw) * 0.24);
  text-align: center;
}

.ys-lg-lk--v .ys-lg-lk__w {
  align-items: center;
}

.ys-lg-lk--v .ys-lg-lk__w small {
  padding-inline-start: 0.46em;
}

/* ---------- Hero layout ---------- */
.ys-lg .ys-sd-hero__grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  gap: clamp(1.5rem, 3.2vw, 3.25rem);
}

/* ---------- Hero: Marka Tasarım Stüdyosu ---------- */
.ys-lg-studio {
  container: lghero / inline-size;
  position: relative;
  height: clamp(28.5rem, 26.5rem + 6.04vw, 34rem);
  color: #d7dee8;
}

.ys-lg-app {
  --mk-big: clamp(8rem, 33cqi, 12.5rem);
  --mk-sm: clamp(4.6rem, 20.5cqi, 8.2rem);
  --word: clamp(1.7rem, 7.6cqi, 3.3rem);
  --rail: 2.75rem;
  --panel: 9.6rem;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  background: #141a22;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4), 0 0 0 6px rgba(255, 255, 255, 0.03);
}

.ys-lg-app__bar {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  padding: 0.55rem 0.8rem;
  border-block-end: 1px solid rgba(255, 255, 255, 0.07);
  background: #10151c;
  font-size: 0.74rem;
}

.ys-lg-app__logo {
  display: grid;
  width: 1.6rem;
  height: 1.6rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 0.45rem;
  background: var(--lg-orange);
  color: #fff;
  font-size: 0.8rem;
}

.ys-lg-app__name {
  flex: 0 0 auto;
  color: #fff;
  font-weight: 800;
}

.ys-lg-app__file {
  min-width: 0;
  overflow: hidden;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #b5c0cf;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ys-lg-app__file em {
  color: #7d8ba0;
  font-size: 0.7rem;
  font-style: normal;
}

.ys-lg-app__stage {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.4rem;
  margin-inline-start: auto;
  color: #8fa0b5;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.ys-lg-app__stage::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #35b37e;
  box-shadow: 0 0 0 3px rgba(53, 179, 126, 0.18);
}

.ys-lg-app__stage::after {
  content: "Sunuma hazır";
}

.ys-lg-studio[data-step]:not([data-step="present"]) .ys-lg-app__stage::before {
  background: var(--lg-orange);
  box-shadow: 0 0 0 3px rgba(230, 122, 46, 0.18);
}

.ys-lg-studio:is([data-step="open"], [data-step="reset"]) .ys-lg-app__stage::after {
  content: "Yeni çalışma";
}

.ys-lg-studio:is([data-step="sketch"], [data-step="grid"], [data-step="type"], [data-step="color"], [data-step="variants"]) .ys-lg-app__stage::after {
  content: "Düzenleniyor";
}

.ys-lg-app__present {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.07);
  color: #dfe6ef;
  font-weight: 700;
  transition: background-color 0.35s ease, color 0.35s ease;
}

.ys-lg-studio:not([data-step]) .ys-lg-app__present,
.ys-lg-studio[data-step="present"] .ys-lg-app__present {
  background: var(--lg-orange);
  color: #fff;
}

.ys-lg-app__main {
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  grid-template-areas: "rail canvas panel";
  grid-template-columns: var(--rail) minmax(0, 1fr) var(--panel);
}

.ys-lg-studio .ys-lg-rail { grid-area: rail; }
.ys-lg-canvas { grid-area: canvas; }
.ys-lg-panel { grid-area: panel; }

/* tool rail */
.ys-lg-studio .ys-lg-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  padding: 0.65rem 0;
  border-inline-end: 1px solid rgba(255, 255, 255, 0.06);
  background: #10151c;
  list-style: none;
  transition: opacity 0.5s ease;
}

.ys-lg-rail__t {
  display: grid;
  width: 1.95rem;
  height: 1.95rem;
  place-items: center;
  border-radius: 0.5rem;
  color: #7d8ba0;
  font-size: 0.92rem;
  transition: background-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}

.ys-lg-studio:is(:not([data-step]), [data-step="open"], [data-step="reset"], [data-step="present"]) .ys-lg-rail__t--move,
.ys-lg-studio[data-step="sketch"] .ys-lg-rail__t--pen,
.ys-lg-studio[data-step="grid"] .ys-lg-rail__t--grid,
.ys-lg-studio[data-step="type"] .ys-lg-rail__t--type,
.ys-lg-studio[data-step="color"] .ys-lg-rail__t--color,
.ys-lg-studio[data-step="variants"] .ys-lg-rail__t--bg {
  background: rgba(230, 122, 46, 0.16);
  color: var(--lg-orange);
  box-shadow: inset 0 0 0 1px rgba(230, 122, 46, 0.38);
}

/* canvas + artboard */
.ys-lg-canvas {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  padding: 0.85rem;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.05), transparent 60%),
    #1b222c;
}

.ys-lg-sheet {
  position: relative;
  overflow: hidden;
  border-radius: 0.4rem;
  background:
    radial-gradient(circle, rgba(21, 36, 58, 0.11) 1px, transparent 1.3px) 0 0 / 16px 16px,
    #fbf9f4;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.38);
  color: var(--m-night);
}

.ys-lg-sheet::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: 0.55rem;
  background: repeating-linear-gradient(90deg, rgba(21, 36, 58, 0.22) 0 1px, transparent 1px 10px) bottom / 100% 45% no-repeat, rgba(21, 36, 58, 0.04);
  pointer-events: none;
}

.ys-lg-brief {
  position: absolute;
  top: 1.1rem;
  left: 0.85rem;
  z-index: 2;
  display: grid;
  width: 10.6rem;
  gap: 0.15rem;
  padding: 0.6rem 0.7rem 0.65rem;
  border: 1px solid rgba(21, 36, 58, 0.1);
  border-radius: 0.55rem;
  background: #fff;
  box-shadow: 0 10px 24px rgba(21, 36, 58, 0.1);
  color: #4f5f75;
  font-size: 0.72rem;
  line-height: 1.35;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.4rem);
  transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.6s ease;
}

.ys-lg-brief__h {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--lg-orange-d);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ys-lg-brief b {
  color: var(--lg-ink);
  font-size: 0.86rem;
}

.ys-lg-brief__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-block-start: 0.25rem;
}

.ys-lg-brief__tags i {
  padding: 0.05rem 0.42rem;
  border-radius: 999px;
  background: #f1ece2;
  color: #6b5a43;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 600;
}

.ys-lg-studio:is([data-step="open"], [data-step="sketch"]) .ys-lg-brief {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* lockup under construction */
.ys-lg-lock {
  --mk: var(--mk-sm);
  --po: 0;
  --pop: 0;
  --bw: 14;
  --bo: 1;
  --ink: var(--m-olive);
  --dotf: var(--m-clay);
  --dots: transparent;
  --do: 1;
  --wc: var(--m-olive);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.ys-lg-studio:is([data-step="open"], [data-step="sketch"], [data-step="grid"], [data-step="type"], [data-step="color"]) .ys-lg-lock {
  opacity: 1;
  visibility: visible;
}

.ys-lg-studio:is([data-step="open"], [data-step="reset"]) .ys-lg-lock {
  --mk: var(--mk-big);
  --po: 1;
  --bw: 0;
  --bo: 0;
  --do: 0;
}

.ys-lg-studio[data-step="sketch"] .ys-lg-lock {
  --mk: var(--mk-big);
  --pop: 1;
  --bw: 0;
  --bo: 0;
  --dotf: transparent;
  --dots: var(--lg-blue);
}

.ys-lg-studio[data-step="grid"] .ys-lg-lock {
  --mk: var(--mk-big);
  --pop: 1;
  --ink: var(--m-night);
  --dotf: var(--m-night);
}

.ys-lg-studio[data-step="type"] .ys-lg-lock {
  --ink: var(--m-night);
  --dotf: var(--m-night);
  --wc: var(--m-night);
}

.ys-lg-studio:is([data-step="variants"], [data-step="present"]) .ys-lg-lock {
  --po: 1;
}

.ys-lg-mk {
  position: relative;
  flex: 0 0 auto;
  width: var(--mk);
  aspect-ratio: 1;
  transition: width 0.9s cubic-bezier(0.6, 0, 0.2, 1);
}

.ys-lg-mk svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ys-lg-cons {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.ys-lg-cons__g {
  fill: none;
  stroke: #7fa7e6;
  stroke-dasharray: 1.4 1.4;
  stroke-width: 0.35;
}

.ys-lg-cons__c {
  fill: none;
  stroke: var(--lg-orange);
  stroke-width: 0.55;
}

.ys-lg-cons__o {
  fill: none;
  stroke: var(--lg-orange);
  stroke-dasharray: 2 1.6;
  stroke-width: 0.4;
  opacity: 0.85;
}

.ys-lg-cons__m {
  fill: none;
  stroke: var(--lg-ink);
  stroke-width: 0.5;
}

.ys-lg-studio[data-step="grid"] .ys-lg-cons {
  opacity: 1;
}

.ys-lg-studio[data-step="type"] .ys-lg-cons {
  opacity: 0.22;
}

.ys-lg-body {
  fill: none;
  stroke: var(--ink);
  stroke-width: var(--bw);
  opacity: var(--bo);
  transition: stroke-width 1s cubic-bezier(0.6, 0, 0.2, 1), stroke 0.8s ease, opacity 0.5s ease;
}

.ys-lg-dot {
  fill: var(--dotf);
  stroke: var(--dots);
  stroke-width: 0.9;
  opacity: var(--do);
  transition: fill 0.8s ease, stroke 0.5s ease, opacity 0.5s ease;
}

.ys-lg-pen {
  fill: none;
  stroke: var(--lg-blue);
  stroke-dasharray: 1 1;
  stroke-dashoffset: var(--po);
  stroke-width: 0.9;
  opacity: var(--pop);
  transition: stroke-dashoffset 1.9s cubic-bezier(0.45, 0, 0.2, 1), opacity 0.4s ease;
}

.ys-lg-nodes {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.ys-lg-nodes rect {
  fill: #fff;
  stroke: var(--lg-blue);
  stroke-width: 0.8;
}

.ys-lg-nodes circle {
  fill: var(--lg-blue);
}

.ys-lg-nodes__h {
  stroke: var(--lg-blue);
  stroke-width: 0.5;
}

.ys-lg-studio[data-step="sketch"] .ys-lg-nodes {
  opacity: 1;
  transition-delay: 1.3s;
}

.ys-lg-studio[data-step="grid"] .ys-lg-nodes {
  opacity: 1;
}

.ys-lg-dim {
  position: absolute;
  padding: 0.04rem 0.32rem;
  border: 1px solid rgba(230, 122, 46, 0.4);
  border-radius: 0.25rem;
  background: #fff;
  color: var(--lg-orange-d);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.ys-lg-dim--r {
  top: 46%;
  left: -6%;
  transform: translateX(-50%);
}

.ys-lg-dim--gap {
  top: 96%;
  left: 50%;
  transform: translateX(-50%);
}

.ys-lg-dim--dot {
  top: 13%;
  left: 64%;
}

.ys-lg-studio[data-step="grid"] .ys-lg-dim {
  opacity: 1;
  visibility: visible;
  transition-delay: 0.5s;
}

.ys-lg-word {
  display: grid;
  max-width: 16rem;
  margin-inline-start: clamp(0.6rem, 2.6cqi, 1.15rem);
  overflow: hidden;
  color: var(--wc);
  opacity: 1;
  white-space: nowrap;
  transition: max-width 0.9s cubic-bezier(0.6, 0, 0.2, 1), margin 0.9s cubic-bezier(0.6, 0, 0.2, 1), opacity 0.6s ease 0.15s, color 0.8s ease;
}

.ys-lg-word__main,
.ys-lg-word__alt {
  grid-area: 1 / 1;
  align-self: end;
  line-height: 1;
}

.ys-lg-word__main {
  font-family: var(--lg-serif);
  font-size: var(--word);
  letter-spacing: -0.01em;
}

.ys-lg-word__alt {
  font-size: calc(var(--word) * 0.72);
  font-weight: 800;
  letter-spacing: 0.12em;
  opacity: 0;
}

.ys-lg-word__sub {
  grid-area: 2 / 1;
  margin-block-start: 0.45em;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5em;
  opacity: 0.8;
}

.ys-lg-studio:is([data-step="open"], [data-step="reset"], [data-step="sketch"], [data-step="grid"]) .ys-lg-word {
  max-width: 0;
  margin-inline-start: 0;
  opacity: 0;
  transition-delay: 0s;
}

.ys-lg-studio[data-step="type"] .ys-lg-word__alt {
  animation: ys-lg-alt 3s ease both;
}

.ys-lg-studio[data-step="type"] .ys-lg-word__main {
  animation: ys-lg-main 3s ease both;
}

/* light / dark trial */
.ys-lg-var {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.5rem, 2.4cqi, 0.9rem);
  padding: clamp(0.75rem, 3.4cqi, 1.3rem);
  padding-block-start: clamp(1rem, 4cqi, 1.5rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.ys-lg-var__t {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.45rem;
  border-radius: 0.6rem;
  opacity: 0;
  transform: translateY(0.9rem);
  transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.ys-lg-var__t .ys-lg-glyph {
  --gw: clamp(2.6rem, 11cqi, 4.4rem);
}

.ys-lg-var__t--light {
  border: 1px solid rgba(29, 34, 27, 0.1);
  background: var(--m-cream);
  color: var(--m-olive);
}

.ys-lg-var__t--dark {
  background: linear-gradient(160deg, #2c3525, var(--m-night));
  color: var(--m-sand);
  box-shadow: 0 12px 24px rgba(29, 34, 27, 0.22);
}

.ys-lg-var__t--dark .ys-lg-glyph {
  --lg-a: var(--m-sand);
}

.ys-lg-var__w {
  font-family: var(--lg-serif);
  font-size: clamp(1.1rem, 4.6cqi, 1.85rem);
  line-height: 1;
}

.ys-lg-var__c {
  position: absolute;
  bottom: 0.55rem;
  left: 0.7rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  opacity: 0.7;
  text-transform: uppercase;
}

.ys-lg-studio[data-step="variants"] .ys-lg-var {
  opacity: 1;
  visibility: visible;
}

.ys-lg-studio[data-step="variants"] .ys-lg-var__t {
  opacity: 1;
  transform: none;
}

.ys-lg-studio[data-step="variants"] .ys-lg-var__t--dark {
  transition-delay: 0.35s;
}

/* final presentation (also the no-JS / reduced-motion state) */
.ys-lg-pres {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: clamp(0.85rem, 3.4cqi, 1.25rem) clamp(0.85rem, 3.6cqi, 1.35rem);
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.55), transparent 55%),
    var(--m-sand);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.ys-lg-studio[data-step]:not([data-step="present"]) .ys-lg-pres {
  opacity: 0;
  visibility: hidden;
}

.ys-lg-pres__k {
  color: #7a6a50;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ys-lg-pres__lock {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.3rem;
  color: var(--m-olive);
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s;
}

.ys-lg-pres__lock .ys-lg-glyph {
  --gw: clamp(3.2rem, 13cqi, 5.6rem);
  margin-block-end: 0.35rem;
}

.ys-lg-pres__w {
  font-family: var(--lg-serif);
  font-size: clamp(1.5rem, 6.2cqi, 2.6rem);
  line-height: 1;
}

.ys-lg-pres__s {
  padding-inline-start: 0.5em;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5em;
}

.ys-lg-pres__t {
  margin-block-start: 0.25rem;
  color: #6f5f47;
  font-family: var(--lg-serif);
  font-size: 0.84rem;
  font-style: italic;
}

.ys-lg-studio .ys-lg-pres__pal {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ys-lg-pres__pal li {
  display: grid;
  gap: 0.25rem;
  transition: opacity 0.5s ease, transform 0.6s ease;
}

.ys-lg-pres__pal li::before {
  content: "";
  height: clamp(0.9rem, 4cqi, 1.5rem);
  border-radius: 0.3rem;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.ys-lg-pres__pal span {
  color: #5d5140;
  font-size: 0.68rem;
  font-weight: 700;
}

.ys-lg-studio[data-step]:not([data-step="present"]) .ys-lg-pres__lock {
  transform: scale(0.94);
}

.ys-lg-studio[data-step]:not([data-step="present"]) .ys-lg-pres__pal li {
  opacity: 0;
  transform: translateY(0.5rem);
}

.ys-lg-studio[data-step="present"] .ys-lg-pres__pal li:nth-child(2) { transition-delay: 0.45s; }
.ys-lg-studio[data-step="present"] .ys-lg-pres__pal li:nth-child(3) { transition-delay: 0.55s; }
.ys-lg-studio[data-step="present"] .ys-lg-pres__pal li:nth-child(4) { transition-delay: 0.65s; }
.ys-lg-studio[data-step="present"] .ys-lg-pres__pal li:first-child { transition-delay: 0.35s; }

.ys-lg-studio[data-step="present"] :is(.ys-lg-rail, .ys-lg-panel) {
  opacity: 0.45;
}

/* inspector panel */
.ys-lg-panel {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  min-width: 0;
  overflow: hidden;
  padding: 0.75rem 0.7rem;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.06);
  background: #10151c;
  transition: opacity 0.5s ease;
}

.ys-lg-studio .ys-lg-panel__h {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.2rem 0 0;
  color: #7d8ba0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
  transition: color 0.35s ease;
}

.ys-lg-panel__h::before {
  content: "";
  width: 0.2rem;
  height: 0.7rem;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.12);
  transition: background-color 0.35s ease;
}

.ys-lg-studio[data-step="type"] .ys-lg-panel__h--type,
.ys-lg-studio[data-step="color"] .ys-lg-panel__h--color,
.ys-lg-studio[data-step="variants"] .ys-lg-panel__h--bg {
  color: #fff;
}

.ys-lg-studio[data-step="type"] .ys-lg-panel__h--type::before,
.ys-lg-studio[data-step="color"] .ys-lg-panel__h--color::before,
.ys-lg-studio[data-step="variants"] .ys-lg-panel__h--bg::before {
  background: var(--lg-orange);
}

.ys-lg-studio .ys-lg-fonts,
.ys-lg-studio .ys-lg-sw {
  display: grid;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ys-lg-fonts__i {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.32rem 0.5rem;
  border: 1px solid transparent;
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.35s ease, background-color 0.35s ease;
}

.ys-lg-fonts__i b {
  overflow: hidden;
  color: #e8edf3;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.25;
}

.ys-lg-fonts__i small {
  flex: 0 0 auto;
  color: #7d8ba0;
  font-size: 0.68rem;
  white-space: nowrap;
}

.ys-lg-fonts__i--serif b {
  font-family: var(--lg-serif);
}

.ys-lg-fonts__i--sans b {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ys-lg-fonts__i--thin b {
  font-weight: 300;
  letter-spacing: 0.04em;
}

.ys-lg-studio:is(:not([data-step]), [data-step="color"], [data-step="variants"], [data-step="present"]) .ys-lg-fonts__i--serif {
  border-color: rgba(230, 122, 46, 0.55);
  background: rgba(230, 122, 46, 0.1);
}

.ys-lg-studio[data-step="type"] .ys-lg-fonts__i--sans {
  animation: ys-lg-try 3s ease both;
}

.ys-lg-studio[data-step="type"] .ys-lg-fonts__i--serif {
  animation: ys-lg-pick 3s ease both;
}

.ys-lg-studio .ys-lg-sw {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ys-lg-sw__i {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  color: #aab6c6;
  font-size: 0.68rem;
  font-weight: 600;
}

.ys-lg-sw__i::before {
  content: "";
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 auto;
  border-radius: 0.28rem;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  transition: box-shadow 0.35s ease;
}

.ys-lg-studio:is(:not([data-step]), [data-step="color"], [data-step="variants"], [data-step="present"]) :is(.ys-lg-sw__i--a, .ys-lg-sw__i--b)::before {
  box-shadow: 0 0 0 2px #10151c, 0 0 0 3.5px var(--lg-orange);
}

.ys-lg-studio[data-step="color"] .ys-lg-sw__i--b::before {
  transition-delay: 0.5s;
}

.ys-lg-bgs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.3rem;
}

.ys-lg-bgs__i {
  padding: 0.32rem 0.2rem;
  border-radius: 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
  transition: box-shadow 0.35s ease;
}

.ys-lg-bgs__i--l {
  background: var(--m-cream);
  color: var(--m-olive);
}

.ys-lg-bgs__i--d {
  background: #2a3324;
  color: var(--m-sand);
}

.ys-lg-studio:is(:not([data-step]), [data-step="variants"], [data-step="present"]) .ys-lg-bgs__i {
  box-shadow: 0 0 0 2px #10151c, 0 0 0 3.5px var(--lg-orange);
}

/* step strip */
.ys-lg-studio .ys-lg-steps {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.5rem 0.8rem 0.55rem;
  border-block-start: 1px solid rgba(255, 255, 255, 0.07);
  background: #10151c;
  list-style: none;
}

.ys-lg-steps li {
  position: relative;
  display: flex;
  flex: 1 1 0;
  align-items: center;
  gap: 0.38rem;
  min-width: 0;
  padding-block-end: 0.38rem;
  color: #6f7d90;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.35s ease;
}

.ys-lg-steps li::before,
.ys-lg-steps li::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.ys-lg-steps li::after {
  background: var(--lg-orange);
  transform: scaleX(0);
  transform-origin: left;
}

.ys-lg-steps b {
  display: grid;
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  font-size: 0.68rem;
  transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

.ys-lg-steps span {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* done */
.ys-lg-studio:not([data-step]) .ys-lg-steps li,
.ys-lg-studio[data-step="grid"] .ys-lg-steps li:nth-child(-n + 1),
.ys-lg-studio[data-step="type"] .ys-lg-steps li:nth-child(-n + 2),
.ys-lg-studio[data-step="color"] .ys-lg-steps li:nth-child(-n + 3),
.ys-lg-studio[data-step="variants"] .ys-lg-steps li:nth-child(-n + 4),
.ys-lg-studio[data-step="present"] .ys-lg-steps li:nth-child(-n + 5) {
  color: #aab6c6;
}

.ys-lg-studio:not([data-step]) .ys-lg-steps li::after,
.ys-lg-studio[data-step="grid"] .ys-lg-steps li:nth-child(-n + 1)::after,
.ys-lg-studio[data-step="type"] .ys-lg-steps li:nth-child(-n + 2)::after,
.ys-lg-studio[data-step="color"] .ys-lg-steps li:nth-child(-n + 3)::after,
.ys-lg-studio[data-step="variants"] .ys-lg-steps li:nth-child(-n + 4)::after,
.ys-lg-studio[data-step="present"] .ys-lg-steps li:nth-child(-n + 5)::after {
  opacity: 0.55;
  transform: none;
}

.ys-lg-studio:not([data-step]) .ys-lg-steps b,
.ys-lg-studio[data-step="grid"] .ys-lg-steps li:nth-child(-n + 1) b,
.ys-lg-studio[data-step="type"] .ys-lg-steps li:nth-child(-n + 2) b,
.ys-lg-studio[data-step="color"] .ys-lg-steps li:nth-child(-n + 3) b,
.ys-lg-studio[data-step="variants"] .ys-lg-steps li:nth-child(-n + 4) b,
.ys-lg-studio[data-step="present"] .ys-lg-steps li:nth-child(-n + 5) b {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.12);
}

/* active */
.ys-lg-studio:not([data-step]) .ys-lg-steps li:last-child,
.ys-lg-studio[data-step="sketch"] .ys-lg-steps [data-s="sketch"],
.ys-lg-studio[data-step="grid"] .ys-lg-steps [data-s="grid"],
.ys-lg-studio[data-step="type"] .ys-lg-steps [data-s="type"],
.ys-lg-studio[data-step="color"] .ys-lg-steps [data-s="color"],
.ys-lg-studio[data-step="variants"] .ys-lg-steps [data-s="variants"],
.ys-lg-studio[data-step="present"] .ys-lg-steps [data-s="present"] {
  color: #fff;
}

.ys-lg-studio:not([data-step]) .ys-lg-steps li:last-child b,
.ys-lg-studio[data-step="sketch"] .ys-lg-steps [data-s="sketch"] b,
.ys-lg-studio[data-step="grid"] .ys-lg-steps [data-s="grid"] b,
.ys-lg-studio[data-step="type"] .ys-lg-steps [data-s="type"] b,
.ys-lg-studio[data-step="color"] .ys-lg-steps [data-s="color"] b,
.ys-lg-studio[data-step="variants"] .ys-lg-steps [data-s="variants"] b,
.ys-lg-studio[data-step="present"] .ys-lg-steps [data-s="present"] b {
  border-color: var(--lg-orange);
  background: var(--lg-orange);
  color: #fff;
}

.ys-lg-studio:not([data-step]) .ys-lg-steps li:last-child::after {
  opacity: 1;
}

.ys-lg-studio[data-step="sketch"] .ys-lg-steps [data-s="sketch"]::after,
.ys-lg-studio[data-step="grid"] .ys-lg-steps [data-s="grid"]::after,
.ys-lg-studio[data-step="type"] .ys-lg-steps [data-s="type"]::after,
.ys-lg-studio[data-step="color"] .ys-lg-steps [data-s="color"]::after,
.ys-lg-studio[data-step="variants"] .ys-lg-steps [data-s="variants"]::after,
.ys-lg-studio[data-step="present"] .ys-lg-steps [data-s="present"]::after {
  transform: none;
}

.ys-lg-studio.is-live[data-step="sketch"] .ys-lg-steps [data-s="sketch"]::after,
.ys-lg-studio.is-live[data-step="grid"] .ys-lg-steps [data-s="grid"]::after,
.ys-lg-studio.is-live[data-step="type"] .ys-lg-steps [data-s="type"]::after,
.ys-lg-studio.is-live[data-step="color"] .ys-lg-steps [data-s="color"]::after,
.ys-lg-studio.is-live[data-step="variants"] .ys-lg-steps [data-s="variants"]::after,
.ys-lg-studio.is-live[data-step="present"] .ys-lg-steps [data-s="present"]::after {
  animation: ys-lg-fill var(--lg-dur, 3s) linear both;
}

.ys-lg-studio[data-hold="1"] .ys-lg-steps li::after {
  animation: none !important;
}

/* cursor */
.ys-lg-cursor {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 8;
  opacity: 0;
  pointer-events: none;
  transform: translateX(var(--cx, 0));
  transition: transform 0.95s cubic-bezier(0.55, 0.05, 0.3, 1), opacity 0.4s ease;
}

.ys-lg-cursor__y {
  position: relative;
  display: block;
  transform: translateY(var(--cy, 0));
  transition: transform 0.95s cubic-bezier(0.2, 0.65, 0.35, 1);
}

.ys-lg-cursor svg {
  display: block;
  filter: drop-shadow(0 3px 5px rgba(7, 20, 38, 0.35));
}

.ys-lg-cursor__y::after {
  content: "";
  position: absolute;
  top: -0.55rem;
  left: -0.55rem;
  width: 1.4rem;
  height: 1.4rem;
  border: 2px solid var(--lg-orange);
  border-radius: 50%;
  opacity: 0;
}

.ys-lg-cursor.is-press .ys-lg-cursor__y::after {
  animation: ys-lg-ring 0.55s ease-out;
}

.ys-lg.is-ready .ys-lg-studio.is-live .ys-lg-cursor {
  opacity: 1;
}

@keyframes ys-lg-ring {
  from { opacity: 0.9; transform: scale(0.4); }
  to { opacity: 0; transform: scale(1.5); }
}

@keyframes ys-lg-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes ys-lg-alt {
  0% { opacity: 0; }
  10%, 52% { opacity: 1; }
  58%, 100% { opacity: 0; }
}

@keyframes ys-lg-main {
  0%, 54% { opacity: 0; }
  66%, 100% { opacity: 1; }
}

@keyframes ys-lg-try {
  0% { border-color: transparent; background: rgba(255, 255, 255, 0.04); }
  8%, 52% { border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.09); }
  60%, 100% { border-color: transparent; background: rgba(255, 255, 255, 0.04); }
}

@keyframes ys-lg-pick {
  0%, 54% { border-color: transparent; background: rgba(255, 255, 255, 0.04); }
  64%, 100% { border-color: rgba(230, 122, 46, 0.55); background: rgba(230, 122, 46, 0.1); }
}

@container lghero (max-width: 34rem) {
  .ys-lg-app {
    --rail: 0rem;
    --panel: 8.6rem;
  }

  .ys-lg-studio .ys-lg-rail {
    display: none;
  }

  .ys-lg-studio .ys-lg-sw {
    grid-template-columns: minmax(0, 1fr);
  }

  .ys-lg-fonts__i small {
    display: none;
  }

  .ys-lg.is-ready .ys-lg-studio.is-live:is([data-step="sketch"], [data-step="grid"]) .ys-lg-cursor {
    opacity: 0;
  }
}

@container lghero (max-width: 30rem) {
  .ys-lg-app__file {
    display: none;
  }

  .ys-lg-steps li {
    flex: 0 0 auto;
  }

  .ys-lg-steps li span {
    display: none;
  }

  .ys-lg-studio:not([data-step]) .ys-lg-steps li:last-child,
  .ys-lg-studio[data-step="sketch"] .ys-lg-steps [data-s="sketch"],
  .ys-lg-studio[data-step="grid"] .ys-lg-steps [data-s="grid"],
  .ys-lg-studio[data-step="type"] .ys-lg-steps [data-s="type"],
  .ys-lg-studio[data-step="color"] .ys-lg-steps [data-s="color"],
  .ys-lg-studio[data-step="variants"] .ys-lg-steps [data-s="variants"],
  .ys-lg-studio[data-step="present"] .ys-lg-steps [data-s="present"] {
    flex: 1 1 auto;
  }

  .ys-lg-studio:not([data-step]) .ys-lg-steps li:last-child span,
  .ys-lg-studio[data-step="sketch"] .ys-lg-steps [data-s="sketch"] span,
  .ys-lg-studio[data-step="grid"] .ys-lg-steps [data-s="grid"] span,
  .ys-lg-studio[data-step="type"] .ys-lg-steps [data-s="type"] span,
  .ys-lg-studio[data-step="color"] .ys-lg-steps [data-s="color"] span,
  .ys-lg-studio[data-step="variants"] .ys-lg-steps [data-s="variants"] span,
  .ys-lg-studio[data-step="present"] .ys-lg-steps [data-s="present"] span {
    display: inline;
  }
}

@container lghero (max-width: 26.5rem) {
  .ys-lg-app {
    --panel: 0rem;
  }

  .ys-lg-panel {
    display: none;
  }

  .ys-lg.is-ready .ys-lg-studio.is-live:is([data-step="type"], [data-step="color"], [data-step="variants"]) .ys-lg-cursor {
    opacity: 0;
  }

  .ys-lg-pres__lock {
    gap: 0.15rem;
  }

  .ys-lg-pres__lock .ys-lg-glyph {
    --gw: 2.5rem;
    margin-block-end: 0.15rem;
  }

  .ys-lg-pres__w {
    font-size: 1.45rem;
  }

  .ys-lg-pres__t {
    display: none;
  }

  .ys-lg-app__bar {
    gap: 0.5rem;
    padding: 0.5rem 0.65rem;
  }

  .ys-lg-canvas {
    padding: 0.6rem;
  }

  .ys-lg-brief {
    top: 0.9rem;
    left: 0.6rem;
    width: 9.4rem;
    padding: 0.5rem 0.6rem;
  }

  .ys-lg-studio[data-step="sketch"] .ys-lg-brief {
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.4rem);
  }

  .ys-lg-studio .ys-lg-steps {
    padding-inline: 0.65rem;
  }
}

/* ---------- Article: brand-book chapters ---------- */
.ys-lg-article.is-grouped > .ys-lg-sec + .ys-lg-sec {
  margin-block-start: clamp(2.6rem, 4.4vw, 3.6rem);
}

.ys-lg-sec[data-ch]::before {
  content: attr(data-no) "\2002\2002" attr(data-ch);
  display: block;
  margin-block-end: 0.95rem;
  padding-block-end: 0.6rem;
  background:
    linear-gradient(var(--lg-orange), var(--lg-orange)) left bottom / 2.4rem 2px no-repeat,
    linear-gradient(var(--lg-line), var(--lg-line)) left bottom / 100% 1px no-repeat;
  color: var(--lg-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.ys-service-article .ys-lg-sec > h2 {
  margin-block: 0 1rem;
}

.ys-service-article .ys-lg-sec > :last-child {
  margin-block-end: 0;
}

/* intro */
.ys-service-article .ys-lg-sec--intro > h2 + p {
  color: #24364f;
  font-size: 1.14rem;
  line-height: 1.75;
}

/* why: numbered panel */
.ys-service-article .ys-lg-sec--why > ul {
  gap: 0;
  padding: 0.35rem 1.35rem;
  border: 1px solid var(--lg-line);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 14px 34px rgba(7, 20, 38, 0.05);
  counter-reset: lgwhy;
  list-style: none;
}

.ys-service-article .ys-lg-sec--why > ul > li {
  position: relative;
  padding: 0.8rem 0 0.8rem 2.7rem;
  counter-increment: lgwhy;
  line-height: 1.6;
}

.ys-service-article .ys-lg-sec--why > ul > li + li {
  border-block-start: 1px solid var(--lg-line);
}

.ys-service-article .ys-lg-sec--why > ul > li::before {
  content: counter(lgwhy, decimal-leading-zero);
  position: absolute;
  top: 0.95rem;
  left: 0;
  color: var(--lg-orange);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

/* scope: two-column spec sheet with anchor-point bullets */
.ys-service-article .ys-lg-sec--scope > ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.75rem;
  padding: 0;
  border-block-start: 1px solid var(--lg-line);
  list-style: none;
}

.ys-service-article .ys-lg-sec--scope > ul > li {
  position: relative;
  padding: 0.72rem 0 0.72rem 1.6rem;
  border-block-end: 1px solid var(--lg-line);
  color: #24364f;
  font-weight: 600;
  line-height: 1.5;
}

.ys-service-article .ys-lg-sec--scope > ul > li::before {
  content: "";
  position: absolute;
  top: 1.12rem;
  left: 0.1rem;
  width: 0.52rem;
  height: 0.52rem;
  border: 1.5px solid var(--lg-orange);
  border-radius: 1px;
  background: #fff;
}

/* process: CMS steps with an evolution thumbnail each */
.ys-lg-sec--process .ys-lg-sub {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 1.35rem;
  align-items: start;
  padding-block: 1.15rem;
  border-block-start: 1px solid var(--lg-line);
}

.ys-lg-sec--process .ys-lg-sub:last-child {
  border-block-end: 1px solid var(--lg-line);
}

.ys-lg-evo {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  padding: 0.45rem;
  border: 1px solid var(--lg-line);
  border-radius: 0.75rem;
  background:
    radial-gradient(circle, rgba(21, 36, 58, 0.09) 1px, transparent 1.2px) 0 0 / 10px 10px,
    var(--lg-paper);
}

.ys-lg-evo svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ys-lg-sec--process .ys-lg-sub:not(:last-child) .ys-lg-evo::after {
  content: "";
  position: absolute;
  top: calc(100% + 1px);
  left: 50%;
  width: 1px;
  height: 2.3rem;
  background: linear-gradient(var(--lg-line), transparent);
}

.ys-service-article .ys-lg-sub h3 {
  margin-block: 0.15rem 0.4rem;
}

.ys-service-article .ys-lg-sub p {
  margin-block-end: 0;
}

/* concept: three ways a mark can be built */
.ys-lg-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-block-start: 1.4rem;
}

.ys-lg-trio__t {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 10;
  place-items: center;
  padding-block-end: 1.2rem;
  border: 1px solid var(--lg-line);
  border-radius: 0.85rem;
  background: var(--m-cream);
  color: var(--m-olive);
}

.ys-lg-trio__t::after {
  content: attr(data-l);
  position: absolute;
  bottom: 0.6rem;
  left: 0.75rem;
  color: var(--lg-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ys-lg-trio__word {
  font-family: var(--lg-serif);
  font-size: clamp(1.4rem, 1.1rem + 0.9vw, 1.95rem);
  letter-spacing: 0.01em;
}

.ys-lg-trio__t > .ys-lg-glyph {
  --gw: clamp(2.2rem, 1.8rem + 1vw, 2.9rem);
}

.ys-lg-trio__t .ys-lg-lk {
  --gw: clamp(1.45rem, 1.2rem + 0.6vw, 1.85rem);
}

/* type: closing note */
.ys-service-article .ys-lg-sec--type > p:last-child {
  padding: 0.95rem 1.2rem;
  border-inline-start: 3px solid var(--lg-orange);
  border-radius: 0 0.75rem 0.75rem 0;
  background: #fff;
  box-shadow: 0 10px 26px rgba(7, 20, 38, 0.04);
}

/* variants: tile list with a small usage preview per item */
.ys-service-article .ys-lg-sec--variants > ul {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  padding: 0;
  list-style: none;
}

.ys-service-article .ys-lg-sec--variants > ul > li {
  padding: 0.6rem 0.65rem 0.7rem;
  border: 1px solid var(--lg-line);
  border-radius: 0.8rem;
  background: #fff;
  color: #24364f;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.38;
}

.ys-service-article .ys-lg-sec--variants > ul > li::before {
  content: "";
  display: block;
  height: 2.6rem;
  margin-block-end: 0.55rem;
  border-radius: 0.5rem;
  background: var(--chip, none) center / auto 80% no-repeat, var(--chip-bg, var(--m-cream));
  box-shadow: inset 0 0 0 1px rgba(29, 34, 27, 0.07);
}

.ys-lg-sec--variants > ul > li:nth-child(1) {
  --chip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 48'%3E%3Csvg x='34' y='10' width='25.5' height='28' viewBox='20 16 80 88'%3E%3Cpath d='M28 102V64a16 16 0 0 1 32 0v38M60 64a16 16 0 0 1 32 0v38' fill='none' stroke='%2334412b' stroke-width='14'/%3E%3Ccircle cx='60' cy='26' r='8' fill='%23c4683f'/%3E%3C/svg%3E%3Crect x='64' y='17' width='26' height='7' rx='2' fill='%2334412b'/%3E%3Crect x='64' y='28' width='17' height='3' rx='1.5' fill='%2334412b' opacity='.6'/%3E%3C/svg%3E");
}

.ys-lg-sec--variants > ul > li:nth-child(2) {
  --chip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 48'%3E%3Csvg x='20' y='13' width='20' height='22' viewBox='20 16 80 88'%3E%3Cpath d='M28 102V64a16 16 0 0 1 32 0v38M60 64a16 16 0 0 1 32 0v38' fill='none' stroke='%2334412b' stroke-width='14'/%3E%3Ccircle cx='60' cy='26' r='8' fill='%23c4683f'/%3E%3C/svg%3E%3Crect x='45' y='17' width='54' height='7' rx='2' fill='%2334412b'/%3E%3Crect x='45' y='28' width='34' height='3' rx='1.5' fill='%2334412b' opacity='.6'/%3E%3C/svg%3E");
}

.ys-lg-sec--variants > ul > li:nth-child(3) {
  --chip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 48'%3E%3Csvg x='50' y='3' width='20' height='22' viewBox='20 16 80 88'%3E%3Cpath d='M28 102V64a16 16 0 0 1 32 0v38M60 64a16 16 0 0 1 32 0v38' fill='none' stroke='%2334412b' stroke-width='14'/%3E%3Ccircle cx='60' cy='26' r='8' fill='%23c4683f'/%3E%3C/svg%3E%3Crect x='40' y='30' width='40' height='6' rx='2' fill='%2334412b'/%3E%3Crect x='48' y='40' width='24' height='3' rx='1.5' fill='%2334412b' opacity='.6'/%3E%3C/svg%3E");
}

.ys-lg-sec--variants > ul > li:nth-child(4) {
  --chip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 48'%3E%3Crect x='41' y='4' width='38' height='40' rx='9' fill='%2334412b'/%3E%3Csvg x='48.5' y='11' width='23.6' height='26' viewBox='20 16 80 88'%3E%3Cpath d='M28 102V64a16 16 0 0 1 32 0v38M60 64a16 16 0 0 1 32 0v38' fill='none' stroke='%23e9dfcc' stroke-width='14'/%3E%3Ccircle cx='60' cy='26' r='8' fill='%23c4683f'/%3E%3C/svg%3E%3C/svg%3E");
  --chip-bg: #f3efe6;
}

.ys-lg-sec--variants > ul > li:nth-child(5) {
  --chip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 48'%3E%3Csvg x='42' y='9' width='27.3' height='30' viewBox='20 16 80 88'%3E%3Cpath d='M28 102V64a16 16 0 0 1 32 0v38M60 64a16 16 0 0 1 32 0v38' fill='none' stroke='%2334412b' stroke-width='14'/%3E%3Ccircle cx='60' cy='26' r='8' fill='%23c4683f'/%3E%3C/svg%3E%3Ccircle cx='82' cy='15' r='3.4' fill='%2334412b'/%3E%3Ccircle cx='82' cy='24' r='3.4' fill='%23c4683f'/%3E%3Ccircle cx='82' cy='33' r='3.4' fill='%23d9cdb4'/%3E%3C/svg%3E");
}

.ys-lg-sec--variants > ul > li:nth-child(6) {
  --chip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 48'%3E%3Csvg x='46' y='9' width='27.3' height='30' viewBox='20 16 80 88'%3E%3Cpath d='M28 102V64a16 16 0 0 1 32 0v38M60 64a16 16 0 0 1 32 0v38' fill='none' stroke='%23111111' stroke-width='14'/%3E%3Ccircle cx='60' cy='26' r='8' fill='%23111111'/%3E%3C/svg%3E%3C/svg%3E");
  --chip-bg: #fff;
}

.ys-lg-sec--variants > ul > li:nth-child(7) {
  --chip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 48'%3E%3Csvg x='46' y='9' width='27.3' height='30' viewBox='20 16 80 88'%3E%3Cpath d='M28 102V64a16 16 0 0 1 32 0v38M60 64a16 16 0 0 1 32 0v38' fill='none' stroke='%2334412b' stroke-width='14'/%3E%3Ccircle cx='60' cy='26' r='8' fill='%23c4683f'/%3E%3C/svg%3E%3C/svg%3E");
  --chip-bg: #fbf8f1;
}

.ys-lg-sec--variants > ul > li:nth-child(8) {
  --chip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 48'%3E%3Csvg x='46' y='9' width='27.3' height='30' viewBox='20 16 80 88'%3E%3Cpath d='M28 102V64a16 16 0 0 1 32 0v38M60 64a16 16 0 0 1 32 0v38' fill='none' stroke='%23e9dfcc' stroke-width='14'/%3E%3Ccircle cx='60' cy='26' r='8' fill='%23c4683f'/%3E%3C/svg%3E%3C/svg%3E");
  --chip-bg: #1d221b;
}

/* formats: file chips (the formats the CMS text names) */
.ys-lg-files {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-block: 0.2rem 1.3rem;
}

.ys-lg-files span {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.85rem 0.45rem 0.45rem;
  border: 1px solid var(--lg-line);
  border-radius: 0.75rem;
  background: #fff;
}

.ys-lg-files span::before {
  content: attr(data-f);
  display: grid;
  width: 2.25rem;
  height: 2.6rem;
  place-items: center;
  border-radius: 0.3rem 0.75rem 0.3rem 0.3rem;
  background: var(--f, var(--lg-navy));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.ys-lg-files span::after {
  content: attr(data-d);
  color: #24364f;
  font-size: 0.84rem;
  font-weight: 650;
}

.ys-lg-files span:nth-child(1) { --f: #2f6fd6; }
.ys-lg-files span:nth-child(2) { --f: #1e8a63; }
.ys-lg-files span:nth-child(3) { --f: #d26a22; }
.ys-lg-files span:nth-child(4) { --f: #b23a2c; }

/* direct-answer chapters */
.ys-lg-article.is-grouped > :is(.ys-lg-sec--refresh, .ys-lg-sec--ai, .ys-lg-sec--legal, .ys-lg-sec--count, .ys-lg-sec--revise) {
  padding: clamp(1.25rem, 2.6vw, 1.75rem) clamp(1.2rem, 2.8vw, 1.9rem);
  border: 1px solid var(--lg-line);
  border-radius: 1.05rem;
  background: #fff;
  box-shadow: 0 14px 34px rgba(7, 20, 38, 0.045);
}

.ys-lg-article.is-grouped > .ys-lg-sec--legal {
  background: linear-gradient(180deg, #fff, #fbfaf7);
  box-shadow: inset 3px 0 0 var(--lg-navy), 0 14px 34px rgba(7, 20, 38, 0.045);
}

.ys-lg-article.is-grouped > :is(.ys-lg-sec--ai, .ys-lg-sec--legal, .ys-lg-sec--count, .ys-lg-sec--revise) + :is(.ys-lg-sec--legal, .ys-lg-sec--count, .ys-lg-sec--revise) {
  margin-block-start: 1rem;
}

/* identity: list as two columns */
.ys-service-article .ys-lg-sec--identity > ul,
.ys-service-article .ys-lg-sec--deliver > ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1.4rem;
  padding: 0;
  list-style: none;
}

.ys-service-article .ys-lg-sec--identity > ul > li,
.ys-service-article .ys-lg-sec--deliver > ul > li {
  position: relative;
  padding-inline-start: 1.7rem;
  color: #24364f;
  line-height: 1.55;
}

.ys-service-article .ys-lg-sec--identity > ul > li::before,
.ys-service-article .ys-lg-sec--deliver > ul > li::before {
  content: "";
  position: absolute;
  top: 0.38rem;
  left: 0;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(230, 122, 46, 0.14);
}

.ys-service-article .ys-lg-sec--identity > ul > li::after,
.ys-service-article .ys-lg-sec--deliver > ul > li::after {
  content: "";
  position: absolute;
  top: 0.6rem;
  left: 0.32rem;
  width: 0.36rem;
  height: 0.2rem;
  border: solid var(--lg-orange-d);
  border-width: 0 0 1.6px 1.6px;
  transform: rotate(-45deg);
}

/* deliver: delivery set panel */
.ys-service-article .ys-lg-sec--deliver > ul {
  padding: 1.2rem 1.35rem;
  border: 1px solid var(--lg-line);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 14px 34px rgba(7, 20, 38, 0.05);
}

/* audience: chips */
.ys-service-article .ys-lg-sec--audience > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  list-style: none;
}

.ys-service-article .ys-lg-sec--audience > ul > li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--lg-line);
  border-radius: 999px;
  background: #fff;
  color: #24364f;
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.4;
}

.ys-service-article .ys-lg-sec--audience > ul > li::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  flex: 0 0 auto;
  border-radius: 1px;
  background: var(--lg-orange);
  transform: rotate(45deg);
}

/* faq: one connected accordion */
.ys-service-article .ys-lg-sec--faq > details {
  margin: 0;
  padding: 0;
  border: 1px solid var(--lg-line);
  border-block-end: 0;
  border-radius: 0;
  background: #fff;
}

.ys-service-article .ys-lg-sec--faq > h2 + details {
  border-radius: 1rem 1rem 0 0;
}

.ys-service-article .ys-lg-sec--faq > details:last-child {
  border-block-end: 1px solid var(--lg-line);
  border-radius: 0 0 1rem 1rem;
}

.ys-service-article .ys-lg-sec--faq > details > summary {
  position: relative;
  display: block;
  padding: 1rem 3.2rem 1rem 1.25rem;
  color: var(--lg-ink);
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.45;
  list-style: none;
}

.ys-service-article .ys-lg-sec--faq > details > summary::-webkit-details-marker {
  display: none;
}

.ys-service-article .ys-lg-sec--faq > details > summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.25rem;
  width: 1.45rem;
  height: 1.45rem;
  border: 1px solid var(--lg-line);
  border-radius: 50%;
  background:
    linear-gradient(var(--lg-orange), var(--lg-orange)) center / 0.6rem 1.5px no-repeat,
    linear-gradient(var(--lg-orange), var(--lg-orange)) center / 1.5px 0.6rem no-repeat;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.ys-service-article .ys-lg-sec--faq > details[open] > summary {
  margin: 0;
}

.ys-service-article .ys-lg-sec--faq > details[open] > summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.ys-service-article .ys-lg-sec--faq > details > summary:hover {
  color: var(--lg-orange-d);
}

.ys-service-article .ys-lg-sec--faq > details > p {
  margin: 0;
  padding: 0 1.25rem 1.15rem;
}

/* ---------- Scenes (shared) ---------- */
.ys-lg-scene {
  container: lgscene / inline-size;
  margin-block: 1.8rem 0;
  overflow: hidden;
  border: 1px solid var(--lg-line);
  border-radius: 1.1rem;
  background: #fff;
  box-shadow: 0 18px 44px rgba(7, 20, 38, 0.07);
}

.ys-service-article .ys-lg-scene :is(p, li, dt, dd) {
  margin: var(--lg-m, 0);
  color: var(--lg-c, inherit);
  font-size: var(--lg-fs, inherit);
  line-height: var(--lg-lh, 1.45);
}

.ys-service-article .ys-lg-scene :is(ul, ol, dl) {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ys-lg-scene__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  padding: 0.75rem 1.05rem;
  border-block-end: 1px solid var(--lg-line);
  background: var(--lg-paper);
}

.ys-service-article .ys-lg-scene .ys-lg-scene__tag {
  --lg-c: var(--lg-navy);
  --lg-fs: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
}

.ys-lg-scene__tag i {
  color: var(--lg-orange);
}

.ys-lg-scene__hint {
  color: var(--lg-muted);
  font-size: 0.74rem;
  font-weight: 600;
}

.ys-lg-scene button {
  font: inherit;
  cursor: pointer;
}

.ys-lg-scene button:focus-visible {
  outline: 2px solid var(--lg-orange);
  outline-offset: 2px;
}

/* ---------- Scene A: identity board ---------- */
.ys-lg-idn__body {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
}

.ys-lg-idn__stage {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.95rem;
  background: #f4f1ea;
}

.ys-lg-idn__board {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(29, 34, 27, 0.08);
  border-radius: 0.75rem;
  background:
    linear-gradient(rgba(21, 36, 58, 0.04) 1px, transparent 1px) 0 0 / 100% 12.5%,
    linear-gradient(90deg, rgba(21, 36, 58, 0.04) 1px, transparent 1px) 0 0 / 6.25% 100%,
    #fff;
}

.ys-lg-idn__v {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 6cqi, 2.6rem);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.97);
  transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.ys-lg-idn__v::before {
  content: attr(data-note);
  position: absolute;
  top: 0.65rem;
  left: 0.75rem;
  color: var(--lg-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ys-lg-idn[data-variant="horizontal"] .ys-lg-idn__v--horizontal,
.ys-lg-idn[data-variant="vertical"] .ys-lg-idn__v--vertical,
.ys-lg-idn[data-variant="symbol"] .ys-lg-idn__v--symbol,
.ys-lg-idn[data-variant="mono"] .ys-lg-idn__v--mono {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.ys-lg-lk--guide {
  position: relative;
  padding: calc(var(--gw) * 0.5);
}

.ys-lg-lk--guide::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(230, 122, 46, 0.65);
  border-radius: 2px;
  background:
    linear-gradient(rgba(230, 122, 46, 0.08), rgba(230, 122, 46, 0.08)) left top / calc(var(--gw) * 0.5) calc(var(--gw) * 0.5) no-repeat,
    linear-gradient(rgba(230, 122, 46, 0.08), rgba(230, 122, 46, 0.08)) right bottom / calc(var(--gw) * 0.5) calc(var(--gw) * 0.5) no-repeat;
}

.ys-lg-lk--guide::after {
  content: "x";
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: calc(var(--gw) * 0.5);
  height: calc(var(--gw) * 0.5);
  place-items: center;
  color: var(--lg-orange-d);
  font-size: 0.7rem;
  font-style: italic;
  font-weight: 700;
}

.ys-lg-idn__v--horizontal .ys-lg-lk {
  --gw: clamp(2.2rem, 8.4cqi, 3.9rem);
}

.ys-lg-idn__v--vertical .ys-lg-lk {
  --gw: clamp(2rem, 6.4cqi, 3.1rem);
}

.ys-lg-sym .ys-lg-glyph {
  --gw: clamp(3.2rem, 12cqi, 5.6rem);
}

.ys-lg-sizes {
  display: flex;
  align-items: flex-end;
  gap: clamp(0.8rem, 3cqi, 1.4rem);
  padding-inline-start: clamp(1rem, 4cqi, 2rem);
  border-inline-start: 1px solid var(--lg-line);
}

.ys-lg-sizes i {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  font-style: normal;
}

.ys-lg-sizes i::after {
  content: attr(data-px) " px";
  color: var(--lg-muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.ys-lg-sizes i:nth-child(1) .ys-lg-glyph { --gw: 44px; }
.ys-lg-sizes i:nth-child(2) .ys-lg-glyph { --gw: 29px; }
.ys-lg-sizes i:nth-child(3) .ys-lg-glyph { --gw: 15px; }

.ys-lg-mono {
  display: grid;
  place-items: center;
  padding: clamp(0.9rem, 3.4cqi, 1.5rem) clamp(1rem, 4cqi, 1.8rem);
  border-radius: 0.6rem;
}

.ys-lg-mono .ys-lg-lk {
  --gw: clamp(1.7rem, 5.4cqi, 2.6rem);
}

.ys-lg-mono--pos {
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: #fff;
}

.ys-lg-mono--pos .ys-lg-lk {
  color: #111;
}

.ys-lg-mono--pos .ys-lg-glyph {
  --lg-a: #111;
  --lg-b: #111;
}

.ys-lg-mono--neg {
  background: #111;
}

.ys-lg-mono--neg .ys-lg-lk {
  color: #fff;
}

.ys-lg-mono--neg .ys-lg-glyph {
  --lg-a: #fff;
  --lg-b: #fff;
}

/* usage context */
.ys-lg-idn__ctx {
  position: relative;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border-radius: 0.75rem;
}

.ys-lg-ctx {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.6rem);
  transition: opacity 0.55s ease, visibility 0.55s ease, transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.ys-lg-ctx::after {
  content: attr(data-cap);
  position: absolute;
  right: 0.65rem;
  bottom: 0.55rem;
  z-index: 3;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(7, 20, 38, 0.1);
  color: var(--lg-navy);
  font-size: 0.68rem;
  font-weight: 700;
}

.ys-lg-idn[data-variant="horizontal"] .ys-lg-ctx--horizontal,
.ys-lg-idn[data-variant="vertical"] .ys-lg-ctx--vertical,
.ys-lg-idn[data-variant="symbol"] .ys-lg-ctx--symbol,
.ys-lg-idn[data-variant="mono"] .ys-lg-ctx--mono {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0.12s;
}

/* web header */
.ys-lg-ctx--horizontal {
  background: linear-gradient(160deg, #e9edf2, #dde3ea);
}

.ys-lg-web {
  position: absolute;
  inset: 0.9rem 1.1rem -0.6rem;
  display: grid;
  grid-template-rows: auto auto 1fr;
  overflow: hidden;
  border-radius: 0.55rem 0.55rem 0 0;
  background: #fff;
  box-shadow: 0 14px 30px rgba(7, 20, 38, 0.14);
}

.ys-lg-web__bar {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.4rem 0.55rem;
  background: #f1f3f6;
}

.ys-lg-web__bar i {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #d0d6de;
}

.ys-lg-web__bar b {
  width: 38%;
  height: 0.55rem;
  margin-inline-start: 0.6rem;
  border-radius: 999px;
  background: #fff;
}

.ys-lg-web__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.85rem;
  border-block-end: 1px solid #eef0f3;
}

.ys-lg-web__nav .ys-lg-lk {
  --gw: clamp(1.15rem, 3.4cqi, 1.55rem);
}

.ys-lg-web__links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.ys-lg-web__links i {
  width: clamp(1.2rem, 4cqi, 2.2rem);
  height: 0.36rem;
  border-radius: 999px;
  background: #d9dee5;
}

.ys-lg-web__links b {
  width: clamp(2.2rem, 7cqi, 3.6rem);
  height: 1.25rem;
  border-radius: 0.35rem;
  background: var(--m-olive);
}

.ys-lg-web__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 0.9rem;
  padding: 0.85rem;
  background: var(--m-cream);
}

.ys-lg-web__lines {
  display: grid;
  align-content: center;
  gap: 0.45rem;
}

.ys-lg-web__lines i {
  height: 0.5rem;
  border-radius: 999px;
  background: #d8cfbd;
}

.ys-lg-web__lines i:first-child {
  width: 90%;
  height: 0.85rem;
  background: var(--m-olive);
}

.ys-lg-web__lines i:nth-child(2) { width: 75%; }
.ys-lg-web__lines i:nth-child(3) { width: 55%; }

.ys-lg-web__lines b {
  width: 4.2rem;
  height: 1.2rem;
  margin-block-start: 0.3rem;
  border-radius: 0.35rem;
  background: var(--m-clay);
}

.ys-lg-web__arch {
  min-height: 4rem;
  border-radius: 999px 999px 0.4rem 0.4rem;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.35), transparent 45%),
    linear-gradient(160deg, #cfd6be, #8a976f);
}

/* door decal */
.ys-lg-ctx--vertical {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 248, 230, 0.7), transparent 60%),
    linear-gradient(#ebe4d7, #ddd2bf);
}

.ys-lg-ctx--vertical::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 9%;
  background: #cbbfa9;
}

.ys-lg-door {
  position: absolute;
  bottom: 9%;
  left: 50%;
  width: 30%;
  height: 86%;
  padding: 0.5rem 0.5rem 0;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, #26301f, #34412b 50%, #26301f);
  box-shadow: 0 12px 26px rgba(29, 34, 27, 0.3);
  transform: translateX(-50%);
}

.ys-lg-door__glass {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border-radius: 999px 999px 0 0;
  background:
    linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.14) 38%, transparent 46%),
    linear-gradient(160deg, #6d7f75, #2b3832 70%);
}

.ys-lg-door__glass .ys-lg-lk {
  --gw: clamp(1.3rem, 4.6cqi, 2.1rem);
  color: var(--m-cream);
}

.ys-lg-door__glass .ys-lg-glyph {
  --lg-a: var(--m-cream);
  --lg-b: var(--m-cream);
}

.ys-lg-door__handle {
  position: absolute;
  top: 58%;
  right: 12%;
  width: 0.32rem;
  height: 1.6rem;
  border-radius: 999px;
  background: #c9a86a;
}

/* small sizes */
.ys-lg-ctx--symbol {
  background: linear-gradient(135deg, #eef1f5, #e1e6ed);
}

.ys-lg-tab {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: min(15rem, 52%);
  padding: 0.5rem 0.7rem;
  border-radius: 0.55rem 0.55rem 0 0;
  background: #fff;
  box-shadow: 0 8px 18px rgba(7, 20, 38, 0.08);
  color: #2a3442;
  font-size: 0.8rem;
}

.ys-lg-tab::after {
  content: "";
  position: absolute;
  inset: 100% 0 auto;
  height: 1.1rem;
  background: #fff;
  box-shadow: 0 8px 18px rgba(7, 20, 38, 0.06);
}

.ys-lg-tab__fav .ys-lg-glyph {
  --gw: 13px;
}

.ys-lg-tab__t {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ys-lg-tab i {
  margin-inline-start: auto;
  color: #8a94a3;
}

.ys-lg-icons {
  position: absolute;
  top: 50%;
  right: 8%;
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 3cqi, 1.4rem);
  transform: translateY(-50%);
}

.ys-lg-appicon {
  display: grid;
  width: clamp(2.8rem, 9cqi, 4rem);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 24%;
  background: linear-gradient(150deg, #3d4b32, var(--m-olive));
  box-shadow: 0 10px 20px rgba(29, 34, 27, 0.25);
}

.ys-lg-appicon .ys-lg-glyph {
  --gw: 48%;
  --lg-a: var(--m-sand);
}

.ys-lg-avatar {
  display: grid;
  width: clamp(2.3rem, 7.4cqi, 3.3rem);
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--m-cream);
  box-shadow: 0 0 0 2px var(--m-clay), 0 8px 18px rgba(7, 20, 38, 0.12);
}

.ys-lg-avatar .ys-lg-glyph {
  --gw: 46%;
}

/* kraft stamp */
.ys-lg-ctx--mono {
  background:
    repeating-linear-gradient(112deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 7px),
    repeating-linear-gradient(28deg, rgba(90, 60, 30, 0.05) 0 1px, transparent 1px 5px),
    radial-gradient(circle at 30% 30%, #d4b48a, #bd9867);
}

.ys-lg-kraft {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.ys-lg-stamp {
  --lg-a: #2b2622;
  --lg-b: #2b2622;
  width: clamp(5.6rem, 20cqi, 8.4rem);
  height: auto;
  color: #2b2622;
  opacity: 0.84;
  mix-blend-mode: multiply;
  transform: rotate(-11deg);
}

.ys-lg-stamp circle {
  stroke: currentColor;
}

.ys-lg-stamp text {
  fill: currentColor;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 9.6px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

/* spec column */
.ys-lg-idn__spec {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-width: 0;
  padding: 1.05rem 1.15rem 1.15rem;
  border-inline-start: 1px solid var(--lg-line);
}

.ys-service-article .ys-lg-scene .ys-lg-idn__h,
.ys-service-article .ys-lg-scene .ys-lg-idn__dl dt {
  --lg-c: var(--lg-muted);
  --lg-fs: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ys-lg-seg {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
}

.ys-lg-seg button,
.ys-lg-apl__tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--lg-line);
  border-radius: 0.6rem;
  background: #fff;
  color: var(--lg-navy);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
  transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.ys-lg-seg button i,
.ys-lg-apl__tabs button i {
  color: var(--lg-muted);
  transition: color 0.25s ease;
}

.ys-lg-seg button:hover,
.ys-lg-apl__tabs button:hover {
  border-color: rgba(230, 122, 46, 0.45);
}

.ys-lg-seg button[aria-pressed="true"] {
  border-color: var(--lg-orange);
  background: rgba(230, 122, 46, 0.08);
  box-shadow: inset 0 0 0 1px var(--lg-orange);
  color: var(--lg-orange-d);
}

.ys-lg-seg button[aria-pressed="true"] i {
  color: var(--lg-orange);
}

.ys-service-article .ys-lg-scene .ys-lg-idn__use {
  --lg-c: #3c4d64;
  --lg-fs: 0.9rem;
  --lg-lh: 1.55;
  min-height: 2.8rem;
}

.ys-lg-idn__use span {
  display: none;
}

.ys-lg-idn[data-variant="horizontal"] .ys-lg-idn__use [data-v="horizontal"],
.ys-lg-idn[data-variant="vertical"] .ys-lg-idn__use [data-v="vertical"],
.ys-lg-idn[data-variant="symbol"] .ys-lg-idn__use [data-v="symbol"],
.ys-lg-idn[data-variant="mono"] .ys-lg-idn__use [data-v="mono"] {
  display: block;
  animation: ys-lg-in 0.45s ease both;
}

.ys-service-article .ys-lg-scene .ys-lg-idn__dl {
  display: grid;
  gap: 0.5rem;
  padding-block-start: 0.85rem;
  border-block-start: 1px solid var(--lg-line);
}

.ys-service-article .ys-lg-scene .ys-lg-idn__dl dt + dd {
  margin-block-start: -0.1rem;
}

.ys-service-article .ys-lg-scene .ys-lg-idn__dl dd + dt {
  margin-block-start: 0.35rem;
}

.ys-service-article .ys-lg-scene .ys-lg-ff {
  --lg-c: var(--lg-ink);
  --lg-fs: 0.86rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.ys-lg-ff b {
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 0.5rem;
  background: #f4f1ea;
  color: var(--m-olive);
  font-size: 1.1rem;
}

.ys-lg-ff--serif b {
  font-family: var(--lg-serif);
  font-weight: 400;
}

.ys-lg-ff--sans b {
  font-weight: 800;
}

.ys-service-article .ys-lg-scene .ys-lg-pal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.ys-lg-pal span {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 0.5rem;
  color: var(--lg-ink);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
}

.ys-lg-pal i {
  grid-row: span 2;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 0.42rem;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.ys-lg-pal em {
  color: var(--lg-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 600;
}

@container lgscene (max-width: 44rem) {
  .ys-lg-idn__body {
    grid-template-columns: minmax(0, 1fr);
  }

  .ys-lg-idn__spec {
    border-block-start: 1px solid var(--lg-line);
    border-inline-start: 0;
  }

  .ys-lg-seg {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@container lgscene (max-width: 30rem) {
  .ys-lg-seg {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ys-lg-idn__stage {
    padding: 0.7rem;
  }

  .ys-lg-idn__board {
    aspect-ratio: 4 / 3;
  }

  .ys-lg-idn__v--mono {
    flex-direction: column;
    gap: 0.6rem;
    padding-block-start: 1.4rem;
  }

  .ys-lg-idn__v--symbol {
    padding-block-start: 1rem;
  }

  .ys-lg-idn__ctx {
    aspect-ratio: 16 / 9;
  }

  .ys-lg-tab {
    width: 62%;
  }

  .ys-lg-icons {
    top: auto;
    right: 50%;
    bottom: 1.6rem;
    transform: translateX(50%);
  }

  .ys-lg-door {
    width: 40%;
  }
}

/* ---------- Scene B: application mockups ---------- */
.ys-lg-apl__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.8rem 1rem;
  border-block-end: 1px solid var(--lg-line);
}

.ys-lg-apl__tabs button {
  min-height: 2.3rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.84rem;
}

.ys-lg-apl__tabs button[aria-pressed="true"] {
  border-color: var(--lg-navy);
  background: var(--lg-navy);
  color: #fff;
}

.ys-lg-apl__tabs button[aria-pressed="true"] i {
  color: var(--lg-orange);
}

.ys-lg-apl__stage {
  container: lgstage / inline-size;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 16% 0%, rgba(255, 255, 255, 0.75), transparent 55%),
    linear-gradient(160deg, #ebe6dc, #d7cebe);
}

.ys-lg-mock {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(2%) scale(0.98);
  transition: opacity 0.55s ease, visibility 0.55s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.ys-lg-apl[data-app="card"] .ys-lg-mock--card,
.ys-lg-apl[data-app="letter"] .ys-lg-mock--letter,
.ys-lg-apl[data-app="folder"] .ys-lg-mock--folder,
.ys-lg-apl[data-app="social"] .ys-lg-mock--social,
.ys-lg-apl[data-app="sign"] .ys-lg-mock--sign,
.ys-lg-apl[data-app="label"] .ys-lg-mock--label {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.ys-lg-mock > * {
  position: absolute;
}

/* card */
.ys-lg-card {
  width: 40cqi;
  aspect-ratio: 85 / 55;
  border-radius: 1.1cqi;
  box-shadow: 1.6cqi 2.4cqi 3.6cqi rgba(52, 40, 24, 0.26), 0.2cqi 0.3cqi 0.6cqi rgba(52, 40, 24, 0.22);
}

.ys-lg-card--back {
  top: 31%;
  left: 51%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr;
  padding: 2.6cqi 3cqi;
  background: var(--m-cream);
  transform: rotate(7deg);
}

.ys-lg-card--back > .ys-lg-lk {
  --gw: 3.4cqi;
  grid-column: 1 / -1;
}

.ys-lg-card__who {
  display: grid;
  align-self: end;
  gap: 0.4cqi;
}

.ys-lg-card__who b {
  color: var(--m-olive);
  font-family: var(--lg-serif);
  font-size: 2.05cqi;
  font-weight: 400;
}

.ys-lg-card__who em {
  color: #7a6d58;
  font-size: 1.25cqi;
  font-style: normal;
}

.ys-lg-card__lines {
  display: grid;
  align-self: end;
  justify-items: end;
  gap: 0.8cqi;
  width: 11cqi;
}

.ys-lg-card__lines i {
  width: 100%;
  height: 0.6cqi;
  border-radius: 1cqi;
  background: #d6ccb8;
}

.ys-lg-card__lines i:nth-child(2) { width: 75%; }
.ys-lg-card__lines i:nth-child(3) { width: 88%; }

.ys-lg-card--front {
  top: 12%;
  left: 8%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(150deg, #3d4b32, #2a3422);
  transform: rotate(-8deg);
}

.ys-lg-card--front::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.13), transparent 42%);
}

.ys-lg-card--front .ys-lg-glyph {
  --gw: 7.4cqi;
  --lg-a: var(--m-sand);
}

/* letterhead */
.ys-lg-env {
  top: 38%;
  left: 51%;
  display: grid;
  width: 40cqi;
  aspect-ratio: 220 / 110;
  align-items: end;
  justify-items: end;
  overflow: hidden;
  padding: 2.2cqi 2.6cqi;
  border-radius: 0.5cqi;
  background: var(--m-sand);
  box-shadow: 1.4cqi 2cqi 3cqi rgba(52, 40, 24, 0.24);
  transform: rotate(6deg);
}

.ys-lg-env::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(120, 95, 60, 0.12);
  clip-path: polygon(0 0, 100% 0, 50% 58%);
}

.ys-lg-env .ys-lg-glyph {
  --gw: 3.4cqi;
  position: relative;
}

.ys-lg-a4 {
  top: 6%;
  left: 27%;
  display: grid;
  height: 88%;
  aspect-ratio: 210 / 297;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  padding: 3cqi 2.8cqi 2.4cqi;
  border-radius: 0.3cqi;
  background: #fff;
  box-shadow: 1.6cqi 2.4cqi 3.6cqi rgba(52, 40, 24, 0.24), 0.2cqi 0.3cqi 0.6cqi rgba(52, 40, 24, 0.18);
  transform: rotate(-3deg);
}

.ys-lg-a4::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1cqi;
  background: var(--m-olive);
}

.ys-lg-a4__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block-end: 1.4cqi;
  border-block-end: 0.25cqi solid var(--m-clay);
}

.ys-lg-a4__head .ys-lg-lk {
  --gw: 2.5cqi;
}

.ys-lg-a4__head > i {
  width: 6cqi;
  height: 0.55cqi;
  border-radius: 1cqi;
  background: #dcd6ca;
}

.ys-lg-a4__body {
  display: grid;
  align-content: start;
  gap: 1cqi;
  padding-block-start: 2.6cqi;
}

.ys-lg-a4__body i,
.ys-lg-a4__foot i {
  height: 0.5cqi;
  border-radius: 1cqi;
  background: #e3e6eb;
}

.ys-lg-a4__body i:first-child { width: 35%; margin-block-end: 1.2cqi; }
.ys-lg-a4__body i:nth-child(3) { width: 94%; }
.ys-lg-a4__body i:nth-child(5) { width: 86%; }
.ys-lg-a4__body i:nth-child(7) { width: 58%; }

.ys-lg-a4__foot {
  display: flex;
  gap: 2cqi;
  padding-block: 1cqi 0.8cqi;
  border-block-start: 1px solid #eee9df;
}

.ys-lg-a4__foot i {
  width: 30%;
}

/* folder */
.ys-lg-fold__sheet {
  top: 6%;
  left: 43%;
  display: grid;
  height: 74%;
  aspect-ratio: 210 / 297;
  align-content: start;
  gap: 1cqi;
  padding: 2.4cqi;
  background: #fff;
  box-shadow: 1cqi 1.6cqi 2.6cqi rgba(52, 40, 24, 0.2);
  transform: rotate(7deg);
}

.ys-lg-fold__sheet .ys-lg-lk {
  --gw: 2.1cqi;
  margin-block-end: 1.2cqi;
}

.ys-lg-fold__sheet i {
  height: 0.5cqi;
  border-radius: 1cqi;
  background: #e3e6eb;
}

.ys-lg-fold {
  top: 9%;
  left: 27%;
  height: 82%;
  aspect-ratio: 230 / 310;
  overflow: hidden;
  border-radius: 0.6cqi 1.4cqi 1.4cqi 0.6cqi;
  background: linear-gradient(150deg, #3d4a32, #283220);
  box-shadow: 1.8cqi 2.6cqi 4cqi rgba(52, 40, 24, 0.3), 0.2cqi 0.3cqi 0.6cqi rgba(52, 40, 24, 0.22);
  transform: rotate(-4deg);
}

.ys-lg-fold__emb {
  position: absolute;
  top: 26%;
  left: 50%;
  transform: translateX(-50%);
}

.ys-lg-fold__emb .ys-lg-glyph {
  --gw: 9cqi;
  --lg-a: #34412b;
  --lg-b: #34412b;
  filter: drop-shadow(-0.16cqi -0.16cqi 0 rgba(255, 255, 255, 0.16)) drop-shadow(0.22cqi 0.26cqi 0 rgba(0, 0, 0, 0.35));
}

.ys-lg-fold__pocket {
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background: linear-gradient(#2e3925, #232b1b);
  clip-path: polygon(0 34%, 100% 0, 100% 100%, 0 100%);
}

/* social profile */
.ys-lg-phone {
  top: 5%;
  left: 50%;
  height: 90%;
  aspect-ratio: 9 / 19;
  padding: 0.85cqi;
  border-radius: 3.4cqi;
  background: #0f1216;
  box-shadow: 1.6cqi 2.6cqi 4cqi rgba(30, 26, 20, 0.32);
  transform: translateX(-50%);
}

.ys-lg-phone__scr {
  display: grid;
  width: 100%;
  height: 100%;
  align-content: start;
  gap: 1.3cqi;
  overflow: hidden;
  padding: 3cqi 1.5cqi 1.5cqi;
  border-radius: 2.6cqi;
  background: #fff;
}

.ys-lg-prof {
  display: flex;
  align-items: center;
  gap: 1.3cqi;
}

.ys-lg-prof__ava {
  display: grid;
  width: 5.6cqi;
  flex: 0 0 auto;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--m-olive);
  box-shadow: 0 0 0 0.35cqi #fff, 0 0 0 0.6cqi var(--m-clay);
}

.ys-lg-prof__ava .ys-lg-glyph {
  --gw: 2.5cqi;
  --lg-a: var(--m-sand);
}

.ys-lg-prof__id {
  display: grid;
  min-width: 0;
  gap: 0.3cqi;
}

.ys-lg-prof__id b {
  color: var(--lg-ink);
  font-size: 1.45cqi;
  font-weight: 800;
  white-space: nowrap;
}

.ys-lg-prof__id em {
  overflow: hidden;
  color: var(--lg-muted);
  font-size: 1.05cqi;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ys-lg-prof__btns {
  display: flex;
  gap: 0.7cqi;
}

.ys-lg-prof__btns i {
  flex: 1;
  height: 2.3cqi;
  border-radius: 0.6cqi;
  background: #eef0f3;
}

.ys-lg-prof__btns i:first-child {
  background: var(--m-olive);
}

.ys-lg-prof__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35cqi;
}

.ys-lg-prof__grid i {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  background: var(--m-sand);
}

.ys-lg-prof__grid .ys-lg-glyph {
  --gw: 2.6cqi;
}

.ys-lg-prof__grid .t1 { background: var(--m-olive); }
.ys-lg-prof__grid .t1 .ys-lg-glyph { --lg-a: var(--m-sand); }
.ys-lg-prof__grid .t2 { background: radial-gradient(circle at 50% 100%, transparent 34%, var(--m-clay) 35% 48%, transparent 49%) 0 0 / 50% 50%, var(--m-sand); }
.ys-lg-prof__grid .t3 { background: linear-gradient(160deg, #cfd6be, #8a976f); }
.ys-lg-prof__grid .t4 { background: repeating-linear-gradient(0deg, #d8cfbd 0 2px, transparent 2px 8px) center / 70% 60% no-repeat, var(--m-cream); }
.ys-lg-prof__grid .t5 { background: var(--m-night); }
.ys-lg-prof__grid .t5 .ys-lg-glyph { --lg-a: var(--m-sand); }
.ys-lg-prof__grid .t6 { background: var(--m-clay); }
.ys-lg-prof__grid .t7 { background: radial-gradient(circle at 50% 42%, var(--m-cream) 0 22%, transparent 23%), var(--m-olive); }
.ys-lg-prof__grid .t8 { background: linear-gradient(135deg, var(--m-sand) 50%, #d9cdb4 50%); }
.ys-lg-prof__grid .t9 { background: var(--m-cream); }

.ys-lg-bubble {
  top: 20%;
  right: 15%;
  display: grid;
  width: 10.5cqi;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--m-olive);
  box-shadow: 0 0 0 0.6cqi #fff, 0 0 0 1cqi var(--m-clay), 1.4cqi 2cqi 3cqi rgba(30, 26, 20, 0.26);
}

.ys-lg-bubble .ys-lg-glyph {
  --gw: 4.6cqi;
  --lg-a: var(--m-sand);
}

/* storefront sign */
.ys-lg-shop {
  inset: 0;
  background:
    radial-gradient(ellipse 16cqi 10cqi at 31% 7%, rgba(255, 244, 214, 0.75), transparent 70%),
    radial-gradient(ellipse 16cqi 10cqi at 69% 7%, rgba(255, 244, 214, 0.75), transparent 70%),
    repeating-linear-gradient(0deg, rgba(120, 100, 70, 0.05) 0 1px, transparent 1px 3.2cqi),
    linear-gradient(#efe8db, #e0d6c3);
}

.ys-lg-shop__band {
  position: absolute;
  top: 10%;
  right: 14%;
  left: 14%;
  display: grid;
  height: 21%;
  place-items: center;
  border-radius: 0.4cqi;
  background: linear-gradient(#3b4831, #2b3523);
  box-shadow: 0 1.6cqi 2.4cqi rgba(30, 26, 20, 0.28);
}

.ys-lg-shop__band .ys-lg-lk {
  --gw: 5cqi;
  color: var(--m-cream);
}

.ys-lg-shop__band .ys-lg-glyph {
  --lg-a: var(--m-cream);
}

.ys-lg-shop__blade {
  position: absolute;
  top: 38%;
  right: 3.5%;
  display: grid;
  width: 9cqi;
  aspect-ratio: 1;
  place-items: center;
  border: 0.5cqi solid #2b3523;
  border-radius: 50%;
  background: var(--m-clay);
  box-shadow: 0.8cqi 1.4cqi 2cqi rgba(30, 26, 20, 0.25);
}

.ys-lg-shop__blade::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 0.45cqi;
  height: 2.6cqi;
  background: #2b3523;
}

.ys-lg-shop__blade .ys-lg-glyph {
  --gw: 3.8cqi;
  --lg-a: var(--m-cream);
  --lg-b: var(--m-cream);
}

.ys-lg-shop__row {
  position: absolute;
  right: 16%;
  bottom: 8%;
  left: 16%;
  display: grid;
  height: 50%;
  grid-template-columns: 1fr 0.85fr 1fr;
  gap: 4cqi;
  align-items: end;
}

.ys-lg-shop__row i {
  height: 88%;
  border: 0.7cqi solid #2b3523;
  border-block-end: 0;
  border-radius: 999px 999px 0 0;
  background:
    linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.16) 40%, transparent 48%),
    linear-gradient(170deg, #6d7f75, #25312b 70%);
}

.ys-lg-shop__row .d {
  height: 100%;
  background:
    linear-gradient(90deg, transparent 47%, rgba(0, 0, 0, 0.25) 47% 53%, transparent 53%),
    linear-gradient(170deg, #55665c, #1f2925 70%);
}

.ys-lg-shop__step {
  position: absolute;
  inset: auto 0 0;
  height: 8%;
  background: linear-gradient(#cdc2ad, #bfb39c);
}

/* product label */
.ys-lg-bottle {
  bottom: 7%;
  left: 31%;
  display: grid;
  width: 14cqi;
  height: 84%;
  grid-template-rows: 6% 17% 1fr;
  justify-items: center;
}

.ys-lg-bottle::after {
  content: "";
  position: absolute;
  bottom: -2.2cqi;
  left: 50%;
  width: 22cqi;
  height: 3cqi;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(40, 30, 18, 0.35), transparent);
  transform: translateX(-46%);
}

.ys-lg-bottle__cap {
  width: 42%;
  border-radius: 0.5cqi 0.5cqi 0.2cqi 0.2cqi;
  background: linear-gradient(90deg, #14180f, #3a4430 50%, #14180f);
}

.ys-lg-bottle__neck {
  width: 34%;
  background: linear-gradient(90deg, #22291a, #4d5d39 45%, #22291a);
}

.ys-lg-bottle__body {
  position: relative;
  display: grid;
  width: 100%;
  place-items: center;
  border-radius: 5cqi 5cqi 1.4cqi 1.4cqi;
  background: linear-gradient(90deg, #232c19 0%, #4c5e37 30%, #3a4a2b 56%, #1d2515 100%);
  box-shadow: 1.4cqi 2cqi 3cqi rgba(30, 26, 20, 0.25);
}

.ys-lg-bottle__body::after {
  content: "";
  position: absolute;
  top: 12%;
  bottom: 8%;
  left: 18%;
  width: 6%;
  border-radius: 1cqi;
  background: linear-gradient(rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.04));
}

.ys-lg-bottle__label {
  display: grid;
  width: 90%;
  justify-items: center;
  gap: 1.1cqi;
  margin-block-start: 12%;
  padding: 2.2cqi 0.8cqi 1.8cqi;
  background: var(--m-cream);
  box-shadow: inset 0 0 0 0.3cqi var(--m-cream), inset 0 0 0 0.45cqi var(--m-clay);
}

.ys-lg-bottle__label .ys-lg-lk {
  --gw: 3.2cqi;
}

.ys-lg-bottle__label em,
.ys-lg-box__front em {
  color: var(--m-olive);
  font-size: 0.86cqi;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ys-lg-box {
  bottom: 7%;
  left: 52%;
  width: 21cqi;
  height: 19cqi;
}

.ys-lg-box__top {
  position: absolute;
  top: -1.2cqi;
  right: -0.8cqi;
  left: -0.8cqi;
  z-index: 1;
  height: 3.4cqi;
  border-radius: 0.3cqi;
  background: linear-gradient(#dcc099, #c9a77a);
  box-shadow: 0 0.5cqi 0.8cqi rgba(60, 40, 18, 0.25);
}

.ys-lg-box__front {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1.2cqi;
  background:
    repeating-linear-gradient(112deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 7px),
    linear-gradient(160deg, #cfae82, #b8935f);
  box-shadow: 1.4cqi 2cqi 3cqi rgba(30, 26, 20, 0.25);
}

.ys-lg-box__band {
  position: absolute;
  inset: 12% 0 auto;
  height: 18%;
  background: var(--m-clay);
}

.ys-lg-box__front .ys-lg-glyph {
  --gw: 4.4cqi;
  --lg-a: #2b2622;
  --lg-b: #2b2622;
  margin-block-start: 3cqi;
  mix-blend-mode: multiply;
}

.ys-lg-box__front em {
  color: #2b2622;
}

/* caption + scope note */
.ys-service-article .ys-lg-scene .ys-lg-apl__cap {
  --lg-c: #24364f;
  --lg-fs: 0.92rem;
  --lg-lh: 1.5;
  padding: 0.85rem 1.05rem 0;
  font-weight: 600;
}

.ys-lg-apl__cap span {
  display: none;
}

.ys-lg-apl[data-app="card"] .ys-lg-apl__cap [data-a="card"],
.ys-lg-apl[data-app="letter"] .ys-lg-apl__cap [data-a="letter"],
.ys-lg-apl[data-app="folder"] .ys-lg-apl__cap [data-a="folder"],
.ys-lg-apl[data-app="social"] .ys-lg-apl__cap [data-a="social"],
.ys-lg-apl[data-app="sign"] .ys-lg-apl__cap [data-a="sign"],
.ys-lg-apl[data-app="label"] .ys-lg-apl__cap [data-a="label"] {
  display: block;
  animation: ys-lg-in 0.45s ease both;
}

.ys-service-article .ys-lg-scene .ys-lg-apl__note {
  --lg-c: var(--lg-muted);
  --lg-fs: 0.82rem;
  --lg-lh: 1.5;
  --lg-m: 0.7rem 1.05rem 1.05rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.6rem;
  background: var(--lg-soft);
}

.ys-lg-apl__note i {
  color: var(--lg-orange);
  line-height: 1.5;
}

@keyframes ys-lg-in {
  from { opacity: 0; transform: translateY(0.25rem); }
  to { opacity: 1; transform: none; }
}

@container lgscene (max-width: 34rem) {
  .ys-lg-apl__tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0.7rem;
  }

  .ys-lg-apl__tabs button {
    gap: 0.3rem;
    padding: 0.4rem 0.35rem;
    font-size: 0.78rem;
  }

  .ys-lg-apl__stage {
    aspect-ratio: 16 / 11;
  }
}

/* ---------- Sidebar ---------- */
/* Sticky only while the whole card fits the viewport (ys-logo-design.js measures it and adds .is-sticky); otherwise,
   and without JS, it scrolls with the page instead of staying pinned with its lower part off-screen. */
.ys-lg .ys-lg-side {
  position: static;
}

@media (min-width: 1025px) {
  .ys-lg .ys-lg-side.is-sticky {
    position: sticky;
    top: var(--lg-side-top, 6.5rem);
  }
}

.ys-lg-side .ys-sd-summary__head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.ys-lg-side__ico {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 0.75rem;
  background: linear-gradient(140deg, rgba(230, 122, 46, 0.16), rgba(7, 20, 38, 0.06));
  color: var(--lg-orange-d);
  font-size: 1.05rem;
}

.ys-lg-side .ys-sd-summary__head p:last-child {
  margin-block-end: 0;
}

/* ---------- Scope / process / delivery / references / final ---------- */
.ys-lg-caps .ys-sd-capability {
  position: relative;
  grid-column: span 4;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.2rem;
  padding: 1.5rem 1.55rem 1.6rem;
}

.ys-lg-caps .ys-sd-capability > span {
  position: absolute;
  top: 1.35rem;
  right: 1.45rem;
  color: rgba(255, 255, 255, 0.22);
  font-family: var(--lg-serif);
  font-size: 1.7rem;
  line-height: 1;
}

.ys-lg-caps .ys-lg-caps__ico {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  margin-block-end: 0.95rem;
  place-items: center;
  border: 1px solid rgba(230, 122, 46, 0.3);
  border-radius: 0.7rem;
  background: rgba(230, 122, 46, 0.1);
  color: #f3a46b;
  font-size: 1.05rem;
}

.ys-lg-flow {
  gap: 0.8rem;
}

.ys-lg-flow li {
  padding: 1.2rem 1.15rem 1.25rem;
  border: 1px solid var(--lg-line);
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 10px 26px rgba(7, 20, 38, 0.04);
}

.ys-lg-flow li:not(:last-child)::before {
  content: "";
  top: 1.85rem;
  right: -0.62rem;
  left: auto;
  z-index: 1;
  width: 0.45rem;
  height: 0.45rem;
  border: solid rgba(16, 33, 58, 0.3);
  border-width: 1.5px 1.5px 0 0;
  background: none;
  transform: rotate(45deg);
}

.ys-lg-flow li > span {
  width: auto;
  height: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: none;
}

.ys-lg-flow .ys-lg-flow__no {
  display: block;
  margin-block-end: 0.65rem;
  color: transparent;
  font-family: var(--lg-serif);
  font-size: 2rem;
  line-height: 1;
  -webkit-text-stroke: 1px var(--lg-orange);
}

.ys-lg-flow h3 {
  min-height: 0;
}

.ys-lg-delivery {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border: 1px solid var(--lg-line);
  border-radius: 1.1rem;
  background: #fff;
  box-shadow: 0 16px 40px rgba(7, 20, 38, 0.05);
}

.ys-lg-delivery .ys-sd-deliverables__grid article > span {
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 0.65rem;
  background: rgba(230, 122, 46, 0.1);
  color: var(--lg-orange-d);
  font-size: 0.95rem;
}

.ys-lg-refcta {
  grid-template-columns: auto minmax(0, 7fr) minmax(14rem, 3fr);
}

.ys-lg-refcta__ico {
  display: grid;
  width: 3.4rem;
  height: 3.4rem;
  place-items: center;
  border-radius: 0.9rem;
  background: linear-gradient(140deg, var(--lg-navy), #1d3a66);
  color: var(--lg-orange);
  font-size: 1.3rem;
}

.ys-lg-final {
  background:
    radial-gradient(circle at 86% 26%, rgba(230, 122, 46, 0.14), transparent 26%),
    radial-gradient(circle at 6% 86%, rgba(47, 111, 214, 0.1), transparent 28%),
    linear-gradient(145deg, var(--ys-sd-navy-3), var(--ys-sd-navy));
}

.ys-lg-final .ys-sd-final__layout {
  grid-template-columns: minmax(0, 1.3fr) minmax(17rem, 0.7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
}

.ys-lg-final .ys-sd-final__layout > div:first-child > p:last-of-type {
  max-width: 47rem;
  margin: 0;
  color: rgba(244, 247, 251, 0.7);
}

.ys-lg-final .ys-sd-actions {
  margin-block-start: 1.6rem;
}

.ys-lg-final__brief {
  padding: 1.3rem 1.35rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1.2px) 0 0 / 14px 14px,
    rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ys-lg-final .ys-lg-final__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
}

.ys-lg-final__head i {
  color: var(--lg-orange);
}

.ys-lg-final__brief ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ys-lg-final__brief li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-block-start: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(244, 247, 251, 0.82);
  font-size: 0.9rem;
}

.ys-lg-final__brief b {
  display: grid;
  width: 1.85rem;
  height: 1.85rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(230, 122, 46, 0.45);
  border-radius: 0.3rem;
  color: var(--lg-orange);
  font-size: 0.72rem;
  font-weight: 800;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .ys-lg .ys-sd-hero__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  }

  .ys-lg-studio {
    height: 25.75rem;
  }

  .ys-lg-caps .ys-sd-capability {
    grid-column: span 6;
  }
}

@media (max-width: 1023.98px) {
  .ys-lg .ys-sd-hero__grid {
    align-items: stretch;
    gap: 1.5rem;
  }

  .ys-lg .ys-sd-hero__visual {
    display: flex;
  }

  .ys-lg-studio {
    width: 100%;
    height: 30.5rem;
  }

  .ys-lg-flow li:nth-child(3)::before {
    display: none;
  }

  .ys-lg-final .ys-sd-final__layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 767.98px) {
  .ys-lg .ys-sd-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .ys-lg-studio {
    height: 18.5rem;
  }

  .ys-lg-caps .ys-sd-capability {
    grid-column: span 12;
  }

  .ys-lg-refcta {
    grid-template-columns: minmax(0, 1fr);
  }

  .ys-lg-article.is-grouped > .ys-lg-sec + .ys-lg-sec {
    margin-block-start: 2.2rem;
  }

  .ys-service-article .ys-lg-sec--scope > ul,
  .ys-service-article .ys-lg-sec--identity > ul,
  .ys-service-article .ys-lg-sec--deliver > ul {
    grid-template-columns: minmax(0, 1fr);
  }

  .ys-service-article .ys-lg-sec--variants > ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ys-lg-sec--process .ys-lg-sub {
    grid-template-columns: 5.4rem minmax(0, 1fr);
    gap: 0.95rem;
  }

  .ys-lg-trio {
    gap: 0.5rem;
  }

  .ys-lg-trio__t {
    aspect-ratio: 1;
  }

  .ys-lg-trio__t::after {
    left: 0.5rem;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
  }

  .ys-lg-trio__t .ys-lg-lk {
    --gw: 1.05rem;
  }

  .ys-lg-flow li::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ys-lg-studio *,
  .ys-lg-scene *,
  .ys-lg-studio *::before,
  .ys-lg-studio *::after,
  .ys-lg-scene *::before,
  .ys-lg-scene *::after {
    animation: none !important;
    transition: none !important;
  }

  .ys-lg-cursor {
    display: none;
  }
}
