:root {
  --yb-ink: #171717;
  --yb-muted: #66615f;
  --yb-paper: #fff;
  --yb-soft: #f3f2f0;
  --yb-line: #dedbd8;
  --yb-brand: #b93662;
  --yb-accent: #155e75;
}

body.yb-project-page {
  margin: 0;
  background: var(--yb-paper);
  color: var(--yb-ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

.yb-project-page * { box-sizing: border-box; }
.yb-project-page a { color: inherit; }
.yb-page-shell, .yb-header-inner { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.yb-site-header { min-height: 84px; border-bottom: 1px solid var(--yb-line); background: rgba(255,255,255,.96); }
.yb-header-inner { min-height: 84px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.yb-brand img { display: block; width: 250px; max-width: 100%; height: auto; }
.yb-nav { display: flex; justify-content: flex-end; gap: 28px; font-size: 15px; font-weight: 700; }
.yb-nav a, .yb-back-link { text-decoration: none; }
.yb-nav a:hover, .yb-back-link:hover { color: var(--yb-brand); }
.yb-project-hero { padding: 54px 0 0; }
.yb-hero-topline { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 24px; color: var(--yb-muted); font-size: 14px; font-weight: 700; text-transform: uppercase; }
.yb-category { color: var(--yb-accent); text-align: right; }
.yb-project-hero h1 { max-width: 1020px; margin: 0 auto; color: var(--yb-ink); font-size: 58px; line-height: 1.04; letter-spacing: 0; text-align: center; }
.yb-role-line { margin: 22px 0 34px; color: var(--yb-muted); font-size: 18px; text-align: center; }
.yb-video-frame { position: relative; display: block; width: min(1040px,100%); margin: 0 auto; padding: 0; aspect-ratio: 16/9; overflow: hidden; border: 0; border-radius: 0; background: #111; color: #fff; cursor: pointer; text-decoration: none; }
.yb-video-frame img, .yb-video-frame iframe { width: 100%; height: 100%; display: block; border: 0; object-fit: cover; }
.yb-play-button { position: absolute; z-index: 1; inset: 50% auto auto 50%; transform: translate(-50%,-50%); width: 72px; height: 72px; display: grid; place-items: center; padding-left: 4px; border: 1px solid rgba(255,255,255,.8); border-radius: 50%; background: rgba(17,17,17,.68); font-size: 27px; }
.yb-case-section { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(260px,.7fr); gap: 88px; padding: 78px 0 86px; }
.yb-case-copy { max-width: 720px; }
.yb-project-page h2 { margin: 0 0 22px; color: var(--yb-ink); font-size: 34px; line-height: 1.15; letter-spacing: 0; }
.yb-case-copy p { margin: 0 0 18px; font-size: 18px; }
.yb-facts { margin: 0; border-top: 1px solid var(--yb-ink); }
.yb-fact { display: grid; grid-template-columns: 95px 1fr; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--yb-line); }
.yb-fact dt { color: var(--yb-muted); font-size: 13px; font-weight: 700; text-transform: uppercase; }
.yb-fact dd { margin: 0; }
.yb-gallery, .yb-bts { padding: 72px 0 82px; border-top: 1px solid var(--yb-line); }
.yb-gallery-heading, .yb-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 28px; }
.yb-gallery-heading h2, .yb-section-heading h2 { margin: 0; }
.yb-gallery-controls { display: flex; gap: 8px; }
.yb-gallery-button { width: 44px; height: 44px; border: 1px solid var(--yb-ink); border-radius: 50%; background: var(--yb-paper); color: var(--yb-ink); cursor: pointer; font-size: 20px; }
.yb-gallery-button:hover { background: var(--yb-ink); color: var(--yb-paper); }
.yb-gallery-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(620px,72%); gap: 20px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-behavior: smooth; scroll-snap-type: inline mandatory; scrollbar-width: thin; padding-bottom: 12px; }
.yb-gallery-slide { margin: 0; scroll-snap-align: start; }
.yb-gallery-slide img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; background: var(--yb-soft); }
.yb-gallery-slide figcaption { margin-top: 10px; color: var(--yb-muted); font-size: 13px; }
.yb-bts h2 { text-align: center; }
.yb-bts-video { width: min(900px,100%); }
.yb-related { padding: 72px 0 82px; background: var(--yb-soft); }
.yb-section-heading { align-items: end; }
.yb-section-heading a { color: var(--yb-brand); font-weight: 700; text-decoration: none; }
.yb-project-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.yb-project-card { overflow: hidden; border-radius: 4px; background: var(--yb-paper); text-decoration: none; }
.yb-project-card img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.yb-card-copy { padding: 18px; }
.yb-project-card h3 { margin: 0; color: var(--yb-ink); font-size: 19px; line-height: 1.3; letter-spacing: 0; }
.yb-contact-band { padding: 76px 0; background: var(--yb-ink); color: #fff; }
.yb-contact-inner { display: flex; justify-content: space-between; align-items: center; gap: 36px; }
.yb-contact-band h2 { margin: 0; color: #fff; }
.yb-email-button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 20px; border: 1px solid currentColor; color: inherit; font-weight: 700; text-decoration: none; }
.yb-email-button:hover { background: #fff; color: var(--yb-ink); }
.yb-site-footer { padding: 24px 0; color: var(--yb-muted); font-size: 13px; }

@media (max-width:820px) {
  .yb-header-inner { grid-template-columns: 1fr auto; }
  .yb-header-spacer { display: none; }
  .yb-brand img { width: 205px; }
  .yb-nav { gap: 18px; }
  .yb-project-hero h1 { font-size: 42px; }
  .yb-case-section { grid-template-columns: 1fr; gap: 44px; }
  .yb-gallery-track { grid-auto-columns: 82%; }
  .yb-project-grid { grid-template-columns: 1fr 1fr; }
  .yb-project-card:last-child { display: none; }
}

@media (max-width:560px) {
  .yb-page-shell, .yb-header-inner { width: min(100% - 30px,1180px); }
  .yb-site-header, .yb-header-inner { min-height: 68px; }
  .yb-brand img { width: 168px; }
  .yb-nav a:first-child { display: none; }
  .yb-project-hero { padding-top: 32px; }
  .yb-hero-topline { align-items: flex-start; margin-bottom: 18px; }
  .yb-project-hero h1 { font-size: 34px; }
  .yb-role-line { margin: 16px 0 24px; font-size: 16px; }
  .yb-play-button { width: 58px; height: 58px; font-size: 22px; }
  .yb-case-section { padding: 54px 0 60px; }
  .yb-project-page h2 { font-size: 28px; }
  .yb-case-copy p { font-size: 16px; }
  .yb-fact { grid-template-columns: 82px 1fr; }
  .yb-gallery, .yb-bts, .yb-related { padding: 54px 0 60px; }
  .yb-gallery-track { grid-auto-columns: 90%; }
  .yb-project-grid { grid-template-columns: 1fr; }
  .yb-project-card:last-child { display: block; }
  .yb-contact-inner { align-items: flex-start; flex-direction: column; }
}
