.ys-services {
  --ys-paper: #f4f1e9;
  --ys-ink: #2b3027;
  --ys-moss: #3b4938;
  --ys-brass: #a78d58;
  color: var(--ys-ink);
  padding: 112px 0 116px;
  background: #fbfaf6;
}
.ys-inner { width: calc(100% - 96px); max-width: 1240px; margin-inline: auto; }
.ys-heading { margin-bottom: 36px; }
.ys-kicker.ye-section-label { background: var(--ys-moss); }
.ys-kicker { display: inline-flex; font-size: 10px; letter-spacing: .04em; margin-bottom: 0; color: #fffdf6; }
.ys-service-book { position: relative; }
.ys-panel { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; }
.ys-visual { grid-area: 1 / 1 / 2 / 10; margin: 0; min-width: 0; }
.ys-photo-frame { position: relative; height: 638px; overflow: hidden; background: #e3dfd3; }
.ys-photo-frame::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, #1f281e50, transparent 30%); }
.ys-photo { position: relative; z-index: 1; height: 100%; width: 100%; object-fit: cover; object-position: 42% center; }
.ys-photo-underlay { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 42% center; opacity: .34; pointer-events: none; }
.ys-photo-frame[data-image-state='error'] .ys-photo-underlay { visibility: hidden; }
.ys-photo-index { display: flex; align-items: center; gap: 16px; position: absolute; z-index: 2; bottom: 30px; left: 32px; color: #fffdf4; font-size: 34px; line-height: 1; }
.ys-photo-index > span { font-size: 8px; line-height: 1.8; letter-spacing: .04em; border-left: 1px solid #fff8; padding-left: 16px; }
.ys-caption { display: flex; align-items: center; gap: 24px; max-width: 72%; padding: 19px 0 0; font-size: 11px; color: #7a7b70; }
.ys-caption-rule { flex: 1; min-width: 30px; height: 1px; background: #c8c8ba; }
.ys-notebook { grid-area: 1 / 8 / 2 / 13; align-self: start; position: relative; z-index: 2; background: var(--ys-paper); margin: 28px 0 60px; padding: 116px 42px 38px; min-width: 0; box-shadow: -10px 14px 36px #28312312; border: 1px solid #e0ddcf; }
.ys-notebook::before { content: ''; position: absolute; inset: 12px; border: 1px solid #b2ac972e; pointer-events: none; }
.ys-note-fold { position: absolute; right: -1px; top: -1px; width: 24px; height: 24px; background: linear-gradient(45deg, #ddd7c7 49%, #fbfaf6 50%); }
.ys-tabs { position: absolute; z-index: 3; top: 56px; right: 42px; width: calc(41.6667% - 84px); display: grid; grid-template-columns: 1fr 1fr 1.3fr; border-bottom: 1px solid #cbc7b9; }
.ys-tab { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 0 4px 13px 0; position: relative; border: 0; background: transparent; text-align: left; color: #858779; font-size: 11px; line-height: 1.6; white-space: nowrap; }
.ys-tab-number { font-size: 8px; letter-spacing: 1px; }
.ys-tab::after { content: ''; position: absolute; left: 0; right: 12px; bottom: -1px; height: 2px; background: var(--ys-moss); transform: scaleX(0); transform-origin: left; transition: transform .28s ease; }
.ys-tab[aria-selected='true'] { color: var(--ys-ink); }
.ys-tab[aria-selected='true']::after { transform: scaleX(1); }
.ys-tab:hover { color: var(--ys-ink); opacity: 1; }
.ys-note-label { display: block; font-size: 8px; letter-spacing: .04em; color: #92917f; margin-bottom: 16px; }
.ys-notebook h3 { font-size: 27px; line-height: 1.4; }
.ys-description { font-size: 13px; line-height: 1.95; margin-top: 19px; color: #737767; }
.ys-points { display: flex; flex-wrap: wrap; gap: 5px 13px; list-style: none; padding: 0; margin: 18px 0 0; font-size: 10px; color: #737767; }
.ys-points li::before { content: '·'; padding-right: 5px; color: var(--ys-brass); }
.ys-detail-link { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 55px; margin-top: 32px; padding: 10px 12px 10px 19px; background: var(--ys-moss); color: #f7f4eb; font-size: 12px; border: 1px solid var(--ys-moss); border-radius: 11px; box-shadow: 0 4px 12px #2831230c; transition: background-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.ys-detail-link:hover, .ys-detail-link:focus-visible { background: #4c5a44; box-shadow: 0 7px 18px #2831231a; transform: translateY(-2px); opacity: 1; }
.ys-detail-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border: 1px solid #dce5ce55; border-radius: 50%; background: #ffffff0a; }
.ys-arrow { width: 20px; height: 20px; flex: none; transition: transform .25s ease; }
.ys-detail-link:hover .ys-arrow, .ys-detail-link:focus-visible .ys-arrow { transform: translate(2px, -2px); }
.ys-image-error { position: absolute; z-index: 2; left: 32px; bottom: 104px; max-width: calc(75% - 64px); margin: 0; color: #5d6553; font-size: 13px; }
/* The first entrance and every tab change share the same photo reveal. */
.ys-panel.ys-awaiting .ys-photo { clip-path: inset(0 100% 0 0); }
.ys-panel.ys-entering .ys-photo { animation: ys-photo-reveal 1.1s cubic-bezier(.22,.61,.36,1) both; }
.ys-panel.ys-entering .ys-notebook { animation: ys-note-reveal .7s cubic-bezier(.22,.61,.36,1) both; }
@keyframes ys-photo-reveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes ys-note-reveal { from { opacity: .65; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1050px) {
  .ys-inner { width: calc(100% - 64px); }
  .ys-notebook { grid-column: 7 / 13; padding-inline: 32px; }
  .ys-tabs { right: 32px; width: calc(50% - 64px); }
  .ys-photo-frame { height: 610px; }
  .ys-caption { max-width: 60%; font-size: 10px; gap: 15px; }
}
@media (max-width: 780px) {
  .ys-services { padding: 76px 0 84px; }
  .ys-inner { width: calc(100% - 48px); }
  .ys-heading { gap: 28px; margin-bottom: 34px; }
  .ys-notebook { padding-inline: 24px; padding-bottom: 29px; }
  .ys-tabs { right: 24px; width: calc(50% - 48px); }
  .ys-tab { font-size: 10px; }
  .ys-notebook h3 { font-size: 23px; }
  .ys-description { font-size: 12px; }
  .ys-photo-frame { height: 640px; }
  .ys-caption { max-width: 60%; font-size: 9px; }
}
@media (max-width: 600px) {
  .ys-inner { width: calc(100% - 40px); }
  .ys-services { padding: 65px 0 70px; }
  .ys-heading { display: block; margin-bottom: 28px; }
  .ys-kicker { font-size: 9px; margin-bottom: 0; letter-spacing: .04em; }
  .ys-panel { display: flex; flex-direction: column; align-items: stretch; }
  .ys-visual { width: 100%; }
  .ys-photo-frame { height: 360px; }
  .ys-photo, .ys-photo-underlay { object-position: 44% center; }
  .ys-photo-index { top: 22px; bottom: auto; left: 21px; font-size: 28px; text-shadow: 0 1px 8px #0004; }
  .ys-photo-index > span { font-size: 7px; }
  .ys-caption { display: none; }
  .ys-notebook { align-self: stretch; margin: -70px 0 0 24px; padding: 99px 24px 27px; min-height: 0; }
  .ys-notebook::before { inset: 9px; }
  .ys-tabs { top: 315px; right: 24px; width: calc(100% - 72px); }
  .ys-tab { font-size: 10px; padding-bottom: 11px; gap: 3px; }
  .ys-tab-number { font-size: 8px; }
  .ys-note-label { font-size: 7px; letter-spacing: .04em; margin-bottom: 12px; }
  .ys-notebook h3 { font-size: 24px; }
  .ys-description { font-size: 12px; margin-top: 14px; }
  .ys-points { font-size: 9px; gap: 4px 9px; margin-top: 15px; }
  .ys-detail-link { margin-top: 24px; font-size: 11px; padding-inline: 13px; min-height: 46px; }
  .ys-image-error { font-size: 11px; bottom: 90px; left: 21px; max-width: calc(100% - 42px); }
}
@media (max-width: 350px) {
  .ys-notebook { margin-left: 12px; padding-inline: 19px; }
  .ys-tabs { right: 19px; width: calc(100% - 50px); }
}
@media (prefers-reduced-motion: reduce) {
  .ys-services *, .ys-services *::before, .ys-services *::after { animation: none !important; transition: none !important; }
  .ys-panel.ys-awaiting .ys-photo { clip-path: none; }
}
