/* Reference assets and layouts are scoped to the requested sections. */
.intro .home-window { aspect-ratio: 1746 / 901; }
.intro .home-window img, .intro .room-photo { filter: none; }
.intro .thoughts[hidden] { display: none; }
.intro .window-mark::before { backdrop-filter: none; background: radial-gradient(ellipse at center,#ffb14b4d,#ffb14b1a 70%); box-shadow: 0 0 13px 2px #ffbd5542, inset 0 0 9px #ffbf5940; }

/* Fade only the open sky into the existing hero background. Roofs stay opaque. */
.intro .city-skyline { mask-image:linear-gradient(180deg,transparent,#000 9%); }
/* The camera still uses its original scroll curve and shared facade transform. */
.intro[data-camera] { --closeup-width:100.8%; }
@media (max-width:700px) { .intro[data-camera] { --closeup-width:105.6%; } }

.reference-world .strategy-panel { display:grid; grid-template-columns:1fr 1.25fr; grid-template-areas:"art title" "art copy"; gap:24px 48px; padding:48px 60px; border:1px solid #6171a7; background:radial-gradient(ellipse at 61% 82%,#23314895,transparent 55%),#091627; border-radius:36px; }
.reference-world .world-art { grid-area:art; width:100%; aspect-ratio:900 / 480; position:relative; overflow:hidden; mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent),linear-gradient(180deg,transparent,#000 8%,#000 94%,transparent); mask-composite:intersect; }
.reference-world .world-art img { position:absolute; max-width:none; width:120.6667%; height:auto; left:-11.111%; top:-13.54%; }
.reference-world h2 { font-size:clamp(31px,3.3vw,48px); line-height:1.02; letter-spacing:-.035em; }
.reference-world h2 em { color:#ffbe31; }
.reference-world .mobile-break { display:none; }
.reference-world .strategy-copy { max-width:none; }
.reference-world .strategy-summary { font-size:clamp(16px,1.45vw,20px); line-height:1.4; color:#c3cdec; }
.reference-world .strategy-approach { font-size:clamp(18px,1.65vw,23px); line-height:1.17; border-left:3px solid #ffbf32; padding-left:18px; margin-top:24px; }

.reference-about .about-panel { position:relative; isolation:isolate; grid-template-columns:1fr 1fr; align-items:center; min-height:720px; background:#171a21; border-color:#8c99bf; border-radius:35px; padding:50px 60px; overflow:hidden; }
.reference-about .about-mobile-reference { display:none; }
.reference-about .about-desktop-art { position:absolute; z-index:-1; right:5%; top:0; width:440px; max-width:46%; height:100%; overflow:hidden; mask-image:linear-gradient(90deg,transparent,#000 12%,#000 90%,transparent),linear-gradient(180deg,#000 88%,transparent 98%); mask-composite:intersect; }
.reference-about .about-desktop-art img { position:absolute; width:193.4%; max-width:none; left:-88.7%; top:-7.9%; height:auto; }
.reference-about .about-copy { padding:0; grid-column:1; font-size:19px; line-height:1.3; max-width:430px; }
.reference-about .blog-label { display:inline-block; border:1.5px solid #ffc260; border-radius:999px; padding:7px 18px; font-size:19px; margin-bottom:21px; }
.reference-about h2 { font-size:64px; line-height:1; margin-bottom:37px; position:relative; }
.reference-about h2::after { content:""; position:absolute; left:3px; bottom:-16px; width:155px; height:14px; border-top:4px solid #ffc553; border-radius:50%; transform:rotate(-5deg); }
.reference-about .about-copy p+p { margin-top:20px; }
.reference-about .about-copy em { color:#ffc353; font-weight:600; }
.reference-about .profile { grid-column:1; width:fit-content; align-self:end; gap:12px; margin:30px 0 0; padding:13px 25px; font-size:20px; border:2px solid #ffc256; background:linear-gradient(120deg,#272930,#181b23); }
.reference-about .profile span { color:#fff; }
.reference-about .profile svg { width:28px; height:28px; }
.reference-about .profile:hover { background:#33333d; }

.reference-experience { max-width:1320px; grid-template-columns:minmax(0,.63fr) minmax(0,1.12fr); gap:clamp(24px,3.2vw,55px); align-items:center; }
.reference-experience .video-slot { appearance:none; cursor:pointer; padding:0; width:100%; max-width:none; aspect-ratio:545 / 695; border:2px solid #ffcb78; border-radius:clamp(20px,3.8vw,49px); box-shadow:0 0 18px #ffc06c30; }
.reference-experience .video-slot::after { display:none; }
.reference-experience .video-preview { object-fit:cover; object-position:center 35%; pointer-events:none; }
.reference-experience .video-play { position:absolute; display:grid; place-items:center; inset:55% auto auto 50%; transform:translate(-50%,-50%); width:24%; aspect-ratio:1; border:1px solid #fff; border-radius:50%; background:#21232d75; backdrop-filter:blur(4px); font-size:clamp(20px,2.8vw,42px); padding-left:.12em; }
.reference-experience .experience-copy { border-left:3px solid #ffc153; padding-left:clamp(20px,3vw,43px); }
.reference-experience .experience-copy h2 { font-size:clamp(27px,3.55vw,52px); line-height:1.11; letter-spacing:-.035em; overflow-wrap:normal; }
.reference-experience .experience-copy p { font-size:clamp(18px,2.2vw,31px); line-height:1.36; margin-top:24px; }
.reference-contact { display:flex; flex-direction:column; align-items:flex-start; gap:0; border:2px solid #8a7350; border-radius:clamp(24px,4vw,65px); padding:clamp(28px,5.6vw,83px); background:#121c2deb; }
.reference-contact h2 { font-size:clamp(40px,6.5vw,90px); letter-spacing:-.05em; line-height:1.06; }
.reference-contact p { max-width:none; margin-top:34px; font-size:clamp(21px,2.7vw,38px); line-height:1.45; }
.reference-contact .button { font-size:clamp(20px,2.6vw,38px); min-height:95px; width:78%; margin-top:48px; padding:22px; background:linear-gradient(110deg,#ffcc6a,#ffc361); }
.reference-contact .telegram-button { gap:.7em; white-space:normal; line-height:1.15; text-align:center; }
.reference-contact .telegram-button-icon { width:clamp(26px,4.1vw,58px); height:clamp(26px,4.1vw,58px); flex:none; padding:.18em; border-radius:28%; background:var(--ink); color:var(--gold); }
.reference-contact .telegram-button-label { padding-left:.7em; border-left:1px solid #11182759; }

.video-dialog { padding:0; overflow:visible; border:1px solid #6c6d78; border-radius:16px; background:#101727; max-width:92vw; max-height:88svh; }
.video-dialog::backdrop { background:#050916ed; backdrop-filter:blur(8px); }
.video-dialog .video-player { display:block; width:auto; max-width:90vw; height:80svh; max-height:80svh; border-radius:16px; }
.video-dialog .video-close { position:absolute; z-index:2; right:-10px; top:-17px; width:40px; height:40px; border:1px solid #fff8; border-radius:50%; background:#182133; color:white; font-size:28px; cursor:pointer; }
.video-dialog .video-error { max-width:300px; padding:20px; }
body.video-open { overflow:hidden; }

@media (max-width:1099px) {
  .reference-world { max-width:680px; }
  .reference-world .strategy-panel { display:block; padding:0 8.2% 12%; border-radius:5.5cqw; }
  .reference-world .world-art { width:107%; margin:3% -3.5% 1%; }
  .reference-world h2 { font-size:clamp(27px,6.7vw,49px); line-height:.99; letter-spacing:-.025em; }
  .reference-world .mobile-break { display:initial; }
  .reference-world .strategy-summary { margin-top:6%; font-size:clamp(15px,3.5vw,25px); line-height:1.37; }
  .reference-world .strategy-approach { margin-top:7%; font-size:clamp(17px,3.95vw,29px); padding-left:4%; line-height:1.16; }
  .reference-about { max-width:720px; }
  .reference-about .about-panel { display:block; padding:0; min-height:0; border:0; border-radius:0; background:transparent; container-type:inline-size; overflow:visible; }
  .reference-about .about-mobile-reference { display:block; width:100%; height:auto; }
  .reference-about .about-desktop-art { display:none; }
  .reference-about .about-copy { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
  .reference-about .profile { position:absolute; left:7.75%; top:81.35%; width:44.6%; height:8.45%; margin:0; padding:0 3%; font-size:3.03cqw; border-width:1px; gap:2.1cqw; border-radius:999px; background:linear-gradient(120deg,#272a32,#191b23); }
  .reference-about .profile svg { width:4.1cqw; height:4.1cqw; flex:none; }
}
@media (max-width:700px) {
  .reference-world { width:calc(100% - 36px); }
  .reference-world .strategy-panel { border-radius:20px; }
  .reference-about { width:calc(100% - 16px); }
  .reference-experience { width:calc(100% - 36px); grid-template-columns:34% minmax(0,1fr); gap:12px; align-items:start; }
  .reference-experience .video-slot { border-width:1px; border-radius:17px; align-self:stretch; min-height:185px; }
  .reference-experience .video-play { width:37%; font-size:20px; }
  .reference-experience .experience-copy { padding-left:12px; border-left-width:2px; }
  .reference-experience .experience-copy h2 { font-size:clamp(18px,4.7vw,23px); line-height:1.1; letter-spacing:-.03em; }
  .reference-experience .experience-copy p { font-size:clamp(13px,3.35vw,15px); margin-top:13px; line-height:1.37; }
  .reference-contact { width:calc(100% - 30px); padding:23px 22px 25px; border-radius:24px; border-width:1px; }
  .reference-contact h2 { font-size:clamp(31px,8.6vw,40px); text-wrap:balance; }
  .reference-contact p { font-size:clamp(16px,4.05vw,18px); margin-top:18px; line-height:1.45; }
  .reference-contact .button { margin-top:24px; min-height:53px; width:fit-content; min-width:83%; max-width:100%; padding:13px 15px; font-size:clamp(16px,4.35vw,20px); }
  .video-dialog .video-player { max-height:76svh; height:76svh; }
}
